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 8420567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:54:44+00:00 2026-06-10T02:54:44+00:00

I want to do this: I have a inline list which N elements. Elements

  • 0

I want to do this:

I have a inline list which N elements. Elements can be of different widths, respectively, the list can go overflow the screen. Need to set the width of each item so that all elements fit on the screen.


Problem:

But there was one problem. When you do resize the window to a minimum, and then again stretched to the initial width, the width of all elements is equal to – lost original proportions, unnecessarily in each list can be written in the text of various widths.

http://jsfiddle.net/v2pwww/42PdV/2/

Possible solution:

You can remember the width of each item in the array and increase the width after the collapse of the window to the width of which is stored in the array.
Contact the array and list items can be a arr (N) and ul.list li: nth-child (N).
Maybe there is another solution.

And I do not know how to do this, please help 🙂

  • 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-10T02:54:45+00:00Added an answer on June 10, 2026 at 2:54 am

    I don’t know if this is quite what you are after but you can use attributes to store the initial widths.

     $(document).ready(function() {
        $('ul.list li').each(function(index) {
            $(this).attr("initial-width",$(this).innerWidth());
        });
    

    Then instead of

         $(this).innerWidth($(this).innerWidth() - res);
    

    use

         $(this).innerWidth($(this).attr("initial-width") - res);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i starter in jqgrid, i want implement inline edit in jqgrid i have this
I have a inline list of pictures that I want to be able to
So far i have this code: function changeGeoLoc($a,$b,$c){ echo <ul style='list-style-type: none; display:inline;'>; while(list(,$geoloc)
All, I have list items which have a background set to them (RGBA value).
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
I want to do this: I have a div with item: title, image, some
I have this code in my controller and want to test this code line
I have this URL example.com/photo?people I want to rewrite this URL in the form
I only want this function to run if .toolbar li does not have the
I have a Birthdate field with theses values: 28 Juillet 1982 (I want this

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.