The problem is your browser. Maybe you could wrap this div in another div that has the fixed height of 25px. Of course this wouldn’t be exactly the same as max-height.
Edit: According to Microsoft it should work in IE7+.
Have you set an appropriate doctype? If not IE7 uses an old layout engine. You should use HTML 4 or XHTML.
Related Posts:
- How to make a monopoly board using css grid?
- Half circle with CSS (border, outline only)
- How to horizontally center an element
- Unblur content inside blurring background div
- Setting table column width
- How to set a border for an HTML div tag
- Setting table column width
- What is difference between png8 and png24
- Why does z-index not work?
- How to center an iframe horizontally?
- Creating a nav bar with flexbox
- Is element block level or inline level?
- How to line-break from css, without using
? - How to put img inline with text
- How to center a “position: absolute” element
- How do I make an image smaller with CSS?
- Two divs side by side – Fluid display
- What is sr-only in Bootstrap 3?
- FontAwesome icons are not showing, Why?
- Remove border from IFrame
- How to change text transparency in HTML/CSS?
- CSS horizontal scroll
- Bootstrap 4 images thumbnail classes
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- AngularJS ngClass conditional
- How to darken a background using CSS?
- text-overflow: ellipsis not working
- How to reference nested classes with css?
- Placing border inside of div and not on its edge
- Why is there an unexplainable gap between these inline-block div elements?
- How to apply CSS to iframe?
- How to display and hide a div with CSS?
- Draw a line in a div
- CSS centred header image
- Change Color of Fonts in DIV (CSS)
- Why is “cursor:pointer” effect in CSS not working
- How to move text up using CSS when nothing is working
- How to style input and submit button with CSS?
- How to align content of a div to the bottom
- How to outline text in HTML / CSS
- Complete list of reasons why a css file might not be working
- How to draw a dotted line with css?
- Brackets – Live Preview not working
- How to stick text to the bottom of the page?
- How to make blinking/flashing text with CSS 3
- HTML iframe – disable scroll
- CSS set li indent
- Why does this CSS margin-top style not work?
- How to center content in a Bootstrap column?
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- How do I install a custom font on an HTML site
- How to overlay one div over another div
- How to align an input tag to the center without specifying the width?
- How can I embed video for discord directly from website?
- Why would max-width not work on this?
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- Making text background transparent but not text itself
- How to show text on image when hovering?
- Square brackets in CSS
- How do I disable form fields using CSS?
- Place input box at the center of div
- Fit background image to div
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- how to do a line break in Bootstrap 3.3.7
- CSS content property: is it possible to insert HTML instead of Text?
- Vertical align not working on inline-block
- How to increase height of textarea using bootstrap rows and columns
- Indent List in HTML and CSS
- Bootstrap 3 Glyphicons CDN
- Absolute position is not working
- Position absolute but relative to parent
- How do you specify table padding in CSS? ( table, not cell padding )
- Is it possible to put CSS @media rules inline?
- Make padding responsive
- Two Divs next to each other, that then stack with responsive change
- Vertically align text next to an image?
- SVG drop shadow using css3
- Force table column widths to always be fixed regardless of contents
- HTML not loading CSS file
- How can I center my ul li list in css?
- Is it possible to use css to shrink text to automatically fit the size of the div
- CSS !important not working
- How to best set a CSS3 transition to none?
- Horizontal list items
- How to make Bootstrap Panel body with fixed height
- word-wrap break-word does not work in this example
- Change navbar text color Bootstrap
- Create a slanted edge to a div [duplicate]
- How can I align text directly beneath an image?
- how do I get the bullet points of a
- to center with the text?
- Override USER AGENT STYLE SHEET – Chrome
- jQuery find element by data attribute value
- CSS: Can a div “float:middle” rather than “float:left;” with margin-left?
- WordPress footer menu floating with height of footer
- Using custom HTML tags to WordPress [closed]