I've been testing my website mainly with Google Chrome, and it happens that today I tried it with firefox and IE. With Firefox everything is fine, but with IE most of my images get resized to the original image size (from the file). That happens with my partial views. Here is my code:
Also, I'm not entirely sure but for inline width and height attributes on the img tags I don't believe percentages are valid - do this in your CSS (e.g. remove these!).
Notice how I add brackets around the inline razor - this is to "help" the Razor script know where the tag ends.
Not quite sure what you're doing with that newPage string.. I would think some kind of link picker would be better or if the items are child nodes then even just a item.Url ...
Hello Steven, I tried both your recommendations but I still have the same issue. Dont really know how to fix this because it works perfectly in Google Chrome and Firefox. Any other idea?
Bit hard to see what's going wrong exactly - is this some kind of carousel you're outputting? Your razor has a few issues but as Martin notes your specific problem is likely in the CSS.
What version of IE are you seeing issues in - all of them or just a certain version?
I suspect it's the use of max-width - there are some issues with this in IE8 especially. Is this on a publicly accessible URL or just on your local machine?
Image Rendering in IE
Hi guys,
I've been testing my website mainly with Google Chrome, and it happens that today I tried it with firefox and IE. With Firefox everything is fine, but with IE most of my images get resized to the original image size (from the file). That happens with my partial views. Here is my code:
And here is my CSS:
Any idea about how is this happening?
Thank you very much!
Hi Nelson,
This has nothing to do with Umbraco but with your markup/css.
Tip:
Regards,
Martin
I wasnt sure so I asked here. I tried what you mentioned but the problem persists
But thanks for helping
Hi Nelson,
Looks like you have malformed HTML which is why you're seeing differences on the browsers.. look at this line:
You need to surround the src attribute in quotes...
Also, I'm not entirely sure but for inline width and height attributes on the img tags I don't believe percentages are valid - do this in your CSS (e.g. remove these!).
Also you need to do the same for:
e.g.
Notice how I add brackets around the inline razor - this is to "help" the Razor script know where the tag ends.
Not quite sure what you're doing with that newPage string.. I would think some kind of link picker would be better or if the items are child nodes then even just a item.Url ...
Hello Steven, I tried both your recommendations but I still have the same issue. Dont really know how to fix this because it works perfectly in Google Chrome and Firefox. Any other idea?
Thank you very much for your help
Hi Nelson,
Bit hard to see what's going wrong exactly - is this some kind of carousel you're outputting? Your razor has a few issues but as Martin notes your specific problem is likely in the CSS.
What version of IE are you seeing issues in - all of them or just a certain version?
I suspect it's the use of max-width - there are some issues with this in IE8 especially. Is this on a publicly accessible URL or just on your local machine?
Hi Steve,
After a lot of search, I finally solved the issue. Just added "display: block" at the img div in css and worked perfectly.
But thanks anyway for all your support! Have a great day!
is working on a reply...