+ 6

CSS: Change color of padding[solved]

padding is usually color of background. Can i change this with rgba(100,100,100,0.8)? If not - why? maybe background IS padding-color?

26th Apr 2019, 6:49 AM
Oma Falk
Oma Falk - avatar
2 Respuestas
+ 6
I read the reference... https://www.w3.org/TR/CSS21/box.html#box-dimensions Margin backgrounds are always transparent. The surface color or image of the padding area is specified via the 'background' property: h1 { background: white; padding: 1em 2em; }
26th Apr 2019, 8:30 AM
Oma Falk
Oma Falk - avatar
0
Cool
29th Jan 2020, 12:31 AM
Charles
Charles - avatar