CSS Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
CSS Topics
css tutorials Introduction
Types Types
Background Properties Background Properties
Text Properties Text Properties
Font Properties Font Properties
Box Properties BOX Properties
Border Properties Border Properties
Margin Properties Margin Properties
Padding Properties Padding Properties
Special Topics Special Topics
Forums Ask Your Doubts
Scraps More about CSS
Feedback Feedback
 




Box Properties


Tutorials Css


Topic

Box Properties:

We collectively call Margin Properties, Padding Properties and Border Properties as BOX Properties.
Margin
Border
Padding
This is the content






Margin:
It is the space that we create from the nearest object.
For example purpose we can think our content as our house. We build our house with a margin from the nearest house/building.

Border:
It is the boundary we create around our object in Html.
For example purpose we can think our content as our house. The border here is the compound wall we build.

Padding:
It is the space that we create inside the object for the content to be displayed.
For example purpose we can think our content as our house. Here our dinning table is placed leaving a space from the wall of the house (padding).

box properties


Font family Border color


A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.
Other Links

web hosting