Page 179 - CA_165_V2.0_Flipbook
P. 179
<P STYLE="HEIGHT: 100PX;
WIDTH: 200PX;
BACKGROUND-COLOR:PINK;">
This element has a height of 100px and a width of 200px.
</P>
</BODY>
</HTML>
CSS OUTLINE
An outline is a line that is drawn around elements to make the element stand out. Outline differs from
borders as it is drawn outside the element's border, and may overlap other content. CSS has the following
outline properties:
'outline-width' property is used to set the width of the outline.
'outline-style' property is used to set the style of line for the outline and can have values like Dotted,
Dashed, Solid, Double, Groove, Ridge, Inset, Outset, None, Hidden, etc.
'outline-color' property is used to set the colour of the outline.
'outline-offset' property is used to add space between an outline and the edge/border of an element.
The space between an element and its outline is transparent.
'outline' property is used to set the above four properties in a single statement.
Outline
Border
Content
<P STYLE OUTLINE: Value_of_Width Style Colour; OUTLINE-OFFSET: Value;">
TEXT
</P>
Cascading Style Sheets 177

