Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
possum16365yInspect those elements and see what each browser added.
Also if those are actually buttons by tag, check web-kit-appearance and the likes, they might be interpreted differently. -
@M1sf3t is right, a width expressed as a percentage refers to the width of the containing element, not the viewport.
If you want them both to be 35% of the width of the viewport, use vw units instead of %. -
Sumafu22485yChrome is not that strict as Safari (and other browsers) is with styles. Therefore this can happen, when Chrome uses not the very correct reference for his calculations.
Related Rants
Both buttons have a width from 35% but how is it possible that the button in safari is bigger then Chrome ??
rant
css
questions