Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

geekindisguise

macrumors 6502
Original poster
Jul 22, 2008
297
0
Oklahoma
I am trying to make Apple like Navigation but there is a spacing in between each LI. I set the UL, the LI, the Anchors all to margin and padding = 0. But nothing happens. I don't know what could be creating the spacing. The pages are made dynamically with Wordpress so I can't set CSS for each link.

Also the color background for the main content is just there to let me see where it is. I definitely not keep it like that.

http://jacobwilmoth.com/users/example_wordpress/
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
When using inline elements, there will be a space between items. If you do,
HTML:
</li><li ...
when using display:inline it will remove that gap. Not ideal though.
 

geekindisguise

macrumors 6502
Original poster
Jul 22, 2008
297
0
Oklahoma
When using inline elements, there will be a space between items. If you do,
HTML:
</li><li ...
when using display:inline it will remove that gap. Not ideal though.
That did work, but because it is using Wordpress to make the pages I can't actually tell it what to do.
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
Well you can float the li tags left and it will also remove the gap, but you'll likely need to tweak other CSS as well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.