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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.