Moh
19-05-2009, 07:37 PM
CSS
div.header_left_green {
width: 10px;
height: 29px;
background-color: blue;
float: left;
position: relative;
}
div.header_mid_green {
height: 21px;
background-color: red;
margin-left: 10px;
margin-right: 10px;
position: relative;
padding-top: 8px;
}
div.header_right_green {
width: 10px;
height: 29px;
background-color: pink;
float: right;
position: relative;
}
HTML:
<div class="header_right_green"></div>
<div class="header_left_green"></div>
<div class="header_mid_green"></div>
Firefox / Chrome:
http://habbcrazy.net/jack/firefox_yey.gif
IE:
http://habbcrazy.net/jack/ie_boo.gif
I don't understand why IE isn't adding the height & top padding together, and why its adding the gaps on the left & right :S
div.header_left_green {
width: 10px;
height: 29px;
background-color: blue;
float: left;
position: relative;
}
div.header_mid_green {
height: 21px;
background-color: red;
margin-left: 10px;
margin-right: 10px;
position: relative;
padding-top: 8px;
}
div.header_right_green {
width: 10px;
height: 29px;
background-color: pink;
float: right;
position: relative;
}
HTML:
<div class="header_right_green"></div>
<div class="header_left_green"></div>
<div class="header_mid_green"></div>
Firefox / Chrome:
http://habbcrazy.net/jack/firefox_yey.gif
IE:
http://habbcrazy.net/jack/ie_boo.gif
I don't understand why IE isn't adding the height & top padding together, and why its adding the gaps on the left & right :S