caclark
03-01-2005, 07:33 PM
I am working on a form page, and trying to avoid using tables for input placement. But I am having some problems getting all browsers (I.E & Mozzilla 1.7) to view CSS.
Specifically I am trying to set a "width" to a title, IE recognizes the property correctly, but Mozilla doesn't.
I have tried several combinations trying to get both browsers to render the page the same (well at least similar anyway).
Below is a simplified version of what I am trying to accompish. All I am tring to do is group inputs together and get then to line up no matter what the "Title" length may be.
<html>
<head>
<style>
<!--
.boxWidth1 {width:90pt;}
.boxWidth2 {width:150pt;}
/-->
</style>
</head>
<body>
<form>
<!-- First grouped Titles all set at specific width -->
<B>Group1:</B><br>
<span class=boxWidth1>Input Title1 short</span><INPUT TYPE="text" NAME="input1" SIZE="40"><br>
<span class=boxWidth1>Input Title2 longer</span><INPUT TYPE="text" NAME="input2" SIZE="40">
<br>
<br>
<!-- Second grouped Titles all set at specific width -->
<B>Group2:</B><br>
<span class=boxWidth2>Input Title1 short</span><INPUT TYPE="text" NAME="input1" SIZE="30"><br>
<span class=boxWidth2>Input Title2 longer</span><INPUT TYPE="text" NAME="input2" SIZE="30">
</form>
</body>
</html>
Anyone have any ideas on how to get both browsers to display the same formatting.
Specifically I am trying to set a "width" to a title, IE recognizes the property correctly, but Mozilla doesn't.
I have tried several combinations trying to get both browsers to render the page the same (well at least similar anyway).
Below is a simplified version of what I am trying to accompish. All I am tring to do is group inputs together and get then to line up no matter what the "Title" length may be.
<html>
<head>
<style>
<!--
.boxWidth1 {width:90pt;}
.boxWidth2 {width:150pt;}
/-->
</style>
</head>
<body>
<form>
<!-- First grouped Titles all set at specific width -->
<B>Group1:</B><br>
<span class=boxWidth1>Input Title1 short</span><INPUT TYPE="text" NAME="input1" SIZE="40"><br>
<span class=boxWidth1>Input Title2 longer</span><INPUT TYPE="text" NAME="input2" SIZE="40">
<br>
<br>
<!-- Second grouped Titles all set at specific width -->
<B>Group2:</B><br>
<span class=boxWidth2>Input Title1 short</span><INPUT TYPE="text" NAME="input1" SIZE="30"><br>
<span class=boxWidth2>Input Title2 longer</span><INPUT TYPE="text" NAME="input2" SIZE="30">
</form>
</body>
</html>
Anyone have any ideas on how to get both browsers to display the same formatting.