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; }
endresult: chrome top, safari windows bottom
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:
Comments
Post a Comment