jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes CSS's display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS Watch "CSS New topic
Author

CSS's display

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
I'm just playing around with it for now. Here's what I have :

I'm having some trouble checking to see if a div tag is displayed or not and then hiding or displaying a section. I've defaulted div tags selCrit and db to have a display value of block upon loading the page. Any help would be appreciated. I've just started looking into this so any helpful info on the various properties and such of the display property would be appreciated. Thanks.

Rob
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
Never mind. I had a </style> tag in by accident that was messing things up.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63349
    
  70

I added real code tags.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63349
    
  70

The display property should be set to none to hide an element.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CSS's display
 
It's not a secret anymore!