• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16.  Layout with Styles > Displaying and Hiding Elements

Displaying and Hiding Elements

The display property is useful for hiding or revealing particular elements depending on the visitor's browser, language preference, or other criteria. You can also set elements to display as block-level or inline. Or you can display an element as a list item—even without the LI tag.

To specify how elements should be displayed:

1.
Type display:.

2.
Type none to hide the given elements.

Or type block to display the element as a block-level (thus starting a new paragraph).

Or type inline to display the element as inline (not starting a new paragraph).

Or type list-item to display the element as if you had used the LI tag (see pages 135-141).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint