开发者

Text-Indent vs Position for SEO

开发者 https://www.devze.com 2023-01-14 23:50 出处:网络
What\'开发者_如何学运维s the best way to hide a text element and replace it with an image while still maintaining good SEO. I\'ve seen negative text-indent, but I prefer absolute positioning with nega

What'开发者_如何学运维s the best way to hide a text element and replace it with an image while still maintaining good SEO. I've seen negative text-indent, but I prefer absolute positioning with negative top.

So what I'd like to know is which is better for SEO. Do most search engines consider text elements with negative top with absolute positioning; likewise for text-indent?


I would be very surprised if there was any difference. Search engines care about your content, they don't generally download your stylesheets, so all they would see is the markup which would be the same for both methods.

Image replacement is good for users and search engines, so as long as you're not doing it for the purpose of cloaking, you'll be fine.


I'm afraid the accepted answer isn't the case as far as actual communications from Google indicate (as frustrating as that is!). Take a look here:

http://luigimontanez.com/2010/stop-using-text-indent-css-trick/

and here:

http://maileohye.com/html-text-indent-not-messing-up-your-rankings/

The answers indicates that any CSS that seems to hide content from the user could be considered bad, simply because the techniques have been tainted by their use by black-hat SEOs. Though they are super handy for development (and kind of required when using CSS sprites effectively), it looks like there isn't a Google accepted best practise to address this. Yet....

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号