Q2L7
Q2L7
page.
- There are four position
schemes to use: static, Absolute Fixed
relative, absolute and fixed. top:100px top:100px
left:100px left:300px
- The position can also follow
or inherit the specified
position of the body.
CSS POSITION PROPERTY
Property Value Description
The default or normal position of an object if
position: static one would not specify a position.
float:none
Email is the transmission of electronic messages over the internet. Email is the transmission
of electronic messages over the internet. Email is the transmission of electronic messages
over the internet. Email is the transmission of electronic messages over the internet
Wrapping Text around an Element
margin-top: margin-top:10px
margin-bottom: margin-bottom:10px
<value>
margin-left: margin-left:5px
margin-right: margin-right:5px
<top>, <right>,
margin: margin:15px
<bottom>, <left>
Margins
• If you place only one value on the margin:<value>,
that value will be applied to all sides of the specified
element.
• If you do not specify a margin, the default value is
zero or no margin.
• A negative margin value can also be used to get
special effects on your web page. Example:
p{margin-left:-5px}
Formatting Border and Table
- Create a border, set its color, width of table, frame or
element.
- Create individual border sides by using border-left,
border-right-width and border-top-style property
CSS BORDER PROPERTY
Property Value
border-width: thin
border-width: medium
border-width: thick (all sides)
border-width: <value> ex. 10px
border-width: <value> ex. 2em
border-top-width:<value> sets the top border width
border-bottom-width:<value> sets the bottom border width
border-right-width:<value> sets the right border width
border-left-width:<value> sets the left border width
CSS BORDER STYLE PROPERTY
Property Value
border-style: hidden
border-style: dotted
border-style: outset
border-style: dashed
border-style: inset
border-style: none
border-style: solid
border-style: double
border-style: groove
border-style: ridged