This is a migrated thread and some comments may be shown as answers.

max-width and max-height css styles not working in IE in RadWindow

3 Answers 172 Views
Window
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 10 Feb 2008, 06:44 AM
I have several RadWindows that I'm working on that use the max-height and max-width styles in a linked stylesheet. It works fine in IE when not in a RadWindow but does not work when in a RadWindow. This works fine in FireFox in both scenarios.

You should be able to easily test this by creating a RadWindow that has a asp:Image with an ImageURL to a large image. Create a css file with the class below and apply your class to the asp:Image. In a RadWindow in IE it won't apply the max width/height of the image. In FireFox it works fine.

.thumbnail  
{  
    border:0px;  
    max-height:96px;  
    max-width:96px;  

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 11 Feb 2008, 07:16 AM
Hi rh,

Which version of Internet Explorer are you using?

The min-height and min-width properties are not supported by version 6, and version 7 has a very poor support of these.

All the best,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rh
Top achievements
Rank 1
answered on 11 Feb 2008, 06:12 PM
IE 7 on Vista.

It works when viewing a page when the page is not in a RadWindow. However, if you view the page withtin a RadWindow then max-height and max-width are ignored. It's wierd. Not sure how RadWindow would affect it, but it seems to.
0
Georgi Tunev
Telerik team
answered on 12 Feb 2008, 01:30 PM
Hello rh,

In order for these properties to work, you also need to set width and height for the element.
e.g
.thumbnail    
{    
    border:0px;    
    max-height:96px;    
    max-width:96px;    
    height96px
    width96px
}   
 

Also please make sure that you are using a XHTML 1.1 doctype and if you still experience problems - open a new support ticket and send us a sample project where they can be reproduced. We will check the project and do our best to help.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
rh
Top achievements
Rank 1
Answers by
Martin
Telerik team
rh
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or