Jump to content

DIV width = 90% of total width minus x pixels?


Stooney

Recommended Posts

I have 3 divs lined up horizontally.  It's a leftbar, content, rightbar.  Both the leftbar and right bar have a set width of 200px (intended).  How would I go about making the width of 'content' equal to 90% of total screen width (browser window width technically) minus 400px (leftbar and rightbar)?

 

So content div width = 90% of window width - 400px

Heavily depends on your site.

A site as this one would most likely have a lot of visitors with 1280x1024 or higher.

A site for your local retirement home could have a lot of 800x600 visitors.

 

Majority of developers choose for 1024*768 as the minimum supported resolution.

 

Then again, you're hardly the only one after such a layout, and there are solutions

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.