+ 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?
2 Antworten
+ 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;
}
0
Cool