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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:53:32+00:00 2026-05-31T16:53:32+00:00

Need to get an div with overflow:hidden; not to wrap its children. I need

  • 0

Need to get an div with overflow:hidden; not to wrap its children.
I need to add a fixed with to the child element for it to not wrap.

Like:

<div style="overflow:hidden; width:700px;">
<div style="width:2000px;"><img>
<img>
<img>
<img>
<img>
<img>
<img>
</div>
</div>

I dont want to add the width of 2000 there. It should only get as wide as the content.
horizontally.

thank you

  • 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-31T16:53:33+00:00Added an answer on May 31, 2026 at 4:53 pm

    You can achieve this with the combination of inline-block & white-space

    .parent{
     white-space:nowrap;
    }
    
    img{
     display:inline-block;
     *display:inline;/* For IE7*/
     *zoom:1;/* For IE7*/
     vertical-align:top;
    }
    

    HTML

    <div class="parent">
     <img>
     <img>
     <img>
     <img>
     <img>
     <img>
     <img>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get neighborhood element value. HTML is <div> <input type='hidden' value='12345'> <div
I need to show an element (image) overlaying a Div that has a overflow:hidden
I need to get height of an element that is within a div that
i have text like this div bla-bla end div i need to get only
I'm not full-time html person but need to get this working (like 5%). I
I'm working on a web app and I need to get a div to
I have the following HTML and I need to get the first div parent
How can I get content of a DIV using regular expression. What I need
I need get it independent if the network connection is active or not. I
I need get position element in table. But function position() returns me to the

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.