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 3 of 3
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do you hide images for text-only and accessibility browsers?

    Just as stated above -- how do you hide images from text only and handicap accessible browser? It looks kinda' silly when all that shows up is my alt or long description -- and I don't want them to have a specific site lite... I want them to use the same site, enjoy it, and not have a line that says 'image of girl in red here'. Hopefully you guys can shed some light on this one for me.

    I'm working in XHTML here, by the way.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Think about the purpose of the image - the ALT attribute is intended to fulfil the same purpose when the image is not displayed, so what you're after is to describe the image so that the same information is imparted.

    But if you can't or if it seems pointless - if the image is purely decorative and imparts no information at all, then use null alt text - alt=""

    You can also make "imageless-images" using CSS - a DIV or other container with a specified width and height and the image tiled in as a background-image - that will only show up in modern graphical browsers.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you brothercake -- now, I have been using style sheets for a little while, but I typically don't use <DIV> tags -- mostly out of ignorance... are these tags purely to divide up code? I imagine not, what is the proper use of them?
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...


  •  

    Posting Permissions

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