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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:12:24+00:00 2026-06-08T17:12:24+00:00

I have 2 horizontal divs next to each. I all trying to get the

  • 0

I have 2 horizontal divs next to each. I all trying to get the div on the right to shrink down as the window is made made smaller but it drops to the next line. Also I want the div on the right to reach the outer border of its container div.

The only success i have is if a put a percentage width on the right div but then it does touch the container border.

JS Fiddle

Here is the code
HTML

<div id="container">
<div id="rsfeed">
                            <div class="rsfeedlabel">RSS Stream</div>
                            <div class="rsfeedinfo ofh">
                                <table class="rsfeedtbl">
                                    <tr>
                                        <td>otam rem aperiam, eaque ipsa quae ab - Illo inventore veritatis et quasi rem aperiam, eaque ipsa inventore veritatis et quasi rem </td>
                                    </tr>
                                </table>
                            </div>
</div>

</div>

CSS

#container {
    width: 90%;
    border:1px solid black;
    height:100px;
}

#rsfeed {font-family: Arial;position: relative;overflow: hidden;}

#rsfeed .rsfeedlabel {
    float: left;
    border: 1px solid #727272;
    height: 24px;
    line-height: 24px;
    background: grey;
    margin-top: 20px;
    color:  white;
    font-family: Arial;
    vertical-align: middle;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 75%;
    text-shadow: 1px 1px 1px #000;

}

#rsfeed .rsfeedinfo {
    float: left;
    height: 24px;
    line-height: 24px;
    border-right: 1px solid #b9b8b8; border-top: 1px solid #b9b8b8; border-bottom: 1px solid #b9b8b8;
    margin-top: 20px; 
    font-size: 75%;
    vertical-align: middle;
    font-family: Arial;
    white-space: nowrap;
    overflow: hidden;
    /*width:80%;*/

}

  • 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-08T17:12:25+00:00Added an answer on June 8, 2026 at 5:12 pm

    Hey now remove float left of this class

    #rsfeed .rsfeedinfo
    

    and add white-space nowrap in your id #rsfeed
    As like this

        #rsfeed .rsfeedinfo {
        float:left;  // remove this line
        }
    
    #rsfeed {
    white-space:nowrap; //add this line
    }
    

    Live demo

    http://jsfiddle.net/MdJBP/4/

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

Sidebar

Related Questions

I have few divs set next to each other making a horizontal scrolling page.
I have some trouble finding a way to position some divs next to each
I am trying to place two divs next to each-other on the same line,
I currently have a grid made out of square DIVs (200px x 200px each).
I have a number of divs next to each other (horizontally) and want the
I have two HTML tables in div s floated next to each other. The
I want to have 5 divs horizontally next to each other spanning the width
I have two divs #left , and #right . the right div has a
Say I have 2 divs next to each other in a container of fixed
My page layout is 3 horizontal DIVS. The middle DIV is going to have

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.