Jump to content

LU & UL Spacing with CSS


codingmasterRS

Recommended Posts

Hi guys,

I have a bunch of LI (in a UL) which I need to automatically space out over 900px, the li's are currently set to display:inline.

If anyone can help me do this auto spacing etc it would be much appreciated,

Default fixed widths wont work because then the last li will be left aligned and not right, so it needs to be pushed far right.

Basically I need an "space horizontal" ability (like Photoshop for layers etc).

 

Cheers in advance.

Link to comment
https://forums.phpfreaks.com/topic/230415-lu-ul-spacing-with-css/
Share on other sites

you can use margin and padding for that, maybe have a look here, for a nice horizontal menu setup. With some tweeks you can make it so it spaces automatically, but i am pretty sure some javascript is needed to measure the elements.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.