Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3 Padding top and bottom for Chrome only

I have been searching the web for a chrome only solution. I need to modify something in a stylesheet in Chrome only, but I cannot seem to find what I'm looking for online nor on stackoverflow. Chrome has the following for padding left and right

-webkit-padding-start

-webkit-padding-end

But, is there anything for top AND bottom? OR, am I out of luck?

like image 685
Kung Fu Front Ender Avatar asked Nov 13 '13 20:11

Kung Fu Front Ender


1 Answers

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

jsFiddle example

(Top) - -webkit-padding-before

(Right - -webkit-padding-end

(Bottom) - -webkit-padding-after

(Left) - -webkit-padding-start

enter image description here

like image 138
Josh Crozier Avatar answered Nov 04 '22 08:11

Josh Crozier