Align Backgroud Image with Offset in CSS


/ Published in: CSS
Save to your folder(s)

You may align background image not only to left or top corner, but also use an offset for alignment.


Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. #sidebar ul li li a {
  3. background-image:url(../images/side-li-rtl.png); background-position:right 15px top 9px;
  4. }
  5. </style>

URL: http://www.apphp.com/index.php?snippet=css-align-backgroud-image-with-offset

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.