SVG as background image
๐ background-size
๐ text-shadow
๐ <linearGradient>
๐พ https://replit.com/@pegasusroe/svg-bg-image
๐ style.css
header {
/* โญ๏ธ SVG as background image */
background: url(svg/gradients.svg);
background-size: contain;
border-radius: .5em;
}
h1 {
color: #ffffff;
text-align: center;
/* x, y, blur, color */
text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8);
}
Last updated
Was this helpful?