jaymc Posted July 4, 2009 Share Posted July 4, 2009 I am using background: to use an icon in a menu using no-repeat and position right I can float the icon to the right hand side of the menu Works great However, I want the position of the icon to be aligned to the right but with a bit of extra padding from the right hand side Is it possible to do this? background-position:right aligns the background image tight to the right. I need padding/margin Quote Link to comment Share on other sites More sharing options...
haku Posted July 5, 2009 Share Posted July 5, 2009 background-position: top 80%; change the number as necessary. It's the percentage of the width of the element, starting from the left side. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.