Icon/image to the top right corner

 Placing an icon/image to the top right corner of div/label - CSS :

HTML:

<div id="content">

    <img src="images/ribbon.png" class="ribbon"/>

    <div>some text...</div>

</div>

CSS:

<style>

    #content {

        position: relative;

    }

    #content img {

        position: absolute;

        top: 0px;

        right: 0px;

    }

</style>



Comments