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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:19:30+00:00 2026-05-15T06:19:30+00:00

I just need a sanity check here… DEMO Basically, I can’t figure out how

  • 0

I just need a sanity check here… DEMO

Basically, I can’t figure out how to get the box under the link to get wider as more content is added. It seems fixed to the width of the parent div (or the width of, say, the longest element like the select or a really long word with no spaces), despite being absolutely positioned. I use this trick all the time with ul and li but it doesn’t make sense to use that in my situation, and for some crazy reason it just won’t work with a div inside a div.

I don’t want to set a width (which, of course, works) because I don’t always know what will be in this box. GRR

Thanks :\

EDIT

It appears that removing the position:relative from the parent element does, in fact, allow the box to get wider. However, relative positioning is necessary because I need the child div to be absolutely positioned under the parent div, and the parent div’s location is technically dynamic (so no figuring out absolute page coords).

  • 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-15T06:19:31+00:00Added an answer on May 15, 2026 at 6:19 am

    If I understand correctly…

    Floating containers (i.e., #parent) will fit to their contents with the default of width: auto. The contents will line-break where possible to prevent the width from ever increasing.

    To counter this, you should just need to employ white-space: nowrap.

    Either for the contents as a whole:

    .advanced {
        /* ... */
        white-space: nowrap;
    }
    

    Or, define a new class to allow for more flexible usage:

    .line {
        white-space: nowrap;
    }
    

    Then, (e.g.) wrap each label/select as:

    <div class="line">
        <label>Show:</label>
        <select name="showAll">
            <option value="true">My Team</option>
            <option value="false">Mine Only</option>
        </select>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a sanity check here if we can, any ideas on correcting/changing the
Seems so basic, I can't believe I don't know this! I just need a
I need to get just the first item (actually, just the first key) off
I need a sanity check on my strategy to best fulfill the requirements of
Basically I just need the effect of copying that HTML from browser window and
I just need a file (picture, pdf or other type file for printing) of
This code does not seem to compile, I just need to write something to
I need a collection that works just like a Dictionary/Hashtable in a sense that
I need to store items with a calendar date (just the day, no time)
I need to create a midnight DateTime I've just done this: DateTime endTime =

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.