+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 15

Thread: Best method for header images and text?

  1. #1
    Forum Sniper™ blueocto's Avatar
    Join Date
    Oct 2007
    Location
    Newcastle upon Tyne
    Posts
    5,251

    Best method for header images and text?

    I've heard and read about several techniques, to use a header image and still have header text for semantic purposes, including the text-indent, flash methods, etc.

    I came across this link [ws] Replacing Text By An Image | Náhrada textu obrázkem recommended by CSSCreators readers.

    Is this the best method? If not, why not?
    What method do you use?


  2. #2
    Established Member graphicsAZ's Avatar
    Join Date
    Oct 2008
    Location
    Arizona, USA
    Posts
    508
    I like the method that Petr is explaining on that page, but it doesn't seem that much different from adding a img tag into H2 and put the "text" you want in the alt attribute? The first is more CSS oriented, but both methods return the same result....text in the place of a missing image.
    John Darling - Graphic & Web Designer
    SmarterTools Inc. | (877) 357-6278 | www.smartertools.com

  3. #3
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,759
    The first is more CSS oriented, but both methods return the same result....text in the place of a missing image.
    No the result is absolutely not the same, using the technique in the article you retain the semantics of the document structure by keeping the heading as text; it's good for SEO etc.

  4. #4

  5. #5
    Forum Sniper™ blueocto's Avatar
    Join Date
    Oct 2007
    Location
    Newcastle upon Tyne
    Posts
    5,251
    Harry, on your page "Ultimate image Replacement - The Harry Roberts Method?" and I quote:

    Obviously when it is disabled, users will see an embedded image as well as text.
    Doesn't this mean that you would have say <h1>My Website Name</h1> sitting over an image that might well say "[icon img] My Website Name" therefore, it's not really solving the issue?

    I'm not having a go, just trying to learn and understand.

  6. #6
    CSS Wizardry Harry's Avatar
    Join Date
    May 2007
    Location
    Leeds, England
    Posts
    13,881
    My method is best for h1 logos, you get the company name in the h1 as raw html, but you also get the actual image of the logo too when it comes to print (or with screen CSS disabled). For other instances use the first one I linked.

    EDIT: I used my method here, look at the logo and disable styles.

  7. #7
    Forum Sniper™ blueocto's Avatar
    Join Date
    Oct 2007
    Location
    Newcastle upon Tyne
    Posts
    5,251
    Ah right I see, so compared to example 2, on the link I mentioned in post #1, is that
    - its the same when images are disabled,
    - but, when styles are disabled you still get to see the logo

    :D Nice one!

  8. #8
    CSS Wizardry Harry's Avatar
    Join Date
    May 2007
    Location
    Leeds, England
    Posts
    13,881
    Basically:
    My first link will allow all combinations of CSS/images on/off
    My second link will allow all combinations of CSS/images on/off and leave an embedded image for printing.

  9. #9
    is a twitter-whore, or twhore... thebluefox's Avatar
    Join Date
    Apr 2009
    Location
    UK
    Posts
    144
    I've not clicked any links, but the best way IMO is to use background/text-indent on a h1/h2/whatever tag. This keeps search engines happy, and means when styles are disabled you get a standard header tag.

  10. #10
    CSS Wizardry Harry's Avatar
    Join Date
    May 2007
    Location
    Leeds, England
    Posts
    13,881
    Quote Originally Posted by thebluefox View Post
    I've not clicked any links, but the best way IMO is to use background/text-indent on a h1/h2/whatever tag. This keeps search engines happy, and means when styles are disabled you get a standard header tag.
    Nope, that's not the best way. When images are disabled you can't see anything as the text is like -9999px off screen ;)

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 31-03-2009, 03:08 AM
  2. jQuery hover fade method
    By Heather1981 in forum General Web Design Forum
    Replies: 0
    Last Post: 29-09-2008, 11:15 AM
  3. InDesign Project - Working with Text and Images
    By Graphic Design Blog in forum Graphic Design Blog
    Replies: 0
    Last Post: 30-06-2008, 02:10 PM
  4. SEO: Text headings vs. images
    By mattpowers in forum Graphic Design and Web Design Help
    Replies: 11
    Last Post: 11-06-2008, 07:37 PM
  5. Replies: 3
    Last Post: 16-12-2007, 11:28 AM

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site