Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
nested div acting as a headingThis also concerns me - why not use a heading instead?
So the first step is to identify the containing block.
if an element has position:absolute, the display will usually compute to block, so setting display is redundant, and display:inline is over-ridden.
nested div acting as a heading
This also concerns me - why not use a heading instead?
However, i also want to place an image in the parent div using absolute so that it always shows up in the bottom left corner of the div. However, when i try to set the image to bottom 0, left 0 it shows up above the parent div.When you say above, did you mean higher in the stack order (z-index), or "above" as in closer to the top of the page (y-axis)?
<div id="contentcontain">Note that if you meant the img in div.fpleftcol is "above" the parent (div.fpleftcol) as in the image is "over the top" of the background image set on fpleftcol, that is correct per the stack oder in section 9.9.1.
<img src="images/myimage.jpg" alt="#" border="0" >