Chapter 12 - What is Width in CSS?

The Width property works exactly same as the height property. To specify the width of the content area or any other element which is either created by you with the help of css class; you can use the width property of css. 

Width

The width of an element is in your control if you are controlling with style sheet. Width property has 3 values to apply:-
    1. Auto
    2. Pixel
    3. Percentage
There are 2 further divisions of width property:-
  1. Max width

    • (none, pixel, percentage)
  2. Min width

    • (pixel, percentage)

Example for Width Properties:-

 /* Syntax of Width Properties in CSS*/

 height:value;
 max-height:value;
 min-height:value;
 


NOTE:- To use these properties and relevant values of width, read posts on each topic in the next section of this blog.

0 comments:

Post a Comment