css: Don’t use Negative Margins to Hide Your H1

Oftentimes people will use an image for their header text, and then either use display:none or a negative margin to float the h1 off the page. Matt Cutts, the head of Google’s Webspam team, has officially said that this is a bad idea, as Google might think it’s spam.

As Mr. Cutts explicitly says, avoid hiding your logo’s text with CSS. Just use the alt tag. While many claim that you can still use CSS to hide a h1 tag as long as the h1 is the same as the logo text, I prefer to err on the safe side.

see also:

http://net.tutsplus.com/tutorials/html-css-techniques/30-css-best-practices-for-beginners/

This entry was posted in Hosting, Informacione tehnologije, Internet, Softver and tagged , , . Bookmark the permalink.

One Response to css: Don’t use Negative Margins to Hide Your H1

  1. Darin Pielow says:

    Stunning essay, acquired the enjoyment of reading

Leave a Reply

Your email address will not be published. Required fields are marked *