Dark Dragon
12-28-2003, 11:54 AM
I am working on a site..I used the CSS Table Template from HTML Kit and used it in Dreamweaver. One problem I encounterd is that the right column pastes itself over to the left on top of the left column..though when previewed it seems fine.
Although in Design view I altered the hieght of the top colum, in preview mode there is still a margin around my image.
As I typed in text for my links I used the <br> tags so the links are right under each other..looks fine in DW but doesn't show in IE preview.
I thought I was doing it right but I guess not. Can someone tell me what things I left out?
P.S..I could've put this in HTML forum but it also entails CSS.
The HTML Code is below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style type="text/css">
p {font-size: 100%}
p2 {font-weight: bold}
body {background-color:#2F4F4F}
a.link {
color: #FFEBCD;
text-decoration: none;
font-weight: regular;
}
a.link:hover {
color: #FFD700;
}
<!--
BODY {
margin:0;
padding:0;
}
.topBanner {
position:absolute;
top:0;
left:0;
width:100%;
height:95px;
padding:0px;
margin:0;
background-color:#369;
color:#FFF
}
.leftCol {
position:absolute;
top:100px;
left:0;
width:175px;
padding:10px;
margin:0;
background-color:#000;
color:#ADD8E6
}
.rightCol {
position:absolute;
top:100px;
right:0;
width:175px;
padding:10px;
margin:0;
background-color:#555;
color:#FFF;
}
.centerCol {
padding:10px;
margin:150px 180px 0;
}
-->
</style>
<title>Page title</title>
</head>
<body>
<div class="topBanner">
<img alt="mishmosttitle (31K)" src="imgs/mishmosttitle.jpg" height="97" width="992" />
</div>
<div class="leftCol">
<p2>Pick a Topic and Prepare to be bored Stiff!</p2>
<p><a href="http://forums.webdeveloper.com" class="link">My Artwork</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">My Game Reviews</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">My Game Tips</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Web TIps</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Q and A</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Useless Info</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">A Few Computer Tips</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Movies and TV Shows</a><br>
</div>
<div class="rightCol">
<p2>Good Sites to Visit</p2>
<p><a href="http://forums.webdeveloper.com" class="link">Web Developers Forum</a><br>
<p><a href="http://www.teamphotoshop.com" class="link">Team Photoshop</a><br>
<p><a href="http://www.good-tutorials.com" class="link">Good Tutorials.Com</a><br>
<p><a href="http://www.w3schools.com" class="link">W3Schools Tutorials</a><br>
<p><a href="http://www.photoshopcafe.com" class="link">Photoshop Cafe</a><br>
<p><a href="http://www.w3.org" class="link">Web Consortium</a></p>
<p2>Fun Places to Visit</p2>
<p><a href="http://www.vgmusic.com" class="link">VGMusic</a><br>
<p><a href="http://www.nuklearpower.com/index.php" class="link">8-Bit Theater</a><br>
<p><a href="http://www.gametalk.com.com" class="link">GameTalk</a><br>
<p><a href="http://www.videogamedc.com" class="link">Video Game DC</a><br>
<p><a href="http://www.2flashgames.com" class="link">2Flash Games</a><br>
<p><a href="http://www.miniclip.com" class="link">MiniClip</a></p>
<p2>Web and other Utilities</p2>
<p><a href="http://www.chami.com" class="link">Chami.Com</a><br>
<p><a href="http://www.fontfreak.com" class="link">FontFreak</a><br>
<p><a href="http://www.chipmunk-scripts.com" class="link">Chipmunk PHP Scripts</a><br>
<p><a href="http://cgi.resourceindex.com" class="link">CGI Resource Index</a><br>
<p><a href="http://www.lavasoft.com/default.shtml.en" class="link">AdAware Program</a><br>
</div>
<div class="centerCol">
<p>Main Body Code</p>
</div>
</body>
</html>
Although in Design view I altered the hieght of the top colum, in preview mode there is still a margin around my image.
As I typed in text for my links I used the <br> tags so the links are right under each other..looks fine in DW but doesn't show in IE preview.
I thought I was doing it right but I guess not. Can someone tell me what things I left out?
P.S..I could've put this in HTML forum but it also entails CSS.
The HTML Code is below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style type="text/css">
p {font-size: 100%}
p2 {font-weight: bold}
body {background-color:#2F4F4F}
a.link {
color: #FFEBCD;
text-decoration: none;
font-weight: regular;
}
a.link:hover {
color: #FFD700;
}
<!--
BODY {
margin:0;
padding:0;
}
.topBanner {
position:absolute;
top:0;
left:0;
width:100%;
height:95px;
padding:0px;
margin:0;
background-color:#369;
color:#FFF
}
.leftCol {
position:absolute;
top:100px;
left:0;
width:175px;
padding:10px;
margin:0;
background-color:#000;
color:#ADD8E6
}
.rightCol {
position:absolute;
top:100px;
right:0;
width:175px;
padding:10px;
margin:0;
background-color:#555;
color:#FFF;
}
.centerCol {
padding:10px;
margin:150px 180px 0;
}
-->
</style>
<title>Page title</title>
</head>
<body>
<div class="topBanner">
<img alt="mishmosttitle (31K)" src="imgs/mishmosttitle.jpg" height="97" width="992" />
</div>
<div class="leftCol">
<p2>Pick a Topic and Prepare to be bored Stiff!</p2>
<p><a href="http://forums.webdeveloper.com" class="link">My Artwork</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">My Game Reviews</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">My Game Tips</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Web TIps</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Q and A</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Useless Info</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">A Few Computer Tips</a><br>
<p><a href="http://forums.webdeveloper.com" class="link">Movies and TV Shows</a><br>
</div>
<div class="rightCol">
<p2>Good Sites to Visit</p2>
<p><a href="http://forums.webdeveloper.com" class="link">Web Developers Forum</a><br>
<p><a href="http://www.teamphotoshop.com" class="link">Team Photoshop</a><br>
<p><a href="http://www.good-tutorials.com" class="link">Good Tutorials.Com</a><br>
<p><a href="http://www.w3schools.com" class="link">W3Schools Tutorials</a><br>
<p><a href="http://www.photoshopcafe.com" class="link">Photoshop Cafe</a><br>
<p><a href="http://www.w3.org" class="link">Web Consortium</a></p>
<p2>Fun Places to Visit</p2>
<p><a href="http://www.vgmusic.com" class="link">VGMusic</a><br>
<p><a href="http://www.nuklearpower.com/index.php" class="link">8-Bit Theater</a><br>
<p><a href="http://www.gametalk.com.com" class="link">GameTalk</a><br>
<p><a href="http://www.videogamedc.com" class="link">Video Game DC</a><br>
<p><a href="http://www.2flashgames.com" class="link">2Flash Games</a><br>
<p><a href="http://www.miniclip.com" class="link">MiniClip</a></p>
<p2>Web and other Utilities</p2>
<p><a href="http://www.chami.com" class="link">Chami.Com</a><br>
<p><a href="http://www.fontfreak.com" class="link">FontFreak</a><br>
<p><a href="http://www.chipmunk-scripts.com" class="link">Chipmunk PHP Scripts</a><br>
<p><a href="http://cgi.resourceindex.com" class="link">CGI Resource Index</a><br>
<p><a href="http://www.lavasoft.com/default.shtml.en" class="link">AdAware Program</a><br>
</div>
<div class="centerCol">
<p>Main Body Code</p>
</div>
</body>
</html>