Box-Oriented Formatting Model
margin
|
Border Style
{border-style: # }
{border-top-style: # }<P STYLE="border-style:#; border-width:5pt; border-color:red"> Today is fine.<br> Tommorow will be fine. </P>
{border-style: dotted }
available only IE on Mac
|
Today is fine. |
{border-style: dashed }
available only IE on Mac
|
Today is fine. |
{border-style: solid }
|
Today is fine. |
{border-style: double }
|
Today is fine. |
{border-style: groove }
|
Today is fine. |
{border-style: ridge }
|
Today is fine. |
{border-style: inset }
|
Today is fine. |
{border-style: outset }
|
Today is fine. |
#=3d
{border-style: 3d }
|
Today is fine. |
Border Width
{border-width: # }<P STYLE="border-style:solid; border-width:#"> Today is fine.<br> Tommorow will be fine. </P>
{border-width: thin }
|
Today is fine. |
{border-width: medium }
|
Today is fine. |
{border-width: thick }
|
Today is fine. |
Border Color
{border-color: # }
{border-top-color: # }
<P STYLE="border-style:solid; border-width:medium; border-color:skyblue"> Today is fine.<br> Tommorow will be fine. </P> |
Today is fine. |
Border Grouping
{border: # }
{border-top: # }
<P STYLE="border:solid medium skyblue"> Today is fine.<br> Tommorow will be fine. </P> |
Today is fine. |
Outline
{outline-style: # }Outline is supported only by Macintosh IE 5.
<P STYLE="border:solid medium orange;
outline:solid medium red">
Today is fine.<br>
Tommorow will be fine.
</P>
|
Today is fine. |
Padding
{padding-left: # }
<P STYLE="border:solid black; padding-left:25px"> Today is fine.<br> Tommorow will be fine. </P> |
Today is fine. |
{padding: # } #=All margins
<P STYLE="border:solid black; padding:10pt"> Today is fine.<br> Tommorow will be fine. </P> |
Today is fine. |
<P STYLE="border:solid black; padding:10pt 20pt"> Today is fine.<br> Tommorow will be fine. </P> |
Today is fine. |
Margin
{margin-left: # }
<HR> <DIV STYLE="border-style:solid; margin-left:50pt"> Today is fine.<br> Tommorow will be fine. </DIV> <HR> |
Today is fine.
Tommorow will be fine. |
{margin: # } #=All margins
<HR> <DIV STYLE="border-style:solid; margin:10pt 50pt 0pt"> Today is fine.<br> Tommorow will be fine. </DIV> <HR> |
Today is fine.
Tommorow will be fine. |
Content Dimensions
{width: # }
{height: # }
<DIV STYLE="border:solid black; width:25%; height:150px; overflow:auto"> Today is fine.<BR> Tommorow will be fine. </DIV> Netscape 6 need an "overflow" property to insert line breaks at the right side of the box.
|
Today is fine.
Tommorow will be fine. |
{min-width: # }
{min-height: # }
{max-width: # }
{max-height: # }
Overflow
{overflow: # }
#=visible, hidden, scroll, auto
<DIV STYLE="height:100px; width:100px; border:solid black; overflow:#"> Today is fine....Today is fine. </DIV>
| visible | hidden | scroll | auto |
|---|---|---|---|
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
|
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
|
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
Today is fine. Today is fine. Today is fine. Today is fine. Today is fine.
|
{overflow-x: # }
<DIV STYLE="height:100px; width:100px; border:solid black; overflow-x:scroll; overflow-y:hidden"> <NOBR>Today is fine....</NOBR> </DIV> |
Ellipsis for Overflow Text
<DIV STYLE="height:30px; width:250px; border:solid 2px skyblue;
overflow:hidden; text-overflow:#">
<nobr>Long before the advent of TV weather forecasters,
people used tabletop glasses like a spherical flask
to predict upcoming changes in weather.</nobr>
</DIV>
text-overflow:clip | |
text-overflow:ellipsis |
