Introduction
- Display: None
- Display: Inline
- Display: Inline Block
- Display: Block
Step 1
Display: None
A "None" value for the display property does not display the element. That might sound pretty useless but it can be used for good effect with accessibility considerations, alternate style sheets or advanced hover effects.
Example
If we specify display none to the div class "green" then it will not be visible, as in the following:
- <style>
- .red
- {
- background: red;
- height: 100px;
- width: 100px;
- display: inline;
- }
- .green
- {
- background: green;
- height: 100px;
- width: 100px;
- display: none;
- }
- </style>
- <body>
- <div class="red">
- textarea textarea textarea</div>
- <div class="green">
- textarea textarea textarea</div>
- </body>
Output
Step 2
Display: Inline
An "Inline" value for the display property does just what it says; the elements that are displayed inline follow the flow of a line. Strong, anchor, span and emphasis elements are traditionally displayed inline. If we specify the value inline to a block element then it will behave like an inline element.
Example

- <style>
- .red
- {
- background: red;
- height: 100px;
- width: 100px;
- display: inline;
- }
- .green
- {
- background: green;
- height: 100px;
- width: 100px;
- display: inline;
- }
- </style>
- <body>
- <div class="red">
- textarea textarea textarea</div>
- <div class="green">
- textarea textarea textarea</div>
- </body>




Amar BishtPosted Jul 12, 2014, 1:53 PM
nice.!
Amit TripathiPosted Jul 12, 2014, 4:39 AM
Nice Article ..
Sanjay SinghPosted Jun 30, 2014, 2:45 PM
nice explanation ..
Gopi ChandPosted Jun 2, 2014, 2:09 PM
Good job Preeti...
AKBAR AKIPosted Nov 11, 2013, 2:28 AM
nice
Mudita RathorePosted Apr 29, 2013, 3:12 AM
nice article preeti. keep it up
Preeti ZutshiPosted Apr 18, 2013, 4:48 AM
Thanks all of you................
Former memberPosted Apr 8, 2013, 8:19 PM
Nice article Preeti. However I believe you should have given more information about Display property in introduction /DJ
Rohatash KumarPosted Apr 7, 2013, 10:48 PM
Good explained article. keep it up. Preeti
jignesh bhaluPosted Apr 6, 2013, 1:48 AM
tank you pretty. it is very use full css article..
Mahesh ChandPosted Apr 5, 2013, 5:18 PM
Welcome back Preeti. Nice to see young people are inspiring others. Cheers!