CSS Display Property

The CSS display property can be used to change how the element behaves, by changing the rendering box used. One of its uses is to create equal height columns, by using the table and table-cell values to make elements behave like a HTML table.

Possible Values

  1. none
  2. block
  3. inline
  4. inline-block
  5. list-item
  6. run-in
  7. table
  8. table-cell
  9. table-row
  10. table-column | table-column-group
  11. table-header-group | table-row-group | table-footer-group

Note. Changing an elements default display, will not change its type for real. Rather it makes the element behave like the corresponding HTML element that it has been set to.

CSS display example

CSS Display Property Usage Example

div { /* All div elements will be hidden */
 display: none;
}
#Basement { /* The element with its id attribute set to Basement will be hidden */
 display: none;
}

Inherited? - NO!

See also:

  1. Display table and table-cell tutorial

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.