J
Jerry
I'm having trouble with my page layout.
My source code looks like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>something</title>
<link href="markup.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">Header</div>
<div id="leftcolumn">
<div>
<h3>Left Column </h3>
<p>article text here. article text here. article text here. article text
here. article text here. article text here. article text here. article text
here. </p>
<h3>Title</h3>
<p>article text here. article text here. article text here. article text
here. </p>
</div>
</div>
<div id="rightcolumn">Right Column </div>
<div id="centercolumn">
<div class="class1">
<h1>Main Topic</h1>
<ul>
<li>subtopic1</li>
<li>subtopic2</li>
<li>subtopic3</li>
<li>subtopic4</li>
<li>subtopic5</li>
<li>subtopic6</li>
<li>subtopic7</li>
</ul>
</div>
<div class="class2">
<h1>Main Topic 2</h1>
<ul>
<li>subtopic1</li>
<li>subtopic2</li>
<li>subtopic3</li>
<li>subtopic4</li>
</ul>
</div>
</div>
<div id="footer">Content for id "footer" Goes Here</div>
</body>
</html>
The CSS is:
#top {
background-color: #333333;
}
#leftcolumn {
float: left;
width: 240px;
background-color: #999999;
}
#centercolumn {
margin-left:246px;
margin-right: 246px;
}
#centercolumn ul {
list-style: none;
}
#centercolumn li {
display : block;
float : left;
text-align : center;
width : 15em;
}
#rightcolumn {
float: right;
margin:0px 0px 0px 0px;
width: 240px;
background-color: #999999;
}
#footer {
position:relative;
clear:both;
background-color: Black;
}
..class2 {
}
IE6 shows the page how I want the browsers to show. But this doesn't work
under Mozilla 1.6 and Opera 7.
Now, when I put a "clear:left" in ".class2", in Moz it looks fine, but this
time not with IE/Opera. I'm starting to get a headache here ...
Any help would be appreciated.
Jerry
My source code looks like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>something</title>
<link href="markup.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">Header</div>
<div id="leftcolumn">
<div>
<h3>Left Column </h3>
<p>article text here. article text here. article text here. article text
here. article text here. article text here. article text here. article text
here. </p>
<h3>Title</h3>
<p>article text here. article text here. article text here. article text
here. </p>
</div>
</div>
<div id="rightcolumn">Right Column </div>
<div id="centercolumn">
<div class="class1">
<h1>Main Topic</h1>
<ul>
<li>subtopic1</li>
<li>subtopic2</li>
<li>subtopic3</li>
<li>subtopic4</li>
<li>subtopic5</li>
<li>subtopic6</li>
<li>subtopic7</li>
</ul>
</div>
<div class="class2">
<h1>Main Topic 2</h1>
<ul>
<li>subtopic1</li>
<li>subtopic2</li>
<li>subtopic3</li>
<li>subtopic4</li>
</ul>
</div>
</div>
<div id="footer">Content for id "footer" Goes Here</div>
</body>
</html>
The CSS is:
#top {
background-color: #333333;
}
#leftcolumn {
float: left;
width: 240px;
background-color: #999999;
}
#centercolumn {
margin-left:246px;
margin-right: 246px;
}
#centercolumn ul {
list-style: none;
}
#centercolumn li {
display : block;
float : left;
text-align : center;
width : 15em;
}
#rightcolumn {
float: right;
margin:0px 0px 0px 0px;
width: 240px;
background-color: #999999;
}
#footer {
position:relative;
clear:both;
background-color: Black;
}
..class2 {
}
IE6 shows the page how I want the browsers to show. But this doesn't work
under Mozilla 1.6 and Opera 7.
Now, when I put a "clear:left" in ".class2", in Moz it looks fine, but this
time not with IE/Opera. I'm starting to get a headache here ...
Any help would be appreciated.
Jerry