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. |
Table Border Collapse
{border-collapse: # }<table border STYLE="border-collapse:#> <tr><th>Food</th><th>Drink</th><th>Sweet</th> <tr><td>A</td><td>B</td><td>C</td> </table>
border-collapse:separate |
| ||||||
border-collapse:collapse |
|
Table Layout
{table-layout: # }<TABLE border WIDTH=200 STYLE="table-layout:auto"><TR> <TH>NAME</TH><TD>Network Communication Design</TD> </TR><TR> <TH>URL</TH><TD>http://www.ncdesign.org/</TD> </TR></TABLE>
table-layout:auto |
| ||||
table-layout:fixed |
|
Padding
{padding-left: # }
<P STYLE="border:solid black; padding-left:25%"> 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 Dimension
{width: # }
{height: # }
<DIV STYLE="border:solid black; width:25%; height:150px"> Today is fine.<BR> Tommorow will be fine. </DIV> |
Today is fine.
Tommorow will be fine. |
