View Full Version : I can't find the error in my code


*Jen*
08-03-2005, 06:45 AM
Can anyone tell my what is wrong with my coding, because it validates, but in IE the content begins after the sidebar, and in Firefox the background doesn't show up.
I haven't upladed it, so I'll post the codes.
Stylesheet:

A:link
{ text-decoration: none; color:#FF6482; }
A:visited
{ text-decoration: none; color:#FF6482; }
A:active
{ text-decoration: none; color:#FF6482; }
A:hover
{ text-decoration: none; color:#FF6482;
background-color: #FFffff;
}


h1 {font-family: verdana , arial , sans-serif;
color: #000000; }


p {font-family: verdana , arial , sans-serif;
color: #636363; }

body
{
background: #FFFFFF;
margin-top: 0;
font-family: verdana , arial , sans-serif;
color: #636363;
font-weight: normal;
font-size: 7pt;
}
td
{ font-family: verdana , arial , sans-serif;
color: #636363;
}
.header {
color: #636363;
font-weight: bold;
font-size: 9pt;
}
#container {
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
width: 765px;
background-image: url(images/yellow_bg.gif);
background-repeat: repeat-y;
background-position: top center;
}
#header {
width: 765px;
}
#sidebar {
width: 196px;
float: left;
margin-left: 15px;
}
#content {
width: 535px;
float: right;
margin-right: 15px;
}

The HTML:

<!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>Everything Reese :: A Reese Witherspoon Fansite</title>
<meta name="description" content="A Hungarian Reese Witherspoon fansite. Magyar Reese Witherspoon

rajongói oldal." />
<meta name="keywords" content="Reese Witherspoon, Reese, Witherspoon, Legally Blonde, Doktor Szöszi,

szőke, Mindenütt nő, Sweet home Alabama, Vanity Fair, Hiúság Vására" />
<meta name="author" content="Jen" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body><div id="container">
<div id="header">
<img src="images/yellow_top.jpg" border="0" alt="" />
</div>
<div id="sidebar">sidebar</div>
<div id="content">content</div>
</div>
</body>
</html>

*Jen*
08-04-2005, 06:34 AM
OK, I uploaded it here (http://reese.hu/test/index.html).

*Jen*
08-05-2005, 07:06 AM
Sorry for er... triple posting, but I solved the first part. Now my only problem is that the background image doesn't show up in Firefox. click (http://reese.hu)

*Jen*
08-05-2005, 07:31 AM
I am so sorry, I know I seem like a spammer now. You can delete my two replies above.
I fixed the background: added it to the whole page not just the container layer.
But now I found something else that is wrong. I have two links in my sidebar - index.php?x=moviesjlh and index.php?x=movieswtl - and these don't show up when I click them. But when those links are in the content there's no problem.

This new layout is killing me...

*Jen*
08-05-2005, 07:42 AM
I am an idot, you can delete this whole thread, someone told me what was wrong. Next time I'll try to figure it out myself before I post here, I promise. :) Sorry for giving the mods extra work.