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
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in MODERNIZR
- Modernizr: IE10 & Flexbox: How to get IE10 flexbox detected
- Modernizr Html5 Validation
- running specific code in js file pertaining to i.e9 v's all other browsers
- understanding modenizer contains Function
- Jquery Google CDN not recognised when loaded?
- Which Modernizr css class determines if translateX() can be used?
- How to check window.showModalDialog availability?
- The use of modernizr with rotate3d in IE9
- Masonry (grid) with window.history.pushState
- Does modernizr distinguish between image and file system access?
- Load multiple files with Modernizr
- SVG image pattern position, different behaviour in IE
- Conditionally serving different javascript for different screen sizes
- Why is chrome looking for '/assets/otis_redding.png'?
- Referencing element using Modernizr
Related Questions in FIGURE
- What does tight_subplot return in MatLab?
- How to set number of ticks along X axis in matlab?
- Floating in row <figure> & <figcaption>
- Make the text "figure x" inside paragraph to be bold
- wxPython Plot overlapping
- How to have a figure inside a division or section
- MATLAB uses wrong font and spacing in figure titles
- exporting svg image from matlab surface plot
- How to format figcaption to not stretch a min-width figure
- Draw a graph in using latex
- How to have a common legend for subplots?
- group multiple plot in one figure python
- Is figure figcaption appropriate for image galleries?
- Set attributes of a figure with subplots
- Latex. Misplaced Figure
Related Questions in HTML5SHIV
- How can I align 4 photos side by side, and their individual text under them?
- html5shiv doesn't seem to be working
- Require.js: In require.config how to load js specific to IE?
- HTML5shim: how do <video> and <audio> render in legacy browsers?
- Browserify - add html5shiv to bundle.js
- Is HTML5Shiv only for Internet Explorer
- Some HTML5 tags not working in IE 7
- Would this conditional statement work in an HTML page?
- Why bootstrap.css must be in the same domain with the html when we use htmlshiv.js and respond.js to make IE7 compatible?
- Bootstrap 3 Not Working in IE8
- Html5shiv not working
- Modernizer JS Media Query check. Load / Unload
- Website partly loads CSS in IE8-IE9
- Why does html5shiv need conditional comments?
- HTML5 Shiv and Modernizr
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 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