Personal tools

Difference between revisions of "Css"

From MohidWiki

Jump to: navigation, search
(New page: Css, or cascading stylesheet, is a stylesheet standard for html pages. ==The box model== One of the most important concept of css is the box model. The box model provides the desc...)
 
(The box model)
Line 4: Line 4:
 
One of the most important concept of [[css]] is the box model. The box model provides the description of each geometrical attribute of a block, i.e. of an xhtml element.
 
One of the most important concept of [[css]] is the box model. The box model provides the description of each geometrical attribute of a block, i.e. of an xhtml element.
  
<img>http://www.w3.org/TR/CSS2/images/boxdim.png</img>
+
<webimg>http://www.w3.org/TR/CSS2/images/boxdim.png</webimg>
  
 
*The '''position''' defines the type of positionning that the block element uses to place itself inside the page.
 
*The '''position''' defines the type of positionning that the block element uses to place itself inside the page.

Revision as of 15:04, 5 May 2009

Css, or cascading stylesheet, is a stylesheet standard for html pages.

The box model

One of the most important concept of css is the box model. The box model provides the description of each geometrical attribute of a block, i.e. of an xhtml element.

<webimg>http://www.w3.org/TR/CSS2/images/boxdim.png</webimg>

  • The position defines the type of positionning that the block element uses to place itself inside the page.
  • top, left, right, bottom are the attributes that provide the positioning of a block element,
  • The margin provides the outer spacing that the block element will occupy
  • The padding provides the inner spacing
  • The border provides the type and thickness of the border
  • The width and height are the attributes that provide the content size.

External References