←  Code Block

Fallout Studios Forums

»

[HTML] Minimum Width

Slightly Wonky Robob's Photo Slightly Wonky Robob 18 Nov 2007

Simple question, hopefully there's a simple answer (that isn't no D: )

Is it possible to give something a minimum, in this case i want to give a div a minimum width, currently its 100% width and height, and i dont want it to go below say 800x600px. Is this possible?
Quote

CodeCat's Photo CodeCat 18 Nov 2007

There are min-width and min-height CSS attributes which you can use.
Quote

Slightly Wonky Robob's Photo Slightly Wonky Robob 18 Nov 2007

Posted Image

Now i feel stupid... thanks none the less code :wtf:
Quote

Felix Lockhart's Photo Felix Lockhart 18 Nov 2007

Min-width and min-height are not recognized by IE, so if the appearance of your site to IE users matters, here's how to do it:

http://www.cssplay.c...s/minwidth.html
http://www.cssplay.c.../minheight.html
Quote