CSS3 Chrome Only Top and Bottom Fill

I searched the Internet for just a chrome solution. I need to change something in the stylesheet only in Chrome, but I can not find what I'm looking for on the Internet, or in stackoverflow. Chrome has the following to fill left and right

-webkit-padding-start

-webkit-padding end

But is there something for the upper and lower? OR am I lucky?

+6
source share
2 answers

Use -webkit-padding-before to debug top , -webkit-padding-after for bottom padding.

JsFiddle example

(Up) - -webkit-padding-before

(Right - -webkit-padding-end

(bottom) - -webkit-padding-after

(left) - -webkit-padding-start

enter image description here

+23
source

This hack looks like it can do the trick.

 @media screen and (-webkit-min-device-pixel-ratio:0) { /* rules only apply in saf3+, chrome1+ */ } 
+1
source

Source: https://habr.com/ru/post/958027/


All Articles