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

Link to comment
Share on other sites

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

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.