display property in CSS to hide an...">

Hiding and Showing Divs

I found a cool way to display/hide stuff in realtime using a simple <div> tag. You can use the display property in CSS to hide and show stuff in real time. I even wrote up a quick little example.
Leave A Reply - 1 Reply
Replies
Elaine 2009-10-12 06:52am - No Email - Logged IP: 69.145.179.17

You stated, "I found a cool way to display/hide stuff in realtime using a simple tag. You can use the display property in CSS to hide and show stuff in real time. I even wrote up a quick little example."

After reviewing your example it is clear you used javascript NOT css to hide/show the image and text. You used document attributes within a javascript context to call the display property had you actually used css you wouldn't need the javascript!!

All content licensed under the Creative Commons License