• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

What CSS property controls a page's size on window resize??

I had some people from OT look at my website and here's a suggestion I got, which makes sense:


Originally posted by: effowe
Don't have a fixed width. Use CSS/HTML to make it expandable if the window is resized. Read up on modern web page programming, as it shows that you haven't done anything in a while (IE it looks like a site from 2000, not 2007.)


What CSS property would I adjust to do this?? Also, would it go under the Body section of the .CSS file?


update: Should I use this on pictures as well? I tried using it on the banner jpg for my website, but it gets distorted when you resize the window...
 
Originally posted by: Accipiter22
I had some people from OT look at my website and here's a suggestion I got, which makes sense:


Originally posted by: effowe
Don't have a fixed width. Use CSS/HTML to make it expandable if the window is resized. Read up on modern web page programming, as it shows that you haven't done anything in a while (IE it looks like a site from 2000, not 2007.)


What CSS property would I adjust to do this?? Also, would it go under the Body section of the .CSS file?

Well the basics involve using "Width:25%" as opposed to "Width:150px".

Google up "Fluid Layout" for alot of topics on this. I can't remember any good ones atm but I know thats the search I do when I forget something 🙂

However depending on how your site is set up, the Width thing about might be all you need. The Fluid Layout thing might not really work but should still help figure it out.
 
Originally posted by: Rangoric
Originally posted by: Accipiter22
I had some people from OT look at my website and here's a suggestion I got, which makes sense:


Originally posted by: effowe
Don't have a fixed width. Use CSS/HTML to make it expandable if the window is resized. Read up on modern web page programming, as it shows that you haven't done anything in a while (IE it looks like a site from 2000, not 2007.)


What CSS property would I adjust to do this?? Also, would it go under the Body section of the .CSS file?

Well the basics involve using "Width:25%" as opposed to "Width:150px".

Google up "Fluid Layout" for alot of topics on this. I can't remember any good ones atm but I know thats the search I do when I forget something 🙂

However depending on how your site is set up, the Width thing about might be all you need. The Fluid Layout thing might not really work but should still help figure it out.

oooh I see so the 25% would vary based on window size/resolution...gotchya...didn't realize you could use %'s for those values, thought it had to be in px or inches
 
Should I use this on pictures as well? I tried using it on the banner jpg for my website, but it gets distorted when you resize the window...
 
Originally posted by: Accipiter22
Should I use this on pictures as well? I tried using it on the banner jpg for my website, but it gets distorted when you resize the window...

Not really. Just make sure the pic fits at the lowest resolution you want to have (say 800x600) and not worry about it.

If you do care about resolutions smaller then that, it may require either code, or more complicated CSS that targets the smaller browsers.

This is kicking it up a notch however, and is not something I know about.
 
Back
Top