Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Banned
    Join Date
    Jan 2004
    Location
    Minneapolis, MN
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    display: block on <a> in <td>s behaving odd in IE

    http://esultants.com/c/cmiarch/entrances.cfm

    Note the subnav on the left. Block level <a>s within <td>s. Straightforward, right? Behaves exactly as it should in Mozilla/FireFox.. IE, all versions, doesn't call the :hover pseudo-class unless you mouse over the text, but it still swaps the background across the whole cell, indicating that the <a>s are in fact block.

    Here's the kicker: IE does this ONLY for the second two, NOT the first option!



    Anybody know what's goin' on? Beuler? Beuler?

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works fine for me -- IE 6.

    But why are you using images for a simple text color/background color switch?

  • #3
    Banned
    Join Date
    Jan 2004
    Location
    Minneapolis, MN
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it's my coworker's project actually. i asked him the same thing. he was concerned about web safe colors, but correct me if i'm wrong, but even if you use an image, web safe colors have partly to do with system palettes and monitor depths as well, right? or not necessarily the latter.

    it's seemed to me at this point thought that about any color goes for simple backgrounds like that. i've looked at different browsers on different systems and not really seen any significant differences these days.

  • #4
    Banned
    Join Date
    Jan 2004
    Location
    Minneapolis, MN
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also, it works fine now because he just made them block level <a>s inside one master <div> instead of individual <td>s.. doesn't make much sense, but whatever, right?

  • #5
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any documentation I found about web safe colours says about the same thing.
    If you're not designing for 640x480, you don't need to design for web-safe colours either. Probably stick within the 16-bit pallette though. (Not that I ever do )

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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