This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > September 2005 > All divs are supposed to be absolute





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author All divs are supposed to be absolute
Axel Siebenwirth

2005-09-14, 7:53 pm

Hi,

since all my divs are absolute I just declare this css:

div {
position:absolute;
}

But its not working. Seems as this does not do anything. All
of my divs behave as if no specific position behavior has been specified.

Why is that?

Best regards,
Axel Siebenwirth
Els

2005-09-14, 7:53 pm

Axel Siebenwirth wrote:

> Hi,
>
> since all my divs are absolute I just declare this css:
>
> div {
> position:absolute;
> }


I hope you don't have any content in those divs.

> But its not working. Seems as this does not do anything. All
> of my divs behave as if no specific position behavior has been specified.
>
> Why is that?


No idea.
I didn't look at your code.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Alabama Song
David Dorward

2005-09-14, 7:54 pm

Axel Siebenwirth wrote:

> since all my divs are absolute I just declare this css:
>
> div {
> position:absolute;
> }


Not generally a good idea.

> But its not working. Seems as this does not do anything.


Given that you haven't (at least as far as you have said) specified left,
right, top or bottom properties, then I wouldn't expect any visible result.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jim Moe

2005-09-14, 7:54 pm

Axel Siebenwirth wrote:
>
> since all my divs are absolute I just declare this css:
>
> div { position:absolute; }
>
> But its not working. Seems as this does not do anything. All
> of my divs behave as if no specific position behavior has been specified.
>

You must position the div using top, left, bottom, right. Otherwise it
is absolutely positioned wherever it occurs in the flow.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Gérard Talbot

2005-09-15, 4:26 am

Axel Siebenwirth a écrit :
> Hi,
>
> since all my divs are absolute I just declare this css:
>
> div {
> position:absolute;
> }
>
> But its not working. Seems as this does not do anything.


Well, in absence of any specified top, left, bottom, right values, the
default are applied. So, top is auto and left is auto

All
> of my divs behave as if no specific position behavior has been specified.
>
> Why is that?


The divs are absolutely positioned and they all behave according to the
specific position you've given these: auto.

Gérard
--
remove blah to email me
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews