Jump to content


[HTML] Minimum Width


3 replies to this topic

#1 Slightly Wonky Robob

    Not a Wonky Gent.

  • Administrator
  • 9333 posts

Posted 18 November 2007 - 15:55

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?
Posted Image
F O R T H E N S
Posted Image

#2 CodeCat

    It's a trap!

  • Gold Member
  • 6111 posts

Posted 18 November 2007 - 16:52

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

Posted Image
Posted Image

Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb

#3 Slightly Wonky Robob

    Not a Wonky Gent.

  • Administrator
  • 9333 posts

Posted 18 November 2007 - 17:24

Posted Image

Now i feel stupid... thanks none the less code :wtf:
Posted Image
F O R T H E N S
Posted Image

#4 Felix Lockhart

    Visitor

  • Member
  • 22 posts

Posted 18 November 2007 - 21:56

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



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users