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/

3 thoughts on “css: Don’t use Negative Margins to Hide Your H1”

  1. The term is used referring to get in touch with mind reading.

  2. Virtually all of whatever you mention is astonishingly appropriate and that makes me ponder why I hadn’t looked at this in this light before. Your piece truly did switch the light on for me personally as far as this specific topic goes. But there is just one factor I am not too comfy with so while I attempt to reconcile that with the main theme of the point, allow me see just what all the rest of the subscribers have to say.Nicely done.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.