CSS -Hintergrundfarbe
body {
background-color: green;
}
Scratchy
body {
background-color: green;
}
.card {
/* other styles */
background: rgba(255, 255, 255, .7);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
body {
background-color:rgb(130, 50, 29);
}
.YourClass {
color: #ff0000;
}
// Making text background image
<h1>css animation</h1>
<style>
h1{
background:url(image.jpg);
-webkit-background-clip:text;
color:transparent;
}
</style>
Option 1
display: table;
no parent required
h1 {
display: table; /* keep the background color wrapped tight */
margin: 0px auto 0px auto; /* keep the table centered */
padding:5px;font-size:20px;background-color:green;color:#ffffff;
}
<h1>The Last Will and Testament of Eric Jones</h1>