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
https://forums.phpfreaks.com/topic/180677-solved-how-to-set-a-fix-for-a-div-id/
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. */
} 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.