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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:46:20+00:00 2026-05-29T15:46:20+00:00

If I want to put a div in a div: <div id=frame><div id=content>Very long

  • 0

If I want to put a div in a div:

 <div id="frame"><div id="content">Very long text....</div></div>

And I want the content div to be as wide as the text so the text does not continue on a next line, how can I do this? Also the text that will be outside the frame div (because the content div will be wider then the frame div) must not be visible. I will add a drag functionality to show the not visible text.

Currently, I have the following CSS:

#frame{
  clear: both;
  overflow: hidden;
}

#content{
  display: block;
  float: left;
  width: 100%;
}

But this results that all the text is visible in the frame div, because the text continues on the next line.

Any suggestions?

Thanks!

  • 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-29T15:46:21+00:00Added an answer on May 29, 2026 at 3:46 pm

    Use
    #content
    {
    white-space:nowrap;
    }

    http://jsfiddle.net/TX9Le/

    REF: http://www.w3schools.com/cssref/pr_text_white-space.asp

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

Sidebar

Related Questions

I have a div which contain lots of input[type=text] fields. I want to put
I want to put the radio button value in the status div. The text
I want to put several div s next to each other in one row.
hey, hi i want put limit on object creation means a class can have
I've put together some key frame animations in CSS which animate a div from
I have a frame which is 760px wide. I then have a div called
I have a print page, and I want to put a div with some
I have a empty div identified by parent. I want to put an p
Here is my HTML <div id=test>There I dont want put button</div> and my CSS
Is this possible? <div id=example title=is possible put PHP code here?> some text </div>

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.