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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:37:03+00:00 2026-06-01T06:37:03+00:00

I have 2 internal div’s within a main div JSfiddle – http://jsfiddle.net/uwdnH/ Illustration –

  • 0

I have 2 internal div’s within a main div

JSfiddle – http://jsfiddle.net/uwdnH/

Illustration – http://img685.imageshack.us/img685/8485/tablek.png

HTML

<div class="mytable">
    <div class="leftNavTable">
        <a herf="#">div1</a>
    </div>
    <div class="rightNavTable">
        <a herf="#">div2</a>
    </div>
</div>

CSS

.mytable {
float:left;
width:300px;
height:200px;
border-width:2px;
border-style:solid;
border-color:#000;
overflow:scroll;
}

.leftNavTable{
float:left;
width:75px;
height:250px;
border-width:2px;
border-style:solid;
border-color:#FF0000;
}

.rightNavTable {
float:left;
width:200px;
height:250px;
border-width:2px;
border-style:solid;
border-color:rgb(0,0,255);

}

My requirement is that..

1)I wanted the size of div2 to be more but if I increase the width div2 will come below div1

2)Also there should be horizontal scrollbar only to div2

3)Vertical scrolling of div2 should make div1 also to scroll

  • 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-01T06:37:04+00:00Added an answer on June 1, 2026 at 6:37 am

    1) To increase the width of div2, you will also need to increase the width of the outer mytable, or decrease div1.

    2) to put a horizontal scrollbar on div2, apply overflow-x:auto to it.

    3) You’re doing that the right way now, by having the outer div scroll. However, if you don’t want the outer div to have a horizontal scrollbar, use overflow-y instead of overflow.

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

Sidebar

Related Questions

Have a look at this: http://jsfiddle.net/6Yq8b/78/ Is there a way I can preserve a
I have a container div that holds two internal divs; both should take 100%
We have an internal .NET case management application that automatically creates a new case
I have an internal enterprise application I've developed for my company built on .Net
We have an internal asp.net forms app where one page is essentially a WYSIWYG
OK, so I have an internal div that is designed to contain text, images,
I have a layout issue where the internal div data seems to be popping
I have a div with 3 internal hrefs. I need to make the div
I have an internal web app with an image at the top of the
I have a internal website that users log into. This data is saved as

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.