April 4, 2019
How to create a text with a gradient background in html using a div?
We all love those gradients when we want to show a text in the background. With the below simple css snippet, you can create a simple text with a gradient background. <!DOCTYPE html> <html lang="en"> <head> <title>Hell</title> <style> .gradientbackground { color: white; font-size: 40px; font-family: Arial; text-align: center; background: #21314b; background: linear-gradient(to right, #21314b