Page 52 - PortGPT_V2.1_C8_Flipbook
P. 52
CSS HEIGHT AND WIDTH
The height and width properties enable to set the height and width of an element. It is also used to
set the height and width of the area inside the border, margin, etc. of the element.
The height and width can be specified in length whose values can be in ‘px’, ‘cm’, etc. or in percent (%)
of the containing block. Syntax to use the 'height' and 'width' properties of CSS is as follows:
<P STYLE=“HEIGHT:Value; WIDTH:Value”>
TEXT
</P>
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.
50 Premium Edition-VIII

