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 Link to comment https://forums.phpfreaks.com/topic/164781-solved-background-margin/ 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. Link to comment https://forums.phpfreaks.com/topic/164781-solved-background-margin/#findComment-869035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.