Jump to content

CSS and viewing email via hotmail


jasonc

Recommended Posts

I am trying to get the dashed border section to be centre of the page when viewed in hotmail email view when viewing emails in FireFox, the page shows sort of ok in Internet Explorer.

 

if possible i would like the page to be all centred other than the text.

 

can anyone tell me where the error on my code is that is causing the dashed box to be placed on the left hand side ?

 

 

$EmailHtml = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Booking Project </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"><!--
body{ background: #999999; padding: 0px; margin: 0 auto; font-family: \'Verdana\'; font-size: 12px; padding-bottom: 10px; }
ul{ list-style: none; padding: 0px; margin: 0px; }
.headerBar{ background: url(\'/images/headerBarBg.png\') repeat-x center; text-align: center; }
.headerSpace{ height: 150px; background: #999999; }
.widthLimiter{ width: 950px; margin: auto; }
.content{ background: #EEEEEE; text-align: center; margin: auto; }
.contentStyle{ border-left: 1px solid #DDD; border-right: 1px solid #DDD;  padding: 10px;  height: auto  !important; height: 400px; min-height: 400px; margin: auto; }
/*####################*/
.formWrapper{ width: 400px; margin: auto; border: 1px dashed #999; padding: 5px; text-align: left; }
legend { font-weight: bold; }
.innerformboxes{ float: left; width: 275px; padding: 5px; border: 0px dashed #999; }
.bookingleftfloat { float: left; width: 294px;  text-align: left; border: 0px dashed #999; }
.subHeader{ font-weight: bold; text-decoration: underline; }
.field{ padding: 15px 0px 0px 5px; }
.emptyfield{ padding: 0px 0px 1px 5px; color: #FF0000; font-weight: bold; }
.value{ padding: 5px 0px 3px 10px; }
.other{ padding: 5px 0px 3px 0px; text-align: center; }
--></style>
</head>
<body>
  <div class="headerSpace">
  header
  </div>

  <div class="content">
    <div class="widthLimiter contentStyle">
      <div class="formWrapper" style="width: 600px;">






<!-- start formwrapper -->
        <span class="subHeader">ref</span><br><br>
	<ul>
          <li style="float: left; margin-right: 30px;"> Request Type </li><li style="float: left;"><strong> Booking </strong></li>
	</ul>
	<br style="clear:both"><br>

<div class="bookingleftfloat">
<fieldset><legend><em style="text-decoration: underline;">Customer Info</em></legend>
<div class="smallinnerformboxes">
        <ul>
          <li class="field"> Customer Ref </li><li class="value"> cus ref </li>
        </ul>
</div>
</fieldset>
</div>
<div class="bookingleftfloat">
<fieldset><legend><em style="text-decoration: underline;">Info</em></legend>
<div class="smallinnerformboxes">
        <ul>
          <li class="field"> Name </li><li class="value"> name </li>
        </ul>
</div>
</fieldset>
</div>
<br style="clear:both">
<!-- end formwrapper -->








      </div>
    </div>
  </div>

<br style="clear:both;">

</body>
</html>
';

Link to comment
https://forums.phpfreaks.com/topic/229543-css-and-viewing-email-via-hotmail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.