Abdul Azim's portfolio of Web design

CSS 2.1 Complete Reference

Property Name: display


Default Value: inline
Inherited: no
Possible values directly from the standard:
inline, block, list-item, run-in, inline-block, table, inline-table, table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell, table-caption, none, inherit

Property Description:

This property is centric to the rendering process of a document. In a language such as HTML where elements have inherent behaviour, the default property values are taken from the behaviours described in the HTML specifications. In languages where display behaviour is not defined (such as in XML), the default value is inline. There are many possible values, however 3 values in particular will make up most of your usage of this property. The first, is the inline value. Inline elements do not create separate blocks of content. They keep up with the normal flow of content, can be placed within a line of text, and react 'normally' when the document is resized. A class that defines underlined, italic, bold, colored text, with a certain border and a specific font, may still remain an inline element. The second value is the block value. Several HTML elements are inherently block elements, such as DIVs and Headings. These elements create distinct, separate 'blocks' of content, usually generating a line-break before and after the content. Only Block Elements can be positioned. The third and last important display value is none. When an element's display property is set to none, it, as well as all of its child elements, are turned off. They are simply removed from the document tree, when the document is rendered (although they still exist, they are not rendered visually). This allows for some very powerful features, but should be thoroughly examined and tested before deployed for general use.


Example:

.text_block { display:block; padding: 2px; font-size: 1.2em; }


Complete CSS Property Listing:
background-attachment, background-color, background-image, background-position, background-repeat, background, border-collapse, border-color, border-spacing, border-style, border-top, border-right, border-bottom, border-left, border-top-color, border-right-color, border-bottom-color, border-left-color, border-top-style, border-right-style, border-bottom-style, border-left-style, border-top-width, border-right-width, border-bottom-width, border-left-width, border-width, border, bottom, caption-side, clear, clip, color, content, counter-increment, counter-reset, cursor, direction, display, empty-cells, float, font-family, font-size, font-style, font-variant, font-weight, font, height, left, letter-spacing, line-height, list-style-image, list-style-position, list-style-type, list-style, margin-top, margin-right, margin-bottom, margin-left, margin, max-height, max-width, min-height, min-width, outline-color, outline-style, outline-width, outline, overflow, padding-top, padding-right, padding-bottom, padding-left, padding, position, quotes, right, table-layout, text-align, text-decoration, text-indent, text-transform, top, unicode-bidi, vertical-align, visibility, white-space, width, word-spacing, z-index




About me

I am a freelance designer with over 7 years experience within the Web design, Web Developement & Online Marketing industry. I was a founding director and designer at Filance, one of UAE's leading creative agencies for 4 years, an experience which was great fun and broadened my expertise immensely.

This portfolio contains a selection of my work during this time.

If you're looking for a hard working, skilled, and very down-to-Earth designer then look no further.

  1. Contact me about a design project

BlogRoll

Dubai Web Design