Microtoby schrieb:
> Hello, Guys,
> 
> I’m using jQuery for a while, and like jQuery much more,
> 
> But I have a question begin start using this library,
> 
> YUI and some other library using visibility to hide an element, jQuery 
> using the display css property.
> 
> Any one can tell me what the difference between display and visibility is?
> 
> For example, difference in SEO?

Between both, there is no difference in SEO as long as the element is in 
your source HTML.

If you use display: none to hide an element, it is completely taken out 
of the flow, as if it were not part of your HTML. Following elements 
will reflow. If you use visibility on the other hand, the element also 
gets hidden, but it still takes the space in the document as if it were 
visible (as long as you don't use absolute positioning at the same time, 
which was a common usage back in the DHTML aera, when the display 
property wasn't as good supported in browsers).


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to