It's not a secret anymore!*
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
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: 805
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: 805
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: 60053
    
  65

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: 60053
    
  65

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
 
Similar Threads
Issue with style display property
Getting null while trying to get value of Multiple list
Problem setting TD tag innerHTML
servlet mapping
display:column + javascript