In CSS, is there a way to refer to property value like width of a container div tag from one of its contained elements to create a dynamic relationship between the two. Here is some code to illustrate my intent:
<div id="settingz" style="position:absolute; width: 350px; height: 300px;">
<span style="position:absolute; left:inherit parent width; margin-left:-30px; top:6px;" >
<img id="exportRedX" src="/static/RedX2.png" />
</span>
(/div>
Notice the silly attempt left:inherit parent width; That is the best way for me to convey what I'm trying to do. I want to tie the image to a position relative to the div's width. I know about the align="right" but that does not really do what margin-left can contribute to the left: ... inheritance.
Any help is appreciated...
DK
float:leftis faaaaaar less complicated than trying to create dynamic inheritance in CSS.