Is it possible to add another layer to your background? e.g. A gray bg and add a black layer with less opacity & some padding? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Is it possible to add another layer to your background? e.g. A gray bg and add a black layer with less opacity & some padding?

3rd May 2017, 9:21 PM
Damien Sebe
Damien Sebe - avatar
2 Antworten
+ 4
when you need padding, use div as a wrapper for the rest of the document and add your transparent background to it. <body> <div id="wrapper"> ... </div> </body>
3rd May 2017, 9:33 PM
Mario L.
Mario L. - avatar
+ 2
yes, that is possible using the rgba() color method. read more about colors at: https://www.w3schools.com/css/css3_colors.asp
3rd May 2017, 9:24 PM
Welliton Malta
Welliton Malta - avatar