Skip to content

Instantly share code, notes, and snippets.

@TaniaAlex
Forked from prof3ssorSt3v3/border-radius.html
Created December 28, 2020 16:36
Show Gist options
  • Select an option

  • Save TaniaAlex/45d20cfe899b8d9617da3d8207eeb838 to your computer and use it in GitHub Desktop.

Select an option

Save TaniaAlex/45d20cfe899b8d9617da3d8207eeb838 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS border-radius</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css">
<style>
body{
background-color: #ddd;
}
h1{
padding: 2rem;
background-color: white;
margin: 2rem;
max-width: 50%;
border-radius: 20px 30px 40px 50px / 100px 200px;
border:1px solid red;
}
/************************
border-radius: 10px;
border-radius: 10px 20px;
border-radius: 10px 20px 30px;
border-radius: 10px 20px 30px 40px;
border-radius: 10px / 100px;
border-radius: 10px 20px / 100px 50px;
border-top-left-radius: 10px 50px;
border-bottom-left-radius:
border-bottom-right-radius:
border-top-right-radius:
border-radius: 4px 3px 6px / 2px 4px;
is equivalent to:
border-top-left-radius: 4px 2px;
border-top-right-radius: 3px 4px;
border-bottom-right-radius: 6px 2px;
border-bottom-left-radius: 3px 4px;
- horizontal then vertical
************************/
</style>
<!--
-->
</head>
<body>
<h1>CSS border-radius</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment