How to set margin-top for Chrome browser only? It looks like there's no -webkit-margin-top
attribute in CSS.
Hmm that should work, unfortunately i can't comment, but try this
-webkit-margin-before: 100px;
That might fix the problem.
You can always do browser recognition in JS and then apply different base classes for different browsers. Also, this will make you happier when you look at your code in a year or two, rather than using CSS hacks which may or may not exist at that point.
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