http://www.wam.umd.edu/~sfiorell/scs/index.htm
HTML in question:
And the CSS:Code:<div id="MainBottom"> <h3>Services</h3><hr /> <div class="floatBot"> <h4>Networking</h4> <ul> <li>Setup your home network</li> <li>Troubleshoot the internet</li> </ul> </div> <div class="floatBot"> <h4>Protect and Sanitize</h4> <ul> <li>Remove spyware/adware and viruses</li> <li>Eliminate popups and other unwanted effects</li> </ul> </div> </div>
As you can see I have the MainBottom class enclosed in a green border. However when I add the floatBot class, the elements within floatBot tags are no longer in the border and instead appear to be following the rules of the MainFooter class instead of MainBottom.Code:body { background: #ffffff url('img/bg.png') top center repeat-y; font: 16px Trebuchet MS, Arial, Helvetica, sans-serif; } div#Main { margin: 2px 112px 0 112px; } div#MainHeader h2 { border: 1px solid blue; } div#MainTop { border: 1px solid black; } div#MainTop h3{ font: 24px Trebuchet MS; color: #CCCCCC; } div#MainTop h4{ font: 20px Trebuchet MS; color: #CC0000; } div#MainTop p{ width: 254px; margin: -25px 0 0 20px; } div#MainBottom { margin: 0 auto; text-align: left; border: 1px solid green; } div#MainBottom h3{ font: 24px Trebuchet MS; color: #CCCCCC; } div#MainBottom h4{ font: 20px Trebuchet MS; color: #CC0000; } div#MainBottom ul{ width: 212px; margin: -25px 0 0 -25px; list-style-type: none; } div#MainBottom li{ background: url('img/box.gif') no-repeat; background-position: 0 .5em; padding-left: .6em; } div.floatBot { float: left; } div#MainFooter { font: 14px Trebuchet MS; text-align: center; } div#MainFooter a { color: #FFFFFF; } div#MainFooter a:hover { color: #CC0000; } div#MainFooter p#fTop { color: #000000; } div#MainFooter p#fBot { color: #CCCCCC; }
What I was trying to do was have those elements all be on the same row, column style.





Bookmarks