April 17, 2009

0 INLINE STYLES

An inline style sheet loses many of the advantages of style sheets by mixing content with presentation. Use the this method sparingly, such as when a style is to be single occurence of an element.

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


<head>
<style type="text/css">
<! --
hr {color: sieena}
p {margin-left : 20px}
body {background-image: url ( "images/back40.gif" ) ).
-- >
</style>
</head>

0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger