I want the text on the picture so I am using the following CSS code:
.blur{
width:100%;
height: 500px;
background-image:url(./images/14.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.b-cont{
width: 100%;
height: 500px;
font-family: Raleway;
background: rgba(201, 186, 186, 0.1);
backdrop-filter: blur(5px);
color: #ffcd3c;
font-size: 72px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
span{
color: white;
}
HTML code:
<body>
<div class="blur">
<div class="b-cont">
Background of laptop is good but have to <span>blur</span> for the website
</div>
</div>
</body>
I wanted to color the sentence differently, so I added the span tag. It gave color but it separated the sentence
Look at this:
