The link characteristics are being carried from the NAV to the other links.
Code:body{ background: #FCFCFC; } #banner{ width: 700px; height: 120px; border: solid 1px #000; margin: 0px 0px 5px 0px; background: #FFFCE6 url(images/banner-logo.gif); background-repeat: no-repeat; background-position: center; } .nav-content{ width: 700px; } #content{ border: 1px solid black; background-color: #FEFDF1; vertical-align: top; padding: 2px; background-repeat: repeat-y; } #content h1{ color: #000; font-family: Verdana; font-size: 14px; } #content p{ color: #000; font-family: Verdana; font-size: 11px; } .nav{ width: 105px; font-family: Verdana; color: #000000; font-size: 11px; vertical-align: top; background-repeat: no-repeat; } #nav{ top: 133px; left: 610px; text-align: center; } #nav ul{ list-style: none; margin: 0; padding: 0; } #nav li{ border-top: 1px solid #FCFCFC; border-bottom: 1px solid #FCFCFC; } #nav li a:link, a:active, a:visited{ display: block; padding: 5px 5px 5px 0.5em; border: 1px solid #000; background-color: #FCFAE3; color: #000000; text-decoration: none; } #nav li a:hover{ display: block; padding: 5px 5px 5px 0.5em; border: 1px solid #000; background-color: #EBE8C8; color: #000000; text-decoration: none; }Yes, I know I'm using Table, but besides using "position: absolute" This was the easiest way t get the Nav beside the content section. Please dont comment on the tables.HTML 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>Layout 2</title> <link rel="stylesheet" type="text/css" href="layout2.CSS" /> </head> <body> <div id="main"> <div id="banner"></div> <table width="753" class="nav-content"> <tr> <td class="nav"> <div id="nav"> <ul> <li><a href="">Home</a></li> <li><a href="">Presentation</a></li> <li><a href="">Advertising</a></li> <li><a href="">History</a></li> <li><a href="">Contact</a></li> </ul> </div> </td> <td id="content"> <h1>This is a Title</h1> <p>this is normal text this is normal text this is normal text this is normal text <a href="">this is a link</a> this is normal text this is normal text this is normal text this is normal text this is normal text</p> <p>this is normal text this is normal text this is normal text this is normal text <a href="">this is a link</a> this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text this is normal text <a href="">this is a link</a> this is normal text this is normal text this is normal text</p> <p>this is normal text this is normal text this is normal text this is normal text <a href="">this is a link</a> this is normal text this is normal text this is normal text this is normal text this is normal text</p> </td> </tr> </table> <!-- --> </div> </body> </html>


Reply With Quote
Bookmarks