I’m making a horizontal upper screen menu, using an unordered list. It’s got the default bullets, which I need to get rid of. In an earlier iteration I was using text for the menu items, and adding “list-style-type: none” removed the bullets, but now I’ve switched to using a PNG image for each bullet item and that no longer works. Is there any way to get rid of the bullets?
It shouldn’t have made a difference to the padding as far as I can see but if you post the full html and css for all those elements I’ll take a look in the morning
Maybe you just need a margin left on the list element instead.
That’s a bit extreme to edit the images just to get space!
As I said above the code I offered would have done nothing except to remove the bullet marker. It would have had no effect on the spacing so you must have changed something or perhaps not shown all relevant code.
As an aside the 20px padding on each side of the anchor was the only reason you saw the bullets anyway as they would otherwise have all been hidden under the floated list items (apart from the first one).
Adding a margin to either the list item the anchor or the image would have resulted in more space rather than editing the image directly
I know you’ve solved it now but I didn’t want you to go around editing images all the time when you don’t need to
ul.topnav li {margin-left:100px} (as a silly example :))
Also remember not to forget the alt attribute on the image or your menu will be mostly invisible to search engines and the site may not get indexed properly. More importantly though screen readers will have no way to navigate the site and will fail accessibility criteria.
Thanks…I see what’s going on…bad syntax on my part. I’m leaving it with my sillyass “extra pixel method” for now, since I’m now busy with fun problems on another page, but I’ve noted this for the future.