Hi im trying to make a simple 3 col layout:
HTML Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <div id="wrapper"> <div id="banner"> <img src="images/banner.jpg" alt="banner"> </div> <div id="left"> hi </div> <div id="mid"> hi </div> <div id="right"> hi </div> </div> <!-- end wapper --> </body> </html>I thought using two floats and a auto margin would work.Code:* { margin: 0; padding: 0; } body { font: 100.01%/1.17 Arial, Helvetica, sans-serif; background-color: #212020; color: #FFFFFF; } #wrapper { width: 800px; margin: 0 auto; background-color: #2E2E2E; } #banner img { width: 800px; height: 150px; } #left { width: 150px; float: left; } #mid { width: 500px; margin: 0 auto; } #right { width: 150px; float: right; }
However the third 'hi' the one in the right div, jumps onto the next line and isnt even in the wrapper's backgrounf color. What am i doign wrong?
thanks






Bookmarks