Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Set an Element's Visibility

Use the visibility property to set whether an element is visible. To make an element invisible, set visibility: hidden;. To make an element visible (the default), set visibility: visible;.

<span style="visibility:hidden">This text would not be visible</span>

The hidden element still takes up space on the webpage.

For example the code shown above is used to place a span
This text would not be visible
between these two lines, it takes up space, but it's not visible.

You might use Java Script to dynmically change an element's visibility. For example, use the onclick event of one element to show and hide another element.

Optionally, you can use the display property to set whether an element is visible. To make an element invisible, set display: none;. To make an element visible, set display: inline; or display: block;.

<span style="display:none">This text would not be visible</span>

You might use Java Script to dynmically change an element's display property. For example, use the onclick event of one element to change another element's display property from block and none.

An element with display:none; takes up no space on the webpage.

For example the code shown above is used to place a span
This text would not be visible between these two lines, it's not visible and takes up no space.

The display property is usually used to define the type of box an element creates, for example display: inline creates an element that "flows" into position along with the other elements on the webpage, display: block creates an element that is positioned relative or absolute to its parent container element.

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268