Results 1 to 4 of 4

Thread: CSS - No Underline - Browser Compatibility

  1. #1
    Join Date
    Dec 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS - No Underline - Browser Compatibility

    I am using Dreamweaver, external stylesheet.... I am using no underline for the links. In Internet Explorer, it seems to work fine. In Netscape and Firefox, some of the links are underlined and some aren't. There is no consistency. How can I solve that problem?

  2. #2
    Join Date
    Dec 2005
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Netscape and Firefox render code exactly as it is written, whereas IE will try to guess if something is incorrect, hence the difference. Check your code for errors 1st of all, Dreamweaver is notorious for writing bad code.
    http://www.htmlhelp.com/tools/csscheck/
    http://www.htmlhelp.com/tools/validator/direct.html.en
    All links should have have the property text-decoration: none; assigned to them.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Dec 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your help. The problem is solved. It came up as valid code in the code validators. The problem was the way Dreamweaver was putting in the code. Sometime it put class=noUnderline right in the link tag, and sometimes it put it within the span tag. Where the code was in the span tag was where it wasn't working in Netscape and Foxfire. I took out the span tag and added the class=noUnderline within the link tag. It works great now.

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
  •