1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

Show and Hide Text in DIVs with CSS and JavaScript

An example of how to use JavaScript and CSS to show and hide blocks of text on your Web page.

This is the navigation column. Click on an item below to get the text you want displayed to show up in the second column. Click it a second time to hide it.

This is the content column. It starts out blank except for this explanation text. Choose what you want to learn in the navigation column on the left. The text will appear below:

Jennifer Kyrnin

©2017 About.com. All rights reserved.