Please see the fiddle (http://jsfiddle.net/Jk6Bk/5/)
I would like to add some spacing between ‘Leonard’ and the ‘X’ (delete button).
I tried margin-left in the css for ul li a element, but that does not seem to work.
I’m missing something stupid here, any idea what it is?
Change your selector
ul li atoul li a.buttonThe
.buttonselector is more specific thanul li aand its margin is overriding.from html Dog: Specificity we can give the classes the following weights:
.buttonweight: 10ul li aweight: 3ul li a.buttonweight: 13So by specifying a class myou can override the default
marginon the.buttonclass