Navigation bar main page lyberty.com key to sysmbols

style sheets


[HTML]


<p class="positioning_absolute" style="background-color: #FFFFCC">
positioning: absolute: The positioning absolute characteristic defines a LAYER.
This box is a layer.
.positioning_absolute
{ overflow: scroll; position: absolute; visibility: visible; z-index: 20; clip: rect( )}

 

 

 

See THE VISUAL FORMATTING MODEL.

Creating a right margin.

 

.small {font-family: Verdana, Arial, Tahoma; font-size: 8pt}
.normal {font-family: Arial; font-size: 10pt}
.emph {font-family: Arial; font-size: 10pt; color: DarkGreen; font-weight: bold}
.entry {font-family: Arial; font-size: 8pt; color: red}
.caption {font-family: Arial; font-size: 14pt; color: "#0000aa"; font-weight: bold}
body {font-family: Arial}
A:link {color: 0000ff; text-decoration: underline}
A:visited {color: ff0000; text-decoration: underline}
A:active {color: 8000ff; text-decoration: bold}
A:hover {color: "purple"; text-decoration: underline, bold}

  

Creating a Right Margin

The following block of text has no special paragraph attributes assigned:

Miyamoto Musashi was born in 1584, in a Japan struggling to recover from more than four centuries of internal strife. The traditional rule of the emperors had been overthrown in the twelfth century, and although each successive emperor remained the figurehead of Japan, his powers were very much reduced. Since that time, Japan had seen almost continuous civil war between the provincial lords (called daimyo), warrior monks, and brigands, all fighting each other for land and power. These wars naturally restricted the growth of trade, and impoverished the whole country.

The following block of text uses the Width attribute to create a right margin ("width" attribute = 90%):
[Box > Width > 90%]
.stylename { width: 90%}

Miyamoto Musashi was born in 1584, in a Japan struggling to recover from more than four centuries of internal strife. The traditional rule of the emperors had been overthrown in the twelfth century, and although each successive emperor remained the figurehead of Japan, his powers were very much reduced. Since that time, Japan had seen almost continuous civil war between the provincial lords (called daimyo), warrior monks, and brigands, all fighting each other for land and power. These wars naturally restricted the growth of trade, and impoverished the whole country.

The following block of has margins based on the following settings: .stylename { margin-right: 10%; margin-left: 10%}
[Box > Margin > Right/Left > 10%]

Miyamoto Musashi was born in 1584, in a Japan struggling to recover from more than four centuries of internal strife. The traditional rule of the emperors had been overthrown in the twelfth century, and although each successive emperor remained the figurehead of Japan, his powers were very much reduced. Since that time, Japan had seen almost continuous civil war between the provincial lords (called daimyo), warrior monks, and brigands, all fighting each other for land and power. These wars naturally restricted the growth of trade, and impoverished the whole country.

clear: left; float: right;

pointless css boxes:


body {
background:#ffffff;
color:#555555;
font-family:helvetica,arial,sans-serif;
margin:0 auto;
}

a { color:#999999; background:transparent;
}

p {
float:left;
width:8em;
margin:0.5em;
padding:0.5em;
border:1px solid #666666;
background:#dddddd;
color:#555555;
}

h2 {
clear:both;
margin:1em 0 0;
padding:0;
border-top:1px dashed #999999;
}
h1 {
margin:0;padding:0;
}

 


  
Links:
THE VISUAL FORMATTING MODEL.