Jump to content

Not sure if this can be done in CSS?


Liquid Fire

Recommended Posts

I am going to have 3 tmain div for my content, side navigation and main content.  I want the side navigation ot always bee 300px in width and i know css can do that but i want the main content to always been in width the entire page minus 300px for the side navigation.  is this something i can do in CSS or do i need javascript to do it?
Link to comment
Share on other sites

  • 3 weeks later...
Fairly easy stuff

I limit though the width of the maincontent section

I create a master wrapper div and then place the other three divs inside that.  This allows me to centre the whole layout, but it also allows me to limit the width of my entire layout to 800px, because there are people out there who still use 800*600 on their screens, thus if someone is using that size and you have not limited your main content to 500px, then if there is an element that is large, it will create a scrollbar across the bottom of their browser.

This is a matter of question of how in control of your data you are and how consistent you want it to look across all browsers on all screens of vayring resolutions.
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.