align icon to top right corner of div code example
Example 1: align div to the right
display:inline-block; float:right;
Example 2: css top right corner
#content {
position: relative;
}
#content img {
position: absolute;
top: 0px;
right: 0px;
}
<div id="content">
<img src="images/ribbon.png" class="ribbon"/>
<div>some text...</div>
</div>