Saturday, 15 September 2012

html - Safari on windows won't respect parent's element max-height -


In Safari, the maximum element of the original element is not considered to be limited to height

< Em> It gives in Safari:

Enter image details here

The only solution I got was to set the height of children with the maximum-height property.

code:

  & lt; Body & gt; & Lt; Div class = "menu-ctn" & gt; & Lt; Ul & gt; & Lt; Li & gt; X & lt; / Li & gt; & Lt; Li & gt; Y and lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

The expected result is that the elements of all the children of the parents where maximum-height is determined, are respected :

Enter image details here

I tested it on Mac at Safari 7.1.3 and Google Chrome version 41.0.2272.8 9.

Enter image details here

It appears to be a safari Try to override the property with a media query on the Windows issue only, which filters the Safari 5 + from Chrome with the proxy:

  @ media screen and (-webkit-min) -device-pixel-ratio: 0) {/ * Safari ONLY override * /: i-block-chrome. Menuu-ctn ul {height: 25%; }}  

No comments:

Post a Comment