Wednesday, 15 October 2014

Previous Interview Question Next Interview Question
Home

CSS "display" property clear explanation

CSS display property

Display property Values are listed below

  • block makes the element generate a block
    box.
  • inline makes the element generate one or
    more inline boxes.
  • inline-block makes the element generate a
    block box that’s laid out as if it were an inline box.
  • inline-table makes the element behave like
    a table that’s laid out as if it were an inline box.
  • list-item makes the element generate a
    principal block box and a list-item inline box for the list
    marker.
  • A value of run-in makes the element
    generate either a block box or an inline box, depending on the
    context. If the run-in box doesn’t contain a block box, and is
    followed by a sibling block box (except a table caption) in the
    normal flow that isn’t, and doesn’t contain, a run-in box, the
    run-in box becomes the first inline box of the sibling block box.
    Otherwise, the run-in box becomes a block box.
  • table makes the element behave like a
    table.
  • table-caption makes the element behave like
    a table caption.
  • table-cell makes the element behave like a
    table cell.
  • table-column makes the element behave like
    a table column.
  • table-column-group makes the element behave
    like a table column group.
  • table-footer-group makes the element behave
    like a table footer row group.
  • table-header-group makes the element behave
    like a table header row group.
  • table-row makes the element behave like a
    table row.
  • table-row-group makes the element behave
    like a table body row group.
  • A value of none makes the element generate
    no box at all. Descendant boxes cannot generate boxes either, even
    if their display property is set to something
    other than none.

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment