Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8681583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:32:54+00:00 2026-06-12T21:32:54+00:00

Is there way to spread out elements, (eg: < li>’s inside a < ul>)?

  • 0

Is there way to spread out elements, (eg: < li>’s inside a < ul>)?

My < li>’s are inline (not vertical) and I DON’T want to change their size.

I just want to set the space between the < li>-elements to get 100% in sum.

eg.:

< ul> consists of 3 < li>’s: the first one is 200px, the 2nd one is 200px and the 3rd one has 400px.

If the screen has 1000px, the spaces between the li’s should be 200px, so 100px for each space (if the padding on the left and right side is 0px).

I’d like to achieve this without the use of javascript

EDIT:


solution with table
The Pic shows the sultion I wanted to achieve with lists.
Every element with a blue border should have been an li (and as you can see in the picture: there are some elemets which contain text, and so it wouldn’t be a good idea to set their with inside css).
The space between the elements should be exacly so big, that the last element (the red logout-button) touches the right edge of the screen.

-but, in order to avoid javascript, I solved it now with a table

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:32:55+00:00Added an answer on June 12, 2026 at 9:32 pm

    How I solved it:
    instead of using this http://jsfiddle.net/Tejzf/
    I used a table instead of the ul and il elements.
    Table width=100%, the width’s of the cells (which where li’s before) are 1px (as small as possible).
    And between the cells, I added new, empty cells where I didn’t define the width.

    <table width="100%"><tr>
       <td width="1">DATA1 from LI1</td><td></td>
       <td width="1">DATA2 from LI2</td><td></td>
       <td width="1">DATA3 from LI3</td>
    </tr></table>
    

    and thx for your replies

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there way to spread out elements, (eg: <li>'s inside a <ul>), within a
Is there a better way I can fill out a spread sheet on a
Is there any way in Notepad++ (or even with another tool) to change the
I was just wondering if there was a way to use System.out.println(); or other
we're not talking thousands of rows or anything, although if there was a way
Is there a way i can have one form field set through out two
Is there way to get file from windows xp command prompt? I tried to
Is there way to automatically maximize the output window on hitting build and then
Is there way to copy a file into Plone with WebDAV and have Plone
is there way how to get name ov event from Lambda expression like with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.