Hi,
I am slowly teaching myself CSS but can not work out if it is possible to convert the below page layout I have created using tables into CSS layoit. Is it possible as its doing my head in trying to work it out.
I basically want the middle to be 600px high and the top and bottom of the page will grow to the size of the browser. The width will be 100%.
Any ideas and is it possible?
Thanks wirehopper for getting back to me.
Your script ran vertically. I am trying to get the CSS to run horizontal so that the black part (middle) stays at 600px high and the top (red) and bottom (blue) grow in height depending on how big the browser is sized. I have attached image to display how tables get this to work.
Any ideas are much appreciated.
You might want to check min-height and max-height for the top and bottom, to give you some adjustment space. I'm not sure it is possible.
You may also be able to use javascript to adjust the div dimensions at page load. Check out the window.screenX property (spelling might be off, go to w3schools.com).
Hi wirehopper,
Thanks for your reply.
I had the same problem with my CSS code as you did.
For some reason with CSS it is hard to get the height at 100% or 50%.
ie the red and the blue rows dont stretch out to the height of the web browser like the table code does unfortunatley.