HighDots Forums  

two DIVs with same class: positioning

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss two DIVs with same class: positioning in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Barnet
 
Posts: n/a

Default two DIVs with same class: positioning - 07-10-2003 , 04:49 PM






I have two DIVs with the same class in the same document. The CSS has the
DIVs absolutely positioned, albeit with a percentage (bottom: 0%).
Shouldn't the DIVs be in the exact same location instead of one above the
other, since they're using the same class and hence the same position?

-- Richard



Reply With Quote
  #2  
Old   
Geoff Ball
 
Posts: n/a

Default Re: two DIVs with same class: positioning - 07-10-2003 , 05:04 PM






Richard Barnet wrote:

Quote:
I have two DIVs with the same class in the same document. The CSS has the
DIVs absolutely positioned, albeit with a percentage (bottom: 0%).
Shouldn't the DIVs be in the exact same location instead of one above the
other, since they're using the same class and hence the same position?
It'd help to see the relevant CSS markup, instead of you just describing
what's going on.

Is there a URL it's uploaded to?

Regards,
Geoff

--
http://68.145.145.156:8080/
http://www.allmyfaqs.com/faq.pl?Geoff_Ball
http://www.allmyfaqs.com/faq.pl?Web_Core_References
http://www.allmyfaqs.com/faq.pl?How_to_post


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: two DIVs with same class: positioning - 07-10-2003 , 05:40 PM



"Richard Barnet" <rbarnet (AT) csaNOSPAMreno (DOT) org> wrote:

Quote:
I have two DIVs with the same class in the same document. The CSS has the
DIVs absolutely positioned, albeit with a percentage (bottom: 0%).
Shouldn't the DIVs be in the exact same location instead of one above the
other, since they're using the same class and hence the same position?
Depends.
Do they have the same parent element?
Do their parent elements have position: relative; set?
What browsers have you tested with?
What's the URI?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
Jacqui or (maybe) Pete
 
Posts: n/a

Default Re: two DIVs with same class: positioning - 07-11-2003 , 05:48 AM



In article <beknv9$a55$1 (AT) nnrp (DOT) atgi.net>, rbarnet (AT) csaNOSPAMreno (DOT) org
says...
Quote:
"Steve Pugh" <steve (AT) pugh (DOT) net> wrote in message
news7nrgvgmpe6so8elo23gncc5i9gmckiqch (AT) 4ax (DOT) com...
"Richard Barnet" <rbarnet (AT) csaNOSPAMreno (DOT) org> wrote:

I have two DIVs with the same class in the same document. The CSS has
the
DIVs absolutely positioned, albeit with a percentage (bottom: 0%).
....
What's the URI?

Isn't one yet. I've since changed the code all around, but in theory (or
for when this comes up again - I'm sure it will), shouldn't two absolutely
positioned child divs in the same parent div with the same class appear in
the same spot (one covering up the other)?
Yep. IE6 supports this, at least in simple cases, don't know about older
browsers.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.