The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Height and width properties in IE7
Christian J
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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".
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 2 2006, 02:45 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Oct 2 2006, 06:55 PM) *

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?

Only height works the way you mean. Nothing wrong with width, I think.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 2 2006, 03:37 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Oct 2 2006, 09:45 PM) *

Only height works the way you mean. Nothing wrong with width, I think.


Long strings should overflow narrow containers, not expand them like IE6 does:

CODE
div {
width: 20px;
background: pink;
}

<div>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</div>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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? unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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. tongue.gif
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 09:10 AM