473,395 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

two DIVs with same class: positioning

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
Jul 20 '05 #1
3 2921
Richard Barnet 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%).
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
Jul 20 '05 #2
"Richard Barnet" <rb*****@csaNOSPAMreno.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%).
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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
In article <be**********@nnrp.atgi.net>, rb*****@csaNOSPAMreno.org
says...
"Steve Pugh" <st***@pugh.net> wrote in message
news:o7********************************@4ax.com...
"Richard Barnet" <rb*****@csaNOSPAMreno.org> wrote:
I have two DIVs with the same class in the same document. The CSS has theDIVs 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.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter Jenkins | last post by:
I have some divs I am using to get a two column layout for a section of a page, like so; <div1> <div2> <div3> blah blah blah blah blah blah blah blah...
5
by: Duane Lambe | last post by:
On some suggestions from this group, I've started to turn my internal helpdesky site for our company to non-absolute positioning. I've been reading O'Reilly's CSS book, and several web sites and...
2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
20
by: Tyler Carver | last post by:
I would like to do something that seems so basic with two div's but I don't think it can be done. Tables can do it in a snap. I was convinced that css was the way to go for layout but without...
2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
12
by: deko | last post by:
Is there any way to work around the blank space created by hidden divs? I'm trying to use a relatively postioned divs with show/hide behaviors to annotate an image. The divs show/hide...
3
by: Oddball | last post by:
I have a problem with the positioning of two divisions. They are containined within a content division in which all the page content happens (ie not the menus, etc.). The behavior I would like...
6
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, What do you recommend for defining the layout of an asp.net 2.0 page? Leaving masterpages and user controls aside for the moment is the use of tables or Divs the best approach? I have...
3
jhardman
by: jhardman | last post by:
I'm almost to the point of using tables to position my elements. That is how bad this is. So here's the rundown. I have an old page (created by someone else) that I was trying to update to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.