Reply
Invisibility
Old 06-22-2004, 04:56 PM Invisibility
eyedam's Avatar
Average Talker

Posts: 27
Location: Latvia
Hello!

Can you tell me what is the CSS invisibility setting for? In what cases is it used? Why you should hide something when you can just not write it?

Thanks,
eyedam
__________________
The signature chooses the wizard, not the wizard chooses the signature...
eyedam is offline
Reply With Quote
View Public Profile Visit eyedam's homepage!
 
When You Register, These Ads Go Away!
Old 06-22-2004, 05:27 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
PHP and Unicode with UTF-8
Posts: 3,111
Location: Toronto, Ontario
The visibility property is most likely used with DHTML. You might use it when, for example, someone clicks on something on your page and using Javascript you can choose to hide/show that element. Since invisible items on a page still take up space on the page, use of the 'display' property is more common.

All the menus you see on this forum ('Search this Thread', 'Rate Thread', 'Quick Links' and collapsing forums etc) all use the 'display' property combined with Javascript to do the dirty work.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 06-22-2004, 06:34 PM
eyedam's Avatar
Average Talker

Posts: 27
Location: Latvia
OK, thanks for the answer! I didn't think of that.

But then still "invisibility" option is rarely used, but "display" is used instead?

Can I use "invisibility" or "display" option also for hidden links that I don't want the people to see but for the search spiders to read and follow?

eyedam
__________________
The signature chooses the wizard, not the wizard chooses the signature...
eyedam is offline
Reply With Quote
View Public Profile Visit eyedam's homepage!
 
Old 06-22-2004, 09:57 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Yes, but Google discourages you from doing that.

http://www.google.com/webmasters/guidelines.html

Goto the final bulleted list.
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 06-22-2004, 10:26 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
PHP and Unicode with UTF-8
Posts: 3,111
Location: Toronto, Ontario
Basic rule of thumb is, if it's purpose isn't for your users, then don't put it in at all
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 06-22-2004, 10:27 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
PHP and Unicode with UTF-8
Posts: 3,111
Location: Toronto, Ontario
Quote:
Originally Posted by eyedam
But then still "invisibility" option is rarely used, but "display" is used instead?
Well, there are probably certain times where you'd like to show/hide elements of a page but need them to take up space to retain the "shape" of the layout. That's one example that comes to my head.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Reply     « Reply to Invisibility
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15496 seconds with 12 queries