Height and width properties in IE7 |
Height and width properties in IE7 |
Christian J |
Oct 2 2006, 11:55 AM
Post
#1
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
According to http://css-discuss.incutio.com/?page=IE7 IE7 will support "min-height" and "min-width".
Does this also mean that IE6's incorrect renderings of "height" and "width" (that in practice work like W3C's "min-height" and "min-width") are fixed? |
Frederiek |
Oct 2 2006, 12:13 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Maybe you'll find an answer here: http://www.d.umn.edu/itss/support/Training...gn/css.html#ie7
|
Christian J |
Oct 2 2006, 12:26 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I sent a test page to http://www.danvine.com/iecapture/ and it appears to get at least "height" right. I didn't test "width".
|
pandy |
Oct 2 2006, 02:45 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Christian J |
Oct 2 2006, 03:37 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Oct 2 2006, 04:01 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Sigh.
|
Christian J |
Oct 2 2006, 04:04 PM
Post
#7
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
You scared me there for a moment, so I had to test. Amazing how quick one forget things.
|
pandy |
Oct 2 2006, 04:23 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I don't think how IE handles width and height is especially similar to min-width and min-height but with hight there is at least a fraction of similarity.
|
Christian J |
Oct 2 2006, 04:47 PM
Post
#9
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
What's the difference, you mean?
|
pandy |
Oct 2 2006, 05:44 PM
Post
#10
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Make IE do this or anything else remotely useful with its flexible width.
#someBlock { widht: 50%; min-width: 20em } IE's tricks with width isn't useable for anything. It's a nuisance. |
Christian J |
Oct 3 2006, 07:59 AM
Post
#11
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
That's true for normal block level elements. Since by default they expand to fit their parent container's width, it means any min-width smaller than that becomes meaningless. But how about a floated (or abs positioned) element?
CODE <style type="text/css"> div { float: left; min-width: 100px; background: pink; } </style> <!--[if lte IE 6]> <style type="text/css"> div { width: 100px; } </style> <![endif]--> <div> xxxxxxxxxxxxx </div> |
pandy |
Oct 3 2006, 11:50 AM
Post
#12
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
OK OK.
Maybe it's useful for a picture gallery or something. You still can't make it "do" anything if you don't put an unbreakable string or a big image in there. |
Lo-Fi Version | Time is now: 23rd April 2024 - 09:10 AM |