Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Creating three DIVS, left and right fixed , center div scrolls

Creating three DIVS, left and right fixed , center div scrolls

Scheduled Pinned Locked Moved ASP.NET
csshelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    starlimit03
    wrote on last edited by
    #1

    Hi everybody, i would need help on creating a layout just like that of GMail using CSS... there would be three divs, the left and right divs are to be fixed while the middle div should scroll- but with the scroll bar at the right most part of the window**{ not within the middle div itself}** I have tried to create somthing similar but all i could end up getting it having the scroll bar within the middle div itself... :( any help would be appreciated

    A Richard DeemingR 2 Replies Last reply
    0
    • S starlimit03

      Hi everybody, i would need help on creating a layout just like that of GMail using CSS... there would be three divs, the left and right divs are to be fixed while the middle div should scroll- but with the scroll bar at the right most part of the window**{ not within the middle div itself}** I have tried to create somthing similar but all i could end up getting it having the scroll bar within the middle div itself... :( any help would be appreciated

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      you mean this layout?

      co nt en t co nt en t

      content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content

      co nt en t co nt en t

      if so try this code

      <div style="width:300px;height:400px;">
      <div style="width:250px;background-color:gray;margin:0 auto;">
      <div style="height:40px;border:dashed 1px blue;"></div>
      <div style="float:left;border:dashed 1px blue;width:22px;">content content content content </div>
      <div style="float:left;border:dashed 1px blue;width:200px;max-height:180px;overflow-y:auto;">content content content content </div>
      <div style="float:left;border:dashed 1px blue;width:22px;">content content content content </div>
      <div style="clear:both;"></div>
      </div>
      </div>

      and you can also use some jquery solution for scrolling

      Help people,so poeple can help you.

      1 Reply Last reply
      0
      • S starlimit03

        Hi everybody, i would need help on creating a layout just like that of GMail using CSS... there would be three divs, the left and right divs are to be fixed while the middle div should scroll- but with the scroll bar at the right most part of the window**{ not within the middle div itself}** I have tried to create somthing similar but all i could end up getting it having the scroll bar within the middle div itself... :( any help would be appreciated

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        Something like this? http://jsfiddle.net/37moe1oa/[^]

        <style>
        #left
        {
        width: 200px;
        position: fixed;
        top: 0;
        left: 0;
        }
        #right
        {
        width: 200px;
        position: fixed;
        top: 0;
        right: 0;
        }
        #middle
        {
        margin: 0 200px;
        }
        </style>

        <div id="left">
        Left column content here...
        </div>
        <div id="middle">
        Middle column content here...
        </div>
        <div id="right">
        Right column content here...
        </div>


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        S 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          Something like this? http://jsfiddle.net/37moe1oa/[^]

          <style>
          #left
          {
          width: 200px;
          position: fixed;
          top: 0;
          left: 0;
          }
          #right
          {
          width: 200px;
          position: fixed;
          top: 0;
          right: 0;
          }
          #middle
          {
          margin: 0 200px;
          }
          </style>

          <div id="left">
          Left column content here...
          </div>
          <div id="middle">
          Middle column content here...
          </div>
          <div id="right">
          Right column content here...
          </div>


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          S Offline
          S Offline
          starlimit03
          wrote on last edited by
          #4

          :thumbsup: thanks a million.... just exactly what i wanted......

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups