Chadi
09-09-2007, 05:14 PM
Please see attached.
The spacing in Firefox becomes too much when I add the <p> break for sake of correcting the output in IE7. The jagged two and third columns is IE7 without the <p> line.
The original code used:
</div>
<div id="services_feature">
When I add the <p> line, it corrects IE7's output, but it also makes Firefox spacing double, too much than I want it to be.
The 'service_feature' css code is this
/* services homepage feature design elements */
#services_feature {
padding: 12px 0px 0px 0px
}
.service1 {
float:left;
width:266px;
}
.service2 {
float:left;
width:266px;
}
.service3 {
float:left;
width:266px;
}
.service1 p, .service2 p, .service3 p { padding:0px 10px 0px 10px; }
.service1-2 {background-color:#2c6594;}
.service2-2 {background-color:#70c23e;}
.service1-3 {background-color:#2c628f;}
.service2-3 {background-color:#62af33;}
.service3-1 {background-color:#ff9c01;}
.service3-2 {background-color:#ff9900;}
.service1-2, .service2-2 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service1-3 , .service2-3 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service3-1 , .service3-2 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service1-3 a:link, .service1-3 a:visited, .service2-3 a:link, .service2-3 a:visited, .service3-2 a:link, .service3-2 a:visited {
color:white;
text-decoration:underline;
}
.service1-3 a:hover, .service2-3 a:hover, .service3-2 a:hover {
text-decoration:none;
}
ul.services_feature_items
{
margin:0px 10px 0px 10px;
padding: 0px;
}
ul.services_feature_items li
{
list-style:none;
margin:0px;
padding:2px;
border-bottom: 1px solid #e5f4f6;
}
The actual page width is this
#column_right {
float:right;
width:264px;
}
#column_left {
width:522px;
}
Please explain how to fix this so Firefox and IE7 renders the same vertical spacing correctly.
The spacing in Firefox becomes too much when I add the <p> break for sake of correcting the output in IE7. The jagged two and third columns is IE7 without the <p> line.
The original code used:
</div>
<div id="services_feature">
When I add the <p> line, it corrects IE7's output, but it also makes Firefox spacing double, too much than I want it to be.
The 'service_feature' css code is this
/* services homepage feature design elements */
#services_feature {
padding: 12px 0px 0px 0px
}
.service1 {
float:left;
width:266px;
}
.service2 {
float:left;
width:266px;
}
.service3 {
float:left;
width:266px;
}
.service1 p, .service2 p, .service3 p { padding:0px 10px 0px 10px; }
.service1-2 {background-color:#2c6594;}
.service2-2 {background-color:#70c23e;}
.service1-3 {background-color:#2c628f;}
.service2-3 {background-color:#62af33;}
.service3-1 {background-color:#ff9c01;}
.service3-2 {background-color:#ff9900;}
.service1-2, .service2-2 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service1-3 , .service2-3 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service3-1 , .service3-2 {
color:white;
padding:5px 10px 5px 10px;
font-family: Tahoma, "Trebuchet MS", Arial, Verdana, Lucida, Sans-Serif;
font-size:12px;
line-height:16px;
font-weight:normal;
}
.service1-3 a:link, .service1-3 a:visited, .service2-3 a:link, .service2-3 a:visited, .service3-2 a:link, .service3-2 a:visited {
color:white;
text-decoration:underline;
}
.service1-3 a:hover, .service2-3 a:hover, .service3-2 a:hover {
text-decoration:none;
}
ul.services_feature_items
{
margin:0px 10px 0px 10px;
padding: 0px;
}
ul.services_feature_items li
{
list-style:none;
margin:0px;
padding:2px;
border-bottom: 1px solid #e5f4f6;
}
The actual page width is this
#column_right {
float:right;
width:264px;
}
#column_left {
width:522px;
}
Please explain how to fix this so Firefox and IE7 renders the same vertical spacing correctly.