Here is a fiddle with my code: http://jsfiddle.net/kizu/GCahV/ (compare it in Firefox and any other modern browser)
What I want to achieve:
float
) with two parts: left and right.max-width
(in %
or fixed in px
).Using inline-block
, float
and overflow: hidden
I made it work well in the latest Chrome, Safari and Opera, but struck with the fact that Firefox have a bug: the left part shrinks when the right part is long.
The only CSS workaround I've found is to try position elements for Fx in flex-box model, but it's not perfect: I couldn't make the parent to have max-width
(or width
at all).
Here is my best try so far: http://jsfiddle.net/kizu/GCahV/1/
So, the questions are:
max-width
for .b-shrinker
?{ max-width: 100%; width: 100% }
and it will look good in Fx and WebKit and Opera. http://jsfiddle.net/GCahV/11/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With