Hi Richard,

I'm not sure I can solve your specific problem, but I can speak to
positioning an object relative to its parent. This was an epiphany for
me when I discovered it (reading and Eric Meyer book, I'm sure).

To put it simply, you must set the parent element to be recognized as
a box. You do this by setting its position to "relative" or
"absolute". The child element's position is then set to "absolute". I
know, it's not particularly intuitive.

So, to position div#fbar (the child) relative to the postion of
div#bar (the parent), you do something like this:

div#foo { position:relative; }
div#bar { position: absolute; top: 10px; left: 20px; }

Then, in the xhtml...

<div id="foo">
  <div id="bar">some content</div>
</div>

That'll offset the content of bar 10px from the top edge and 20px from
the left edge of foo.

Hope this makes sense and help a bit w/ your trouble.

Cheers,

-pete

--
Pete Stuart
Design Engineer, Trumba Corporation, www.trumba.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to