Connecting Tech Pros Worldwide Help | Site Map

making one square appear in the top right corner of another

  #1  
Old August 6th, 2008, 09:45 PM
yawnmoth
Guest
 
Posts: n/a
According to <http://www.w3schools.com/Css/pr_class_position.asp>, "an
element with position: absolute is positioned at the specified
coordinates relative to its containing block."

I'm trying to do something like that, myself. Place an element in a
position relative to its containing block. Unfortunately, it doesn't
seem to be working:

http://www.frostjedi.com/terra/scrip...ox-in-box.html

I could use position: relative and assume that the box will always be
200x200, but that's not a safe assumption. I could also do position:
absolute, using the behavior that it's demonstrating, but again,
that'd be making an unsafe assumption.

Any ideas?
  #2  
Old August 7th, 2008, 12:05 AM
dorayme
Guest
 
Posts: n/a

re: making one square appear in the top right corner of another


In article
<80cd4c89-acd2-412a-889e-6e0af3eb047d@8g2000hse.googlegroups.com>,
yawnmoth <terra1024@yahoo.comwrote:
Quote:
According to <http://www.w3schools.com/Css/pr_class_position.asp>, "an
element with position: absolute is positioned at the specified
coordinates relative to its containing block."
>
I'm trying to do something like that, myself. Place an element in a
position relative to its containing block. Unfortunately, it doesn't
seem to be working:
>
http://www.frostjedi.com/terra/scrip...ox-in-box.html
>
I could use position: relative and assume that the box will always be
200x200, but that's not a safe assumption. I could also do position:
absolute, using the behavior that it's demonstrating, but again,
that'd be making an unsafe assumption.
>
Any ideas?
Is this what you want:

<http://dorayme.890m.com/alt/relativelyAbsolute.html>

--
dorayme
  #3  
Old August 7th, 2008, 04:05 PM
yawnmoth
Guest
 
Posts: n/a

re: making one square appear in the top right corner of another


On Aug 6, 5:59*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
Quote:
In article
<80cd4c89-acd2-412a-889e-6e0af3eb0...@8g2000hse.googlegroups.com>,
>
>
>
*yawnmoth <terra1...@yahoo.comwrote:
Quote:
According to <http://www.w3schools.com/Css/pr_class_position.asp>, "an
element with position: absolute is positioned at the specified
coordinates relative to its containing block."
>
Quote:
I'm trying to do something like that, myself. *Place an element in a
position relative to its containing block. *Unfortunately, it doesn't
seem to be working:
>>
Quote:
I could use position: relative and assume that the box will always be
200x200, but that's not a safe assumption. *I could also do position:
absolute, using the behavior that it's demonstrating, but again,
that'd be making an unsafe assumption.
>
Quote:
Any ideas?
>
Is this what you want:
>
<http://dorayme.890m.com/alt/relativelyAbsolute.html>
Yup - I guess adding position: relative to the containing block did
the trick - thanks!
Closed Thread