SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    bellmore
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keeping the Code down with images

    Quick questions, is there anyway to enter Alt text to a backround image, but have the alt text appear in the html file and backround remain in the CSS file?

    I've setup all the images on our main page to be backround pics to keep the code down within the html file which is what's being spidered. I'm trying to eliminate crap and keep content only.

    Any idea's

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    I do not think there is. I may be wrong.

    Johnny

  3. #3
    SitePoint Member Volkov's Avatar
    Join Date
    Oct 2004
    Location
    Manchester, England
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you for example set and image as a background for a table, instead of alt
    use title="My Image" in the table you have the background set for.
    You can do the body background image, but it's kinda pointless!

    If that's not the case, could I see an image of your website with a piece
    of the HTML coding, so I can tell ya for sure.

    "title" replaces "name" as W3C XHTML / HTML 4.01 standards

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    bellmore
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure... www.mmprint.com/indexcss.htm

    This is the template page for the new redesign using CSS

    The older site is Table hell!

  5. #5
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Background images are decorative, and don't need alts/titles. If your background image is important as far as page content goes, then use the <img /> tag with the proper alt/title attributes.


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
  •