by Dinesh Thakur

The Background properties are used to set the background color, background image. It also helps to repeat the background and make background scroll with the contents etc.

 
by Dinesh Thakur

Padding is the property that is used to set the amount of space between the contents of an element and its border. The values that can be set for this property can be in terms of length or percentage. Percentage value refers to width of the parent element. Negative values are not permitted. For example:

 
by Dinesh Thakur

In order to create a style sheet, we have to specify a set of rules known as CSS rules or Styles. These rules are used to control the appearance of various elements that appear in the associated HTML documents. The general syntax for specifying the rule is

 
by Dinesh Thakur

Text properties enable you to arrange your web pages with greater precision. You can set the alignment, justification, indentation and character and line spacing etc. using these properties.

 
by Dinesh Thakur

The Border properties are used to set the border of an element i.e. its width, color and style.

 
by Dinesh Thakur

List properties are used to control the styling of list elements such as presentation of number and bulleted list, markers used for list items as well as their positions. All the list properties can either be used on <ul> and <ol> elements or an<li> element only.

 
by Dinesh Thakur

Positioning properties enhance the flexibility, and make CSS a very powerful presentation language. They are used to position elements in a webpage. By default, elements are positioned in a normal flow i.e. block level elements such as <p>, <HI> will be laid from top to bottom and inline elements such as <b>, <1> will be laid from left to right.

 
by Dinesh Thakur

The font properties are used to control the appearance of the font that you apply to the text in a webpage. With these properties you can specify the size, weight, style etc. of the font.

 
by Dinesh Thakur

Unlike padding property, the margin property puts space outside the box, between the box and other neighboring elements or between the box and the browser window. The values that can be set for this property can be specified in terms of length, percentage or AUTO.

 
by Dinesh Thakur

The table properties are used to apply style to the <table> element. You can format a table by changing its layout, spacing between table cells, positioning of table caption etc.