M
Mikejacko86
Hello everyone,
I have decided to finally convert my HTML-based website to CSS-based. So far, I
have constructed the bare-bones layout of my website. Now, it looks perfect in
IE (6 latest), but looks awful in Mozilla (firefox latest).
I would really appreciate it if you guys could help me out, this would actually
be my first CSS-based layout.
The code is as follows:
--------------------------------
####
CSS
####
body {
background-color : #CCCCCC;
font-family : verdana;
}
#wrapper {
margin : auto;
text-align : center;
font-size : 10px;
}
#header {
text-align : left;
background-color : white;
padding : 5px;
width : 693px;
}
..flashBanner {
width : 683px;
height : 198px;
border : solid #CCCCCC 1px;
}
#navigation {
}
#navlist {
margin : 0;
padding : 0;
padding-top : 5px;
}
#navlist li {
display : inline;
list-style-type : none;
padding-right : 10px;
}
#centerSection {
width : 693px;
}
#headlines {
margin-top : 5px;
text-align : left;
background-color : white;
padding : 5px;
width : 230px;
height : 180px;
float : left;
}
#loginBox {
text-align : left;
width : 458px;
float : right;
}
#loginInfo {
margin-top : 5px;
background-color : white;
padding : 5px;
}
#loginGraphic {
margin-top : 5px;
background-color : white;
padding : 5px;
height : 153px;
}
#bottomSection {
text-align : left;
width : 693px;
margin-top : 5px;
}
#latestPostings {
background-color : white;
width : 340px;
height : 130px;
padding : 5px;
float : left;
}
#chatroom {
background-color : white;
width : 348px;
height : 130px;
padding : 5px;
float : right;
}
#footer {
background-color : white;
width : 693px;
padding : 5px;
text-align : left;
margin-top : 5px;
}
#####
HTML
#####
<div id="wrapper">
<div id="header">
<div class="flashBanner">
</div>
<div class="navigation">
<ul id="navlist">
<li>HOME</li>
<li>SUPPORT</li>
<li>DISCUSSION</li>
</ul>
</div>
</div>
<div id="centerSection">
<div id="headlines">
ddkjdl<br />affdaf
</div>
<div id="loginBox">
<div id="loginInfo">
mjhkjh
</div>
<div id="loginGraphic">
hkjh
</div>
</div>
</div>
<div id="bottomSection">
<div id="latestPostings">
latest postings
</div>
<div id="chatroom">
blah blah
</div>
</div>
<div id="footer">
©2004
</div>
</div>
I have decided to finally convert my HTML-based website to CSS-based. So far, I
have constructed the bare-bones layout of my website. Now, it looks perfect in
IE (6 latest), but looks awful in Mozilla (firefox latest).
I would really appreciate it if you guys could help me out, this would actually
be my first CSS-based layout.
The code is as follows:
--------------------------------
####
CSS
####
body {
background-color : #CCCCCC;
font-family : verdana;
}
#wrapper {
margin : auto;
text-align : center;
font-size : 10px;
}
#header {
text-align : left;
background-color : white;
padding : 5px;
width : 693px;
}
..flashBanner {
width : 683px;
height : 198px;
border : solid #CCCCCC 1px;
}
#navigation {
}
#navlist {
margin : 0;
padding : 0;
padding-top : 5px;
}
#navlist li {
display : inline;
list-style-type : none;
padding-right : 10px;
}
#centerSection {
width : 693px;
}
#headlines {
margin-top : 5px;
text-align : left;
background-color : white;
padding : 5px;
width : 230px;
height : 180px;
float : left;
}
#loginBox {
text-align : left;
width : 458px;
float : right;
}
#loginInfo {
margin-top : 5px;
background-color : white;
padding : 5px;
}
#loginGraphic {
margin-top : 5px;
background-color : white;
padding : 5px;
height : 153px;
}
#bottomSection {
text-align : left;
width : 693px;
margin-top : 5px;
}
#latestPostings {
background-color : white;
width : 340px;
height : 130px;
padding : 5px;
float : left;
}
#chatroom {
background-color : white;
width : 348px;
height : 130px;
padding : 5px;
float : right;
}
#footer {
background-color : white;
width : 693px;
padding : 5px;
text-align : left;
margin-top : 5px;
}
#####
HTML
#####
<div id="wrapper">
<div id="header">
<div class="flashBanner">
</div>
<div class="navigation">
<ul id="navlist">
<li>HOME</li>
<li>SUPPORT</li>
<li>DISCUSSION</li>
</ul>
</div>
</div>
<div id="centerSection">
<div id="headlines">
ddkjdl<br />affdaf
</div>
<div id="loginBox">
<div id="loginInfo">
mjhkjh
</div>
<div id="loginGraphic">
hkjh
</div>
</div>
</div>
<div id="bottomSection">
<div id="latestPostings">
latest postings
</div>
<div id="chatroom">
blah blah
</div>
</div>
<div id="footer">
©2004
</div>
</div>