html - Placing an image to the top right corner - CSS -


I need to display an image at the top right corner of a div (image is a "diagonal" ribbon) but < / P>

I tried other things like adding an image to another device or defining its organs like: ex> .brbon {status: relative; Top: -16px; Correct: -706px; } & Lt; Div id = "content" & gt; & Lt; Img src = "picture / ribbon" class = "ribbon" /> & Lt; Div & gt; Some text ... & lt; / Div & gt; & Lt; / Div & gt;

But without any luck

Any thoughts?

You can do it like this:

  #content { Position: relative; } # Content img {condition: full; Top: 0 pixels; Correct: 0 pixels; } & Lt; Div id = "content" & gt; & Lt; Img src = "picture / ribbon" class = "ribbon" /> & Lt; Div & gt; Some text ... & lt; / Div & gt; & Lt; / Div & gt;    

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? -