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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:25:53+00:00 2026-05-22T21:25:53+00:00

Its not letting me post an image but here it is if you can

  • 0

Its not letting me post an image but here it is if you can see this: http://i49.photobucket.com/albums/f272/huntmur/DIV-QUES.gif

I think this will be more clear,

D2,D3 & D4 have be next to each other and centered on the screen at all times.(960px)

         D2-680px, D3-10px, D4-270px (all three together & must be centered on screen)


D1 and D5 must adjust according to the screen width.



Also, if the users browser width is greater that 1200px, the D1 will also be used.



Ive only included a D5 here for centering purposes (because unfortunately I am only thinking
in terms of tables. D5 wont really be used.)

To help you understand better, I have a sticky notes app I wrote and want to put on the site. Normally all notes have to stay inside the 680 div but if their browser is 1200px I
want to allow them to put them in the left column(D1) as well.

So what I was thinking of doing(as a work around) is centering the three columns with the code I have above (the 960 area)..and, I would just layer on a div(D1) if the browser-width is 1200px at least. [My calc for the d1 layer width would be (browserWidth-960/2)].

<style>
    BODY {margin:0px;padding:0px;}<BR>
    #container {width:960px;margin-left:auto;padding:0px;margin-right:auto;height:60px;}<BR>
    #dx {width:690px;}<BR>
    #d2 {background-color:#ff0000;margin:0px;padding:0px;width:680px;height:60px;}<BR>
    #d3 {background-olor:#00ff00;margin:0px;padding:0px;width:10px;height:60px;float:right;}<BR>
    #d4 {background-color:#0000ff;margin:0px;padding:0px;width:270px;height:60px;float:right;}<BR>
</style>

<div id="container"><BR>
  <div id="d4"><BR>
   &nbsp;<BR>
  </div><BR>
  <div id="dx"><BR>
      <div id="d3"><BR>
       &nbsp;<BR>
      </div><BR>
      <div id="d2"><BR>
       &nbsp;<BR>
      </div><BR>
  </div><BR>


In other words, I can’t mess with the 960 area (as that’s the site) but if their screen is wide enough, I also want to let them put the stickys on the left side column(D1) as well.

  • 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-22T21:25:54+00:00Added an answer on May 22, 2026 at 9:25 pm

    I don’t think either of these ideas is exactly what you wanted, but hopefully one of them is close enough.

    Idea #2: http://jsfiddle.net/DXmLE/

    HTML:

    <div id="container">
        <div id="d1">d1</div>
        <div id="d2">d2</div>
        <div id="d3">d3</div>
        <div id="d4">d4</div>
        <div id="d5">&nbsp;</div>
    </div>
    

    CSS:

    html, body {
        margin: 0;
        padding: 0
    }
    #container {
        width: 100%;
        display: table;
        table-layout: fixed
    }
    #container > div {
        display: table-cell;
        height:60px
    }
    #d1, #d5 {
        overflow: hidden
    }
    #d2 {
        background-color: #f00;
        width: 680px
    }
    #d3 {
        background-color: #0f0;
        width: 10px
    }
    #d4 {
        background-color: #00f;
        width: 270px;
    }
    


    Idea #1: http://jsfiddle.net/PnujB/

    If either of those are acceptable, I will update my answer with the corresponding HTML/CSS.

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

Sidebar

Related Questions

Not sure if this belongs here because its not technically a 'programming' question, but
Got this line of code here but its not working. private void Button_Click(object sender,
Im trying to create a website with Web.py but its not letting me open
Can someone please explain me why its not possible to put a '\0' character
I added a regex validator but its not showing anything on the page, basically
I have harvested data, its not particularly clean data, and this has been bulk
I am not sure if I have set the right title for this post
[edit]sigh... the spam protection here isn't letting me post the links, so I guess
We can see the growth of systems using peer to peer principles. But there
Well, i have my issues with gluCylinder(), it's not letting me do the things.

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.