Jump to content

[SOLVED] How to set a fix for a div ID.


Irresistable

Recommended Posts

Check this link..

www.developers-community.com

It's my website in progress, it uses a petty template for now.

However.. if you resize the browser. (up and down is fine.. it brings up the scroll bar) Though left and right doesn't bring up a scroll bar. (As you'd be able to see)

 

Here's the CSS

.twoColLiqRtHdr #container {
width: 80%;  /* this will create a container 80% of the browser width */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000; /* this overrides the text-align: center on the body element. */
} 

 

I'd like to change it so that.. in full screen it looks like it does now. Though when you go to resize.. it'll remove the margin.. with a scroll bar. then when the resize starts to go.. past the container div, then it'll bring up a scroll bar. So the only thing that'll decrease on size when resizing the browser.. is the margin. The actual container if the browser is smaller.. will be powered by a scroll bar, up down, left and right.

 

Please can you help?

Link to comment
Share on other sites

I used this..

.twoColLiqRtHdr #container {
width: 900px;  /* this will create a container 80% of the browser width */
background: #FFFFFF;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #000000; /* this overrides the text-align: center on the body element. */
} 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.