Created
January 6, 2024 16:34
-
-
Save ysstudio22/18365789c52fbad9be6f95858aad8602 to your computer and use it in GitHub Desktop.
CSS gradient practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div id="socials"> | |
<a href="#">X</a> | |
<a href="#">Threads</a> | |
<a href="#">TikTok</a> | |
</div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*,*{ | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} | |
body{ | |
background-image: linear-gradient(to right, blue, turquoise); | |
} | |
#socials{ | |
width: 180px; | |
height: 230px; | |
margin: auto; | |
} | |
a{ | |
display: block; | |
padding: 15px; | |
margin: 15px; | |
background-image: radial-gradient(red, orange); | |
width: 150px; | |
color: white; | |
border-radius: 30px; | |
text-align: center; | |
font-family: Arial; | |
font-size: 25px; | |
font-weight: bold; | |
text-decoration: none; | |
cursor: pointer; | |
} | |
a:hover{ | |
background-image: radial-gradient(brown, gold, white); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment