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> But without any luck Any thoughts? You can do it like this: .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;
#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
Post a Comment