www.webdeveloper.com
Results 1 to 5 of 5

Thread: [RESOLVED] Nav is making issues with other links

  1. #1
    Join Date
    Mar 2005
    Location
    Canada (eh)
    Posts
    288

    resolved [RESOLVED] Nav is making issues with other links

    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;
    }
    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>
    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.
    -sheepo designs-
    My Home Town

  2. #2
    Join Date
    Mar 2005
    Location
    Canada (eh)
    Posts
    288
    No one gunna lend a hand?
    -sheepo designs-
    My Home Town

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    #nav li a:link, #nav li a:active, #nav li a:visited {
    At least 98% of internet users' DNA is identical to that of chimpanzees

  4. #4
    Join Date
    Mar 2005
    Location
    Canada (eh)
    Posts
    288
    Well I'm an idiot. Thanks Fang!
    -sheepo designs-
    My Home Town

  5. #5
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Canadian?
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles