Announcement

Collapse
No announcement yet.

Header / CSS problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Header / CSS problem

    I just tried to change the style of my vB a bit and I got a strange problem.

    I set up a few links at the top of my forum using a CSS class:
    Code:
    <a class="nav">...</a>
    My CSS code is this:

    Code:
    .nav
    {
    	font-size: 11px;
    	color: white;
    }
    
    a.nav:link
    {
    	text-decoration: none;
    }
    
    a.nav:hover 
    {
    	color: black;
    }
    But any browser ignores this code and so I have to ask you why it is not working. To view my website, go to http://webhostingtalk.de

    Greetings
    Reimer

  • #2
    Try:
    Code:
    a.nav:link { ... }
    a.nav:visited { ... }
    a.nav:hover { ... }
    a.nav:active { ... }

    Comment


    • #3
      Originally posted by Marco
      Try:
      Code:
      a.nav:link { ... }
      a.nav:visited { ... }
      a.nav:hover { ... }
      a.nav:active { ... }

      The final solution for my problin is this

      Code:
      a.nav {text-decoration: none; font-size: 11px; }
      a.nav:link {text-decoration: none; color: white;}
      a.nav:visited {text-decoration: none; color: white;}
      a.nav:active {text-decoration: none; color: black;}
      a.nav:hover {text-decoration: none; color: black;}
      I don't why, but it works! Thanks buddy!
      Last edited by Reimer; Sun 28 Sep '03, 3:51am.

      Comment


      • #4
        if they're the same you can group different classes together
        Code:
        a.nav {text-decoration: none; font-size: 11px; }
        a.nav:link, a.nav:visited {text-decoration: none; color: white;}
        a.nav:active, a.nav:hover {text-decoration: none; color: black;}
        Visit NoizPollution.com // Your Music Source

        Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.

        Comment

        Related Topics

        Collapse

        Working...
        X