Just give the element which you want to position the other element
relative to a poistion of relative and then give the inner elemennt a
position of absolute and specify toop,right etc...
example:
div#container {position:relative;}
div#container img.example {position: absolute; top:0; right:0;}
On Sat, 26 Feb 2005 12:51:03 +0000, Dave O'Brien
<[EMAIL PROTECTED]> wrote:
> Its part of the spec I believe. An element is "absolutly" positioned
> within it's containing element ( which I think has to be block level
> for obvious reasons ). A basic example is that a single absolutly
> positioned element ( say a div#example ) within the body tag is
> positioned to the body tag which makes up the entire viewport - or
> window.
>
> Now wraping an extra div ( say div#example_wrap ) around the
> divi#example element the divi#example will then position itself to the
> coordinates within the div#example_wrap ( the containing element i.e.
> div#example_wrap in this case must have a relative or absolute
> position itself for it work in most browsers - just like Johnno said
> ).
>
> Relative positioning is a different ballgame.
>
> On Sat, 26 Feb 2005 09:50:16 +1100, Johnno Shadbolt
> <[EMAIL PROTECTED]> wrote:
> > If an element (your image) is positioned with absolute, inside another
> > element (a div) that is positioned with relative (it is easy to make
> > divs center-align), it should follow the absolute positioning, but
> > still be in the div.
> > ******************************************************
> > The discussion list for http://webstandardsgroup.org/
> >
> > See http://webstandardsgroup.org/mail/guidelines.cfm
> > for some hints on posting to the list & getting help
> > ******************************************************
> >
> >
> ******************************************************
> The discussion list for http://webstandardsgroup.org/
>
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> ******************************************************
>
>
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************