jimfog Posted April 15, 2011 Share Posted April 15, 2011 What is the reason in applying in an element the display: hidden attribute?Why just this element do not be there in the first place?Unless...We want to put it there to give(we want) a specific layout to the page?What is your opinion about this? Link to comment Share on other sites More sharing options...
Ingolme Posted April 15, 2011 Share Posted April 15, 2011 You mean "display: none" right?You may want to hide an element for many reasons. Most of them involve Javascript. But you can also use it for CSS menus where the property is set to "block" when an ancestor element is hovered over. Link to comment Share on other sites More sharing options...
jeffman Posted April 15, 2011 Share Posted April 15, 2011 If you had a series of articles all on one page, your user might not want to scroll through a lot of text to find an interesting one. So for each article, you hide everything but the first paragraph. When the user sees something they want, they click on a button that says "more". JavaScript changes the display, and the rest of the article opens up. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.