|
Main Menu
|
Path = Home > Using CSS > How To Use Inline Style Sheets How To Use Inline Style SheetsInline styles are defined with specific instances of tags throughout a web page. These are useful when you want to change part of a page which is already formatted by an embedded or external CSS. Conflicting CSS stylesWhen you apply two or more CSS styles to the same text, the styles may conflict and produce unexpected results. Browsers apply style attributes using the following rules:
You can use this to override the settings from an embedded or external style sheet. How to use Inline Style SheetsIn the following example we will modify the appearance of the text in a paragraph. To do this, instead of the standard <p> tag we use the following :- <P style="font-style: italic; color: #CC0000;"> and the result is :- Sample Text Any text in that paragraph will follow that style.
|
|
© 2000 - 2007 Janim.net - All Rights Reserved |