Skip to content

Instantly share code, notes, and snippets.

@ysstudio22
Created January 6, 2024 16:34
Show Gist options
  • Save ysstudio22/18365789c52fbad9be6f95858aad8602 to your computer and use it in GitHub Desktop.
Save ysstudio22/18365789c52fbad9be6f95858aad8602 to your computer and use it in GitHub Desktop.
CSS gradient practice
<body>
<div id="socials">
<a href="#">X</a>
<a href="#">Threads</a>
<a href="#">TikTok</a>
</div>
</body>
*,*{
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