What is inline CSS?

Dmoz

New member
Joined
Jul 7, 2012
Messages
122
Points
0
Inline in Css as I knew then it will remove all padding, margin from its element, It's different from block in Css.
 

akashverma773

New member
Joined
Aug 23, 2013
Messages
10
Points
0
An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly!

To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph.

<p style="color:sienna;margin-left:20px">This is a paragraph.</p>
 
Latest threads
Replies
1
Views
25
Replies
4
Views
29
Replies
2
Views
22
Replies
2
Views
33
Recommended threads
Replies
17
Views
6,540
Replies
6
Views
2,369
Replies
29
Views
14,087

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top