This reply was modified 7 years, 4 months ago by champlainconted. I’d love to force people to use the latest version of everything, but, alas, not how things go. Thanks in advance guys, I realize it’s an annoying kind of issue. The trick is to use height: auto to override any already present height attribute on the image. If the max-width property is set to 100, the image will scale down if it has to, but never scale up to be larger than its original size. There is a better way for resizing images responsively. In a nutshell, we can enable CSS images to be proportionally resizable and responsive by: Using calc(newlength / originallength) for the parent container’s font size. It’d be easier to justify that the problem remain unfixed on their website. Resize images with the CSS max-width property. it’s not the theme’s fault, it’s the browser that lacks flexibility), do let me know. If fixing isn’t a possibility due to a documentated lack of support for responsive design in IE9 (ie. That’s fair due to the age of IE6, but IE9? It’s not that old. The JavaScript calculates the scrollbars width and puts the width as the value. Note that if you choose to set a width and height on the tag other than 100, the SVG viewBox is going to fit inside the viewport created. Now, I’m reasonable – if IE6 didn’t work, for example, it’s so old that I’d actually recommend putting a message telling the user to upgrade their browser, or move on at their own risk. The CSS above forces the -element to show a scrollbar.But their concern is still valid… if we could fix that effect, it’d be ideal. Note: The resize property does not apply to inline elements or to block elements. I kinda get where they’re coming from, and will try to explain that it’s a subset of users, those poor souls still using older IE versions. The resize property defines if (and how) an element is resizable by the user. My clients are concerned, however, that when people resize their browser windows in IE9 (and older, I imagine), the image obstructing the actual text (by appearing under it), will make our site look like it was poorly designed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |