elements. For example, we could absolutely position an element and then absolutely position one of its children, as shown in Figure 9-23.

The small box B in the lower-left corner of the element A is a child of A, which is in turn a child of a relatively positioned DIV. B was absolutely positioned, as was element A, using styles like these:
DIV {position: relative;}
Wednesday 08th of February 2012 12:22:53 AM
30 Dec
02
Two Column Fixed Width with Header &
Footer
Ver 2.3
This template is actually a replica of one of my other
websites which uses tables for the very same layout. I wanted to
see could it be done and it seems to work perfect.
This is basically set up as follows: there is a main outer div
which centers the page and is a fixed width. There are 4 main
div's within this outer div; header (#hdr), bar (#bar), body
(#body) and footer (#ftr). The body div holds 2 more divs, the
left div which is for navigation and the right div which is for
our content.
One drawback we see immediatly is getting equal heights for
the left navigation div and right content div. The work around I
use for this is: whichever is likely to be the shortest (in
height) div, probably the left navigation div, set the background
of the #body div the same as this, also the border separating the
two divs - that should be on the right content div.
Another problem discovered recently was that when you use the
float property it can cause the floated divs to "jump out" of
their container block. The workaround I found for this was simply
to specify a height for the container div.
This template has been tested in:
- Mozilla 1.5b & Firefox 0.8
- Internet Explorer 6
- Netscape 7.1
- Opera 7.11
Changes in this version:
- removed box hack
- added margin:auto; to #outer div for centering.
- big problem in moz/ns was the bodyblock div,with both the
left col and content col floated they were "lifted" out of the
bodyblock with then collapsed. IE and Opera were ok. removed
float left from content div, added align="right" to the html of
the bodyblock and then text-align:left; to the content div to
bring the content back. it's ugly but works. using
text-align:right; instead of align="right" will not work in
moz/ns
Filler Content
Dáig alta in mac sin i tig a athar & a mathar
icon airdig i m-Maig Muirthemne, ocus adfeta dó scéla na maccaemi
i n-Emain. Dáig is amlaid domeill Conchobar in rigi, o ro gab
rígi in rí, .i. mar atraig fóchetóir césta & cangni in
choicid d'ordugud. In lá do raind i trí asa athlil: cetna trian
de fóchetóir ic fegad na maccaem ic imbirt chless cluchi &
immanae, in trian tanaise dond ló ic imbirt brandub &
fidchell, & in trian dedenach ic tochathim bíd & lenna,
con-dageib cotlud for cách, aes cíuil & airfitid dia thalgud
fri sodain. Ciataim ane ar longais riam reme dabiur bréthir, ar
Fergus, na fuil in hErind no i n-Albain óclach macsamla
Conchobair.
Ocus adfeta don mac sin scéla na maceáem & na
maccraide i n-Emain, & radis in mac bec ria mathair ar co
n-digsed dá chluchi do chluchemaig na Emna. Romoch duitsiu sain a
meic bic, ar a mathair, co n-deoch anruth do anrothaib. Ulad lett
no choimthecht ecin do chaimthechtaib Conchobair, do chor th'
aesma & t'imdegla for in maccraid. Cían lim-sa di sodain a
mathair, ar in mac bec, & ni biu-sa oca idnaide acht
tecoisc-siu dam-sa cia airm itá Emain. Is cían uait, ar a
mathair, airm in-das-fil. Sliab Fúait etrut & Emain. Dobér-sa
ardmes furri amne, ar esium.
Copyright (c) You 2003
H2 {clear: both;}<H2 STYLE="clear: none;">Not Cleared!</H2>

Figure 7-78. Not clear at all
clear works by increasing the top margin of anelement so that it ends up below a floated element, so any marginwidth set for the top of a cleared element should be effectivelyignored. That is, instead of being 1.5em , forexample, it could be increased to 10em , or25px , or 7.133in , or howevermuch is needed to move the element down far enough so that the
11.2.8. Floating Text Elements in Internet Explorer
In Internet Explorer 4.x for Windows, inorder to get float to work with text elements, youneed to explicitly declare a width as well, likeso: width: 10em . To be honest,I'm not sure why this should permit floating where itwouldn't otherwise happen. It does make some sense, given theusual desire for declaring a width on floated textelements in any case, but the specification does notrequire that a width be
Navigator handles any one of these options; Explorer can handle
all three.
Here's a link to the <A HREF="#top">top of
this page.</A> (I stuck a hidden anchor tag there:
<A
NAME="top"> </a>)
Use anchors to improve navigability, but remember that multiple
linked pages will download quicker than one huge page requiring lots of