Currently, I’m using tables to provide formatting for my forms. I’d like to move to using CSS for the formating, however I’m having problems. My thought was to use assorted DIV’s to control the formatting, however I don’t understand why the WIDTH is ignored when I set the DISPLAY to INLINE. (See [url]http://www.gatewayorlando.com/content/reservationRequestV3_submit.asp
David H
<style>
div.mainContentBlock
{
position: relative;
width: 500px;
top: 25px;
left: 10px;
margin: 0, 10px;
font-family: verdana;
font-size: 10pt;
border-style: solid;
border: 1px;
}
div.fieldLabelBlock
{
width: 200px;
text-align: right;
border-style: solid;
border: 1px;
display: inline;
}
div.fieldBlock
{
width: 300px;
text-align: right;
border-style: solid;
border: 1px;
display: inline;
}
</style>
</head>
<body>
<div class=”mainContentBlock”>
<div class=”fieldLabelBlock”>Name</div><div class=”fieldBlock”><input type=”text”></div><br>
<div class=”fieldLabelBlock”>email Address</div><divclass=”fieldBlock”><input type=”text”></div>
</div>