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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:07:06+00:00 2026-06-18T12:07:06+00:00

I am using Twitter bootstrap, and have the following two major div elements side

  • 0

I am using Twitter bootstrap, and have the following two major div elements side by side (both span6). I was wondering if there is a way that I could get element 1 (seen below) to have a fixed vertical length, while element 2 can still be allowed to scroll vertically based on the data that it needs to display, but within the visual vertical length set by element 1.

As an addendum, I have been trying to use background-color as a attribute within one of the span6 div to get the background colored, but currently its not showing anything… is there any attribute that I need to add?

Thanks!

 ------------  ------------
|            ||            |
|   fixed    ||scroll-able |
|   element  ||  element   |
|            ||            |
|     1      ||     2      |
|            ||            |
 ------------  ------------

Addendum

Here my css:

.principal-element {
  overflow: hidden;
  background-color: #006faa;
  background-color:#C0C0C0;
  height:900px;
  position:fixed;
  float:left;
  h1 {
    color: white;
  }
}

.secondary-element {
  overflow: scroll;
}

And what shows up in the html:

<div class="container">
<div class="span6">
    <div class="principal-element">
        <h1><%= link_to "Text and stuff", "#" %></h1>
    </div>
</div>

<div class ="span6 offset6">
    <div class="secondary-element">
        <ol class="microposts">
            <li> Blah blah a lot of stuff
            </li>
        </ol>
    </div>
</div>
</div>
  • 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-18T12:07:07+00:00Added an answer on June 18, 2026 at 12:07 pm

    I might be completely missing a step here, but isn’t this roughly what you’re looking to achieve in the first problem?

    <html>
    
        <div class="element one">
            <p>content</p>
        </div>
    
        <div class="element two">
            <p>content</p>
            <p>content</p>
            <p>content</p>
            <p>content</p>
        </div>
    
    </html>
    
    <style>
    
        div.element {
        width:200px;
        background-color:#C0C0C0;
        height:90px;
        color:#606060;
        font-family:Arial;
        font-size:12px;
        padding:10px;
        position:fixed;
        float:left;
        }
    
        div.two {
        overflow:scroll;
        margin-left:240px;
        }
    
    </style>
    

    http://jsfiddle.net/QYtsr/2/

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

Sidebar

Related Questions

I'm using twitter bootstrap with grails and have the following in my layout: <div
I'm using Twitter Bootstrap and I have the following: <div class=row> <div class=span3> <div
I have the following layout, using Twitter Bootstrap: <div class=row> <div class=span8> <div class=row>
I have the following markup using a twitter bootstrap modal plugin: <div class=tabbable> <ul
I'm using Twitter Bootstrap. I have the following code... <div class=row> <div class=span5> <%=
Using Twitter Bootstrap, I have a div with the following css: #notecard.hero-unit { background-image:
I have the following problem. I am using a twitter bootstrap to make my
I'm using twitter bootstrap with less and I have the following: @serifFontFamily: 'Droid Serif',
Im using twitter-bootstrap in my rails app i was following this tutorial : http://untame.net/2012/08/twitter-bootstrap-build-a-stunning-two-column-blog/
I am using Twitter Bootstrap with a fixed navbar, so I have the following

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.