html - Safari inline-block not floating -


i'm using following html , css create elements tightly in 100% space (floating?).

<div class="wrapper">     <div class="image">this image</div>     <div class="content">this content</div> </div>  .wrapper { font-size: 0; } .image, .content { display: inline-block; box-sizing: border-box; width: 50%; color: #000; font-size: 18px; } .image { background: #f6f6f6; } 

jsfiddle.

endresult: chrome top, safari windows bottom

enter image description here

this style works great on browsers - except safari windows. i'm not sure "real" safari ipad seems work fine. issue should worried about?

in safari windows, setting width to:

width: 49.7%; 

will give result looking for.

you can detect browser , apply style safari windows.

see here how detect safari windows:

detection safari windows javascript


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -