Hey guys,
I am currently rebuilding my website with divs, instead of tables.
However I have a problem.
I want the two small boxes to be inline with each other.
http://www.codingfreakz.x10hosting.com/v1/
look at the boxes. I want them beside each other.
Here is the css that I am using:
Here is the page codeCode:body { background-color: #333333; font-family: Tahoma; font-size: 12px; color: #FFFFFF; margin: 10px; } .navdiv { background-color: #666666; position: absolute; width: 200px; height: auto; border: 1px solid #FFFFFF; } .contentdiv { background-color: #666666; position: absolute; margin-left: 215px; width: 600px; height: inherit; border: 1px solid #FFFFFF; } .login { background-color: #999999; width: 200px; border: 1px solid #000000; margin-left: 5px; position: relative; } .form { background-color: #999999; border: 1px dashed #000000; font-size: 12px; font-family: Tahoma; } .ads { background-color: #999999; width: 200px; border: 1px solid #000000; margin-left: 5px; } .news { background-color: #999999; width: 200px; border: 1px solid #000000; margin-left: 210px; position: relative; }
It is a bit of a long post, so could you please help me!Code:<!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="style/main.css" type="text/css" /> </head> <body> <div class="navdiv"> <b>Site Navigation</b> </div> <div class="contentdiv"> <br /> <div class="ads"> <?php include("../ads.php");?> </div> <br /> <div class="login"> <strong>Login:</strong> <form> <input type="text" value="Username" class="form"> <br /> <input type="password" value="Password" class="form"> <br /> <input type="button" value="Login" class="form"> </form> </div> <div class="news"> <b>Site News</b> </div> </div> </body> </html>
Regards,
Randomize


LinkBack URL
About LinkBacks


Reply With Quote

