Thehappyhack
08-04-2009, 10:49 AM
I am going to leave this up for a few weeks. This is a very simple two column test that, using CSS, I was able to make display "properly" in both Firefox and IE7. It illustrated for me how the different browsers handle box widths. If there's a better way, I am all ears. Here are the boxes:
http://www.stcmedical.com/twocolumntest/
My goals were as follows:
1) Two columns with a header
2) Jello layout, centered on page
3) Keep the two columns at 200px width each
4) 2px borders all around
Here's the CSS for W3C compliant browsers:
#allcontent {
width: 406px;
margin-left: auto;
margin-right: auto;
}
#header {
width: 402px;
height: 100px;
border-style: solid;
border-width: 2px;
}
#main {
width: 200px;
height: 200px;
border-style: solid;
border-width: 2px;
}
#sidebar {
width: 200px;
height: 200px;
border-style: solid;
border-width: 2px;
float: right;
}
And here is for IE7:
#allcontent {
width: 408px;
}
#header {
width: 404px;
}
#main {
width: 200px;
border-width: 2px;
}
#sidebar {
width: 200px;
border-width: 2px;
}
What are the proper conclusions as to how different browsers handle column width?
http://www.stcmedical.com/twocolumntest/
My goals were as follows:
1) Two columns with a header
2) Jello layout, centered on page
3) Keep the two columns at 200px width each
4) 2px borders all around
Here's the CSS for W3C compliant browsers:
#allcontent {
width: 406px;
margin-left: auto;
margin-right: auto;
}
#header {
width: 402px;
height: 100px;
border-style: solid;
border-width: 2px;
}
#main {
width: 200px;
height: 200px;
border-style: solid;
border-width: 2px;
}
#sidebar {
width: 200px;
height: 200px;
border-style: solid;
border-width: 2px;
float: right;
}
And here is for IE7:
#allcontent {
width: 408px;
}
#header {
width: 404px;
}
#main {
width: 200px;
border-width: 2px;
}
#sidebar {
width: 200px;
border-width: 2px;
}
What are the proper conclusions as to how different browsers handle column width?