SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Background Position on <li>
-
Feb 7, 2009, 10:18 #1
Background Position on <li>
Hello,
I am using this:
Code CSS:li { background-position: top left; }
How can I put a slight top margin on that background to budge it down about 5 pixels. I don;t want to use
Code CSS:background-position: center left;
I want to have it positioned top left but pushed down about 5 pixels?
Thanks
Regards,
Neil
-
Feb 7, 2009, 10:45 #2
Hi,
Bring your horizontal value (left or right) first and then the vertical (top or center) after it.
background-position: 0 5px;Ray H.- css-lab.com
W3C Specs - CSS 2.1 | CSS current work | Properties Index
-
Feb 7, 2009, 10:58 #3
Thankyou. - Works perfectly
My bullet points on multi line <li>'s now align up with the first line of text instead of aligning vertically centre between them!
Bookmarks