Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control what elements to show from a CSS

Status
Not open for further replies.

Pichdude

Programmer
Aug 24, 2005
66
SE
Hi,

Is it possible to controll, from a css, what web-elements should be shown on a webpage? E.g. if a picture, form, drop-down list, etc should be shown.

Regards,

Pichdude
 
You can control that via [tt]display[/tt] (none for not showing) or [tt]visibility[/tt] (hidden for not showing) property. The former will not render the element at all, so there will be no empty space where the element is placed. The latter will render the element but make it invisible. Any space that the element occupies will be taken by a blank block.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top