Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I recently solved my problem of div layouts on my webpage, the result was I had three divs side by side taking the whole browser window, with the center div being the 'content' div, and the left & right divs being irrelevant.

What I'm trying to achieve here, is having the center div (content), being a fixed width on the page, because at the moment it changes size on different resolutions, ruining the layout of the content inside it.

The left & right divs I do not care about, they're purely there just to hold the center div in place...

Is there a way of forcing the left & right divs to change size on different resolutions, and the center staying fixed?

Any replies would be much appreciated,
Thanks, Tom.
Posted

1 solution

If I understand what you want then this[^] post will do it for you (scroll down a bit and some code is included)

One of the (many) places I visited when doing lesson plans for teaching CSS to schoolkids!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900