The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Logo – Image, Heading or Div?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #31390

    When adding a logo to my site, should I be using image HTML (img), applying it to a heading as a background image or applying it as a background image to another element, such as div?

    Just curious, I see all of these methods.


    Here’s the system I use. This one still gives the browser the text to use.




     #logo {
    background:url(logo.png) no-repeat top left;


    I am no css pro, but unless I am mistaken the above would hide the text from the visitor, something google can punish you for doing, again, if I am not mistaken.


    Yeah I understand the different methods, I’m just wondering which one is the best method to use in general.


    Something like that will have no negative SEO impact.


    @Arvid : I am pretty sure that this won’t get you in trouble with the search engines. Ideally you would use an image that includes what ever text you are indenting -9999px;. Also if you use it sparingly it shouldn’t raise any red flags.

    : I would recommend this because it lets you load you’re pretty image, you still get the text on the page which is good for SEO and if the CSS fails to load it has text as a fall back. (If the image doesn’t work it wouldn’t matter which one you use. Both fail.)


    @wolfcry911, while it’s true that it would read the text anyway, the h1 tag has a different weight of importance than Alt-Image text. Even though the Alt-Text is in the H1 tag, I don’t know if Google says:

    “This text is Alt Image text” or
    “This text is H1 text” or
    “This is Alt Image text and H1 text”

    All 3 could have a different weight of Importance to the Google search engine. How it reads it or how it treats them is beyond me. Maybe it’s all the same and is irrelevant. Only Google really knows.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.