css - How compatible is float:none? -
i little confused compatibility , useage of float:none;. basicaly using float:left in general stylesheet , want create exception using media query. in query want 'undo' float left.
my first thought use 'float:none;' seem find little documentation on how should used , if it's compatible browsers.
i checked 'caniuse.com' , gave me 2 different answers same question... when search 'float' says it's barely supported. , when search 'float:none;' says it's supported.
should using float:none cause and/or there better way 'undo' float?
float: none;
should fine "undo" floating environment. alternative, can set clear: both;
on element, ends floating environment.
or in case: clear: left;
in general, float (with properties) widely supported browsers. make sure looked @ css property when checking "caniuse":
css 2.1 properties (well-supported subset): float (none | left | right)
Comments
Post a Comment