I’m working on doing a complete float layout. For the most part i have achieved the layout i wanted but i have a few bugs across browsers.
here is the link to the page:
[url]http://stu.wccnet.edu/~jswager/inp170/homework/bc_main.htm
In IE i get the border around the whole content but in all other browsers the border around collapses because the floating. So i’m wanting to know what im doing wrong in my css not to get the border around my whole page.
My second problem and it varies in all browsers is the nav bar on top. I must float this unordered list but how can i get correct spacing between each LI.
here is my css
[code]
body { font: 12px verdana, arial, lucida, helvetica, sans-serif; margin: 0; padding: 0;}
/* heading styles */
h1 { font-size: 20px; }
h2 { font-size: 18px; overflow:auto;}
h3 { font-size: 14px; }
/* hover effect on h2’s */
h2:hover { color: #a33003}
/* h2 adjacent sibling selector */
h2+p {margin-bottom: 0px;}
/* image floating */
img { float: left; margin: 10px 10px 0 10px; }
/* Links */
a:link { color:#a33003;}
a:visited { color:#7F2F0F;}
a:hover , a:focus , a:active { color: #fff; background: #A33003; text-decoration:none;}
#whole-page { width: 900px; margin: 10px auto; border: 1px solid #000; }
/* Top header */
#main-head { float: left; padding: 10px; background: #A33003;}
/* Company Logo */
#logo { float: left; width: 195px; height: 43px; background: url(../imgs/logo.gif) no-repeat right; }
#logo h1 { margin: -1000px; }
/* Navigation Bar */
#nav-bar { list-style-type: none; float: right; font-size: 15px; margin-top: 15px; overflow:auto; }
#about { float: left; float: left; width: 7em; }
#services { float: right; float: left; width: 5em; }
#product {float: left; float: left; width: 5em; }
#support { float: right; float: left; width: 5em; }
#news { float: left; float: left; width: 5em; }
#contact { float: right; float: left; width: 5em;}
/* nav bar links settings */
#nav-bar li a:link { margin: 0; font: small-caps bold 15px verdana, arial, lucida, helvetica, sans-serif;
word-spacing: 0.2em; color:white; text-decoration:none;}
#nav-bar li a:visited { }
#nav-bar li a:hover , a:focus , a:active { text-decoration:underline; }
/* Latest News Side Bar */
#latest-news { padding: 10px; float: left; background: #CFC2C2; width: 200px; overflow:auto; min-height: 800px; }
.news { font-size: 12px; }
/* Main Content – Four collums */
#content {float: left; padding: 10px; overflow: auto; width: 660px;}
/* collum 1 */
#col-welcome { border: 1px solid #CFC2C2; overflow:auto; padding: 0 10px 10px 0;}
/* collum 2 */
#col-service {float: left; width: 33%; overflow:auto;}
/* collum 3 */
#col-support { float:left; overflow:auto; width: 33%;}
/* collum 4 */
#col-product {float: left; width: 33%; overflow:auto;}