SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Doctype and CSS link hover, etc.. problems

    I'm wanting to declare a doctype for my webpages, but when I do so, my CSS properties for .leftmenu start acting funny in both IE and Firefox...

    A.leftmenu:link {text-decoration: none; color: #ADD5AF; }
    A.leftmenu:visited {text-decoration: none; color: #ADD5AF; }
    A.leftmenu:hover {text-decoration: underline; color: #F9805D; }
    A.leftmenu:active {text-decoration: none; color: #F9805DF; }

    A:link {text-decoration: none; color: blue; }
    A:visited {text-decoration: none; color: blue; }
    A:hover {text-decoration: underline; }
    A:active {text-decoration: none; }

    Here's an example page with a doctype declaration...

    http://www.yerba-mate.com/partners.htm

    It runs fine w/o doctype in FF and in quirks mode for IE. I need to declare a doctype to fix my layout for IE. Any help would be appreciated. Thanks!

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My first suggestion is to hit the html validator with the page as you do have quite a few errors that COULD effect proper rendering.

    Funny thing about validating, even though some people say its just a pain to have a valid page, it usually helps solve a lot of problems just by following through and fixing what it finds..

    BTW, define "funny"


Bookmarks

Posting Permissions

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