Subject: A very good example of visibility
Author: WebSpider
In response to: Display vs Visibility
Posted on: 07/24/2006 06:48:37 PM
A very good example of visibility by using 'display' can be found in the Yahoo Sports. Click on the 'today' or 'yesterday' on the Scoreboard to see the actions.
http://sports.yahoo.com/
>
> On 07/24/2006 06:41:06 PM WebSpider wrote:
The core difference between display and visibility is that:
display:block|none: the element NOT to be displayed <div style="display:none;">item</div> will be evicted from the place which would occupy;
visibility:visible|hidden: the element NOT to be visible <div style="visibility:hidden;">item</div> will preserve the place which occupied. Actually, the name 'invisible' speaks itself quite well.
References: