Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   relative positioning with CSS (http://www.velocityreviews.com/forums/t155256-relative-positioning-with-css.html)

Tom 10-10-2003 04:37 PM

relative positioning with CSS
 
Hi
I have a 2 column layout - white on one side and grey on the other.
I want to insert 2 further columns into the grey side as nested divs.
Is the positioning of the div relative to the div that it is nested within,
or to the page itself
For an example of what I am trying to achieve:
www.irishmx.com/demo.gif
Any thoughts welcomed
Thanks
T




m 10-10-2003 05:52 PM

Re: relative positioning with CSS
 
Tom wrote:
> Hi
> I have a 2 column layout - white on one side and grey on the other.
> I want to insert 2 further columns into the grey side as nested divs.
> Is the positioning of the div relative to the div that it is nested within,
> or to the page itself
> For an example of what I am trying to achieve:
> www.irishmx.com/demo.gif
> Any thoughts welcomed
> Thanks
> T
>
>
>

The position of any object on your page, not just <divs> is
relative to the immediate containing element. The nesting can
be carried as deep as your visitor's sanity allows.



--
Cheers from m at http://www.mbstevens.com
via Pinguin and Dragon -- 0% Gatesbloat.


brucie 10-10-2003 10:13 PM

Re: relative positioning with CSS
 
In post <bm6na9$ntc$1@kermit.esat.net>
Tom said...

> I have a 2 column layout - white on one side and grey on the other.
> I want to insert 2 further columns into the grey side as nested divs.


any particular reason why? a 3 col layout would be much more robust
and easier.

> For an example of what I am trying to achieve:
> http://www.irishmx.com/demo.gif


go for 3 cols

--
brucie.
11/October/2003 08:08:57 am

Toby A Inkster 10-10-2003 10:50 PM

Re: relative positioning with CSS
 
Tom wrote:

> Is the positioning of the div relative to the div that it is nested within,
> or to the page itself


The position of a relatively positioned element is relative to where it
would have been placed if you didn't try to fiddle with its position.

OTOH, absolutely positioned elements are positioned relative to the top
left corner of their nearest non-statically positioned ancestor.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?id=132


Tom 10-13-2003 09:52 AM

Re: relative positioning with CSS
 
Thanks guys for the tips/advice.
>





All times are GMT. The time now is 05:45 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57