
Background:hsla/rgba

<style>
main{
width: 100%;
margin: auto;
padding: 59px 29px;
border-radius: .3em;
text-shadow: 0 1px 1px hsla(0, 0%, 100%, .3);
box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .3) inset, 0 .3em 1em rgba(0, 0, 0, 0.12);
font: 150%/1.6 Baskerville, Palatino, serif;
}
main, main > div::before {
background: url("https://tutorialesenlinea.es/uploads/posts/2019-03/1552231390_trucos_y_efectos_en_css3_-tutoriales_en_linea.webp") fixed 0 / cover;
}
main > div::before{
content: "";
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
filter: blur(10px);
margin: -30px;
}
main > div{
font-style: italic;
color: #000;
padding: 30px;
hyphens: auto;
background: hsla(0,0%,100%,.5);
overflow: hidden;
position: relative;
}
main > div cite{
font-style: normal;
}
main footer {
text-align: right;
}
</style>
<main class="main">
<div>
"Oh Dios, podría estar limitado en pocas palabras y considerarme un rey del espacio infinito, si no es que tengo malos sueños.."<br>
<footer>——
<cite>William Shakespeare</cite>
</footer>
</div>
</main>
Ver resultado
Comentarios