So Im starting to learn some CSS but I'm having trouble rendering my page layout the way I want it to in firefox (page looks as it is supposed to in internet explorer) This is the CSS where I'm having trouble...
HTML Code:
body {
margin: 0px;
padding: 0px;
font-family: Calibri, Arial, Tahoma;
}
#content {
width: 100%;
margin: 0px auto 0px auto;
border: 1px solid #000;
clear: both;
height: 1000px;
}
.article {
width: 80%;
float: left;
margin: 0px auto 0px auto;
border: 1px solid #000;
clear: both;
height: 1000px;
}
.sidebar {
width: 20%;
float: right;
margin: 0px auto 0px auto;
border: 1px solid #000;
clear: both;
height: 1000px;
}
Now what I'm trying to do is have some content on the left side and have a sidebar on the right side (both positioned side by side), but in firefox the "sidebar" div shifts down and sits diagonally (south-east) to the "article" div. Any ideas how I can fix this?
Last edited by chrishirst; 06-02-2010 at 06:34 PM..
|