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

  • SEARCH
  • Home
  • 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 7192307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:54:48+00:00 2026-05-28T19:54:48+00:00

I am trying to create a list that will float on the right side

  • 0

I am trying to create a list that will float on the right side of an image.
So first of all to understand better, here is the fiddle :

http://jsfiddle.net/xpGbD/1/

Both the list and the image are contained inside a mutual DIV that floats.
What I am aiming for, is for the list to have a Key:Value pair, but some of the values are much longer than others.

This produces a problem, that when the value is greater than (DIV) – (Image) , the list jumps ABOVE the image, UNLESS I specify a fixed width for the list when floats right.

The problem is – I do not have a fixed IMG width , so if the width of the image is 100px for example, this will produce a large gap between the list and the image.

On the other had – if I fix a width on the LI elements , it will work, but will break if the image´s width will become bigger…

So the questions is :

How do I float the LIST elements to the right of the image without specifying width ??

Ps – another related problem :
at the current state – When a list VALUE is long , the key is positioned ABOVE the value. I would like it to start on the same line, and if needed to flow , flow below the VALUE areaa ,and not the key area (hence the )

  • 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-05-28T19:54:49+00:00Added an answer on May 28, 2026 at 7:54 pm

    Let me see if I’ve got the point…
    When you try to float HTML elemets with unknown width, set the CSS property

    display: inline;
    

    To all floated elements.

    Note that, the elements with different widths will not have an arranged grid view (table view)
    If you want a table view : then you should specify width or use Table tag.

    Hope this helps you.

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

Sidebar

Related Questions

What I am trying to do is create a list of anchors that will
I'm trying to write a custom SQL query that will create a list of
I'm trying to create a SharePoint web part that will display all the users
I have been trying to create a page using views that will list down
I am trying to create a query that will return a List of Person
I'm trying to create a custom Jinja variable that will cycle through a list
I'm trying to create a dynamic list that will show item of my city
Im trying to create LinqDataSource that will represent data from dynamically created String list
I am trying to create a list that adds a new row of data
I'm trying to create a list that some of the elements are defined and

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.