i am new to using the div tag and would like to convert to it from my existing table page layout system however....
i cant seem to get three divs to line up on the same line
also, i seem to be creating a line break somehow in the container div (header)
where an i going wrong here?
please advise
testing using firefox v2.0.0.11
thanks
CSS
html,body
{
background: #DDDDDD;
spacing: 0;
padding: 0;
margin: 0px;
}
#header
{
width: 645px;
height: 50px;
background: #000000;
}
#hleft
{
float: left;
background: #009999;
width: 5px;
height: 50px;
}
#hcenter
{
background-image: url("gfx/head.jpg");
width: 635px;
height: 50px;
}
#hright
{
float: right;
background: #009999;
width: 5px;
height: 50px;
}
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/htm14/Transitional.dtd"> <html> <head> <title>TEST DIVS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="layout.css" /> </head> <body> <center> <div id="header"> <div id="hleft"> </div> <div id="hcenter"> </div> <div id="hright"> </div> </div> </center> </body> </html>
This post has been edited by seeing: 05 March 2008 - 02:37 AM

New Topic/Question
Reply



MultiQuote








|