943,535 Members | Top Members by Rank

Ad:
Sep 3rd, 2009
0

how to put an absolute positioned div on top of a absolute positioned div ?

Expand Post »
i have two divs. one is absolutely positioned to be centered. in the center of the page.

i have a div inside it. i need it to be positioned absolutely but not centered like the first div. here is a screenshot of what i have:
(see atachment i guess? does anyone know how to fix it so its over the frame in the center and not being cut off? (it used tobe absolutely centered like the bigger div but it would overlap at the top because the two images arent the same porportions
Attached Thumbnails
Click image for larger version

Name:	15mfeyp.png
Views:	26
Size:	155.7 KB
ID:	11449  
Similar Threads
Reputation Points: 15
Solved Threads: 7
Posting Pro in Training
SKANK!!!!! is offline Offline
428 posts
since Apr 2009
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

search google : relatively absolute positioning
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

no i dont know how i alreayd searched it doesnt make snese to me
Reputation Points: 15
Solved Threads: 7
Posting Pro in Training
SKANK!!!!! is offline Offline
428 posts
since Apr 2009
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

so as your english to me..
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

Have you tried using z-index? How come you can't just add a few pixels to the "top:" of the inner div to move it down a bit? Will it just cut off the bottom?
Reputation Points: 40
Solved Threads: 31
Junior Poster
EvolutionFallen is offline Offline
198 posts
since Aug 2009
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

absolute is exactly what you put it at, so I would recommend z-index to bring forward what you want on top.

Then I would add margins to bring the things down an padding to bring the text in, further more did you add size and width to what you want displayed or are you just letting it auto assign?

Try adding a size and width this usually will solve it. If it doesn't play with the margin and padding to position it in and out.
Reputation Points: 10
Solved Threads: 2
Junior Poster
valonesal is offline Offline
120 posts
since Aug 2009
Sep 3rd, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

If you need you can send me your code and I will fix it for you so you can see what I mean.
Reputation Points: 10
Solved Threads: 2
Junior Poster
valonesal is offline Offline
120 posts
since Aug 2009
Sep 4th, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

Have you tried using z-index? How come you can't just add a few pixels to the "top:" of the inner div to move it down a bit? Will it just cut off the bottom?
i think z-index will solve this, make z-index bigger for the top <div>
ex
HTML and CSS Syntax (Toggle Plain Text)
  1. .topdivname {
  2. z-index: 5;
  3. }
  4. .underdivname {
  5. z-index: 1;
  6. }
Reputation Points: 10
Solved Threads: 10
Junior Poster in Training
rudevils is offline Offline
80 posts
since Jan 2008
Sep 4th, 2009
0

Re: how to put an absolute positioned div on top of a absolute positioned div ?

HTML and CSS Syntax (Toggle Plain Text)
  1. .newsflash{background-image: url(http://www.socialemo.com/new/newsflash.png);}
thats it . the z index isnt doing anything. i added it but no avail
Reputation Points: 15
Solved Threads: 7
Posting Pro in Training
SKANK!!!!! is offline Offline
428 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: lightbox
Next Thread in HTML and CSS Forum Timeline: css and twitter?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC