javascript - position image at bottom of div without wrapper -


How would I put an image under an image without wrapping it without the use of Java? I think I'll wrap it with a div and make a complete position, but it makes the markup messy and it's also dynamic content, so I can not wrap the image, it targets the image in a particular div To do.

Here is the original markup, it needs to find the height of the div, then the position image on the bottom. I think how this will work?

  & lt; Div id = "content" & gt; & Lt; P & gt; Some text & lt; / P & gt; & Lt; Img src = "img.jpg" /> & Lt; / Div & gt; 

You can also create an image status under any DIV Do not you? There is no need to add a second cover or do it in the CSS:

  div {status: relative; } Div> IMG {status: complete; Bottom: 0; }   

Or do the same in JS if you need it in JS.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -