I have a gallery in which i'm using the figure and figcaption tags. This displays fine in all modern browsers but in IE8 it breaks the CSS for the figure and figcaption tags because the browser doesn't support them. Just including the html5shiv library doesn't fix it. Is there a method within that I would have to call?
figure and figcaption using html5 shiv in IE 8
1.8k Views Asked by khaos337 At
2
There are 2 best solutions below
0
Sasha Vodnik
On
I ran into this same issue and found that it stemmed from specifying max-width: 100% for img elements. If I remove this declaration, IE8 renders the images at the appropriate sizes. Unfortunately, it means they won't responsively size on smaller screens.
The best solution I know of is to specify max-width: none using a conditional comment that's applied only in IE8 and earlier:
<!--[if lt IE 9]>
<style rel="stylesheet">
img {max-width: none;}
</style>
<![endif]-->
Related Questions in CSS
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Is there any way to glow this bulb image like a real light bulb
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- How to increase quality of mathjax output?
- Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
- Storing selected language in localStorage
- How to clip grid cell and provide scroll as well?
- KeyboardAvoidingView makes a messy the flexbox
- Rotate an object around another object in javascript
- Understanding Scroll Anchoring Behavoir
- how to use only block layout in this css code?
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in MODERNIZR
- How do I build a recent modernizr?
- Webpack React Babel build it without modernizr
- Modernizer is not defined
- Why would an IIS ASP.Net Deployment change currency & date formats?
- Why is Safari passing this Modernizr test I wrote for WebRTC?
- Is Modernizr still necessary?
- Updating the modernizr from 2.x to 3.x
- Should I use both no-webp and no-jpeg2000 for fallbacks on Modernizr?
- How to detect whether browser supports Drag and Drop, Touch and BoxShadow?
- Modernizr async tests
- Modernizr randomly not testing image formats in Safari
- Modernizr: removing element with .webp in background if not support
- Two instances of Modernizr on one page
- Modernizr.load Deprecated. Yepnope.js Deprecated. Current Alternatives?
- Unable to make 3D effect when Hover
Related Questions in FIGURE
- Numbering figures in LaTeX with decimal points
- Creating figure with all QTL mapping results in R
- Plotly chart "'Figure' object is not callable error" when displaying it on Streamlit page
- Adding the color argument to my px.timeline figures starts a new y-scale for each category. How do I use color so that the y-scale isn't interrupted?
- Using matltlib displays a new window named Figure 1 (not responding)
- problems w/ dragging and dropping figures
- How to increase the figsize in such a way that the figure remains of the size and labels in x-axis should appear fully instead of getting cut?
- How to change location of 3x3 cube inside 6x6 cube
- Python plot with annotating arrows
- Keeping proportions when exporting ggplots
- I want to plot a very basic line chart with plotly
- How to change range of an colorbar in matplotlib?
- legend=False in sns.stripplot rises an error
- Putting space between every two bars in seaborn's factorplot
- Word Macro: Create Table of Figures by hand from manually numbered figures
Related Questions in HTML5SHIV
- Why does html5shiv need conditional comments?
- How can I align 4 photos side by side, and their individual text under them?
- Where to put link to html5shiv.js? Before css <styles> or with other <script> tags?
- Semantic elements work in IE 8 without html5shiv
- HTML5shiv not working on IE 8
- HTML5 Shiv Google CDN Link Not Working
- How to use HTML5shiv correctly... how work on IE 9, Firefox, Safari?
- IE not loading CSS sheet, HTML5 and html5shiv not helping
- twitter bootstrap not working in ie8 on the top site (i.e. www.exampleurl.com)
- HTML5 Shiv and Modernizr
- IE8 html5shiv...not all styles are being applied
- Should I worry about these JSLint warnings on HTML5Shiv.min.js version 3.7.2?
- Implementing HTML5shiv properly?
- Modernizr - html5shiv w/printshiv
- Is HTML5Shiv only for Internet Explorer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
the problem was that the figure element did not automatically size to the picture it contained so it needed to be specifically set in the CSS