1
Anonymous
Variable width up to a maximum?
  • 2009/1/21 16:43

  • Anonymous

  • Posts: 0

  • Since:


Hi everyone,

I've recently bought a new 22" widescreen monitor for my PC which runs at 1680 x 1050 px. Very nice, and the extra real-estate is most welcome

However, I'm less happy with the appearance of my XOOPS website on it. I'm using a variable-width theme and with the browser maximised it looks a bit "odd".

Is there a way of making the theme-width variable below a browser-window size and fixed-width above it, e.g. 1280px?

This would make the website fill the screen upto widths of 1280px but the website wouldn't fill windows bigger than this.

Can it be done?

2
icomuser
Re: Variable width up to a maximum?
  • 2009/1/21 16:54

  • icomuser

  • Just popping in

  • Posts: 8

  • Since: 2009/1/21


use CSS property max-width

max-width1280px;


altho some older browsers don't support it, firefox does, not sure about IE though. javascript was need to replicate it for IE.. although i have never tested with later versions of IE.

3
Anonymous
Re: Variable width up to a maximum?
  • 2009/1/21 17:16

  • Anonymous

  • Posts: 0

  • Since:


I'll give it a go and report back.

Thank you

Login

Who's Online

214 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits