Click to See Complete Forum and Search --> : Min height/Min width


Poegle
08-19-2004, 12:05 PM
Does anyone know if Min height and/or Min width work on block level elements?

sharkey
08-19-2004, 12:08 PM
Hey well if you mean say like a div yes it will work but take a guess IE doesnt support it but all standards compliant browsers support it.

Fang
08-19-2004, 12:10 PM
http://www.svendtofte.com/code/max_width_in_ie/

Poegle
08-19-2004, 12:12 PM
cheers sharkey and fang,

Im having a problem at the moment.

Ive set a container div to be 100% wide and 100% high, but it does not want to do so, all it does is become the same height as something in it:

www.vagusnet.com/John/site2/index.php (http://www.vagusnet.com/John/site2/index.php)

:confused:

sharkey
08-19-2004, 12:15 PM
Woops forgot to give a link to the workaround but fang has done it, ive some of my bookmarks so ill bookmark that one.

Fang
08-19-2004, 12:29 PM
100% height (http://www.quirksmode.org/css/100percheight.html)

Poegle
08-19-2004, 12:35 PM
Your a star Fang thank you very much :)

Paul Jr
08-19-2004, 06:47 PM
Originally posted by Poegle
Does anyone know if Min height and/or Min width work on block level elements?
I should hope so; you can't legally apply padding, margin, width, height, or border (could be more stuff?) to inline-level elements.