CSS Help!!!
I'm not sure if it is appropriate to post this here but you guys seem to know what your talking about so i would like to ask for your help =[
I'm coding a website for my friend and attempting to do it in css for the first time and ive run into some problems.
here is the html i have got so far:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" href="Rsfakes.css"/>
</head>
<body>
<div id="container">
<div id="banner"></div>
<div id="navbar">
<div id="nav1"></div>
<div id="home"><img src="Images/home.png" height="17" width="47" alt="Home" /></div>
<div id="nav2"></div>
</div>
</div>
</body>
</html>
and here is the css:
body {background-image:url(Images/bg.png); background-repeat:repeat; margin-top: 20px;}
#container {text-align:center; margin-left:auto; margin-right:auto;}
#banner {background-image:url(Images/Banner.png); width: 904px; height: 102px; margin-right:auto; margin-left:auto;}
#navbar {width: 904px; height: 17px; margin-left:auto; margin-right:auto;}
#nav1 {width: 80px; height: 17px; background-image:url(Images/Nav1.gif); float:left;}
#home {width: 47 px; height: 17px; float:left;}
#nav2 {width: 134 px; height: 17px; background-image:url(Images/nav2.gif); float:left;}
The div "nav2" doesn't want to show for some reason? Can anyone help me? Thanks in advance!
Adz.
0
This discussion has been closed.
Comments
in the middle of the nav2 div; Empty divs have an odd tendency to disappear.That may show you where that one div is ending up. Feel free to email me if you want some extra help. brian [dot] zollinhofer [at] gmail