[Techtalk] CSS absolute positioning and overflow:hidden

Akkana Peck akkana at shallowsky.com
Sat Sep 30 22:08:16 UTC 2006


Shirrell writes:
> It you place a style section before the </head> which contains something 
> like:
> 
> <style
> one { position: absolute: left:150px; top:10px; }
> two { position: absolute: left:450px: top:10px; }
> </div>
> </style>
> 
> and then use somethinkg like:
> 
> <img class="one" src="flower1.gif"  alt=""/>
> <img class="two" src="flower2.gif" alt=""/>
> 
> the images appear inside the containing box.

Any idea why it behaves differently when the absolute coordinates
are in a <style> tag versus when they're attached to the image
directly?

Using the page style like that sounds a lot harder for a dynamic
JavaScript page. Is it even possible to change page style (as
opposed to changing the style of one specific element) from
JavaScript?

-- 
    ...Akkana
    "Beginning GIMP: From Novice to Professional": http://gimpbook.com


More information about the Techtalk mailing list