Html Button with CSS Rounded Style Code
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET"type="text/css"href="web.css">
<title>web design</title>
</head>
<body>
<h1>CSS Rounded button</h1>
<button class="button button1">2px</button>
<button class="button button2">4px</button>
<button class="button button3">8px</button>
<button class="button button4">12px</button>
<button class="button button5">50px</button>
</body>
</html>
CSS Rounded Style Code
.button{
background-color: green;
color: #fff;
border: none;
padding:20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin:4px 2px;
cursor: pointer;
}
.button1{border-radius:2px;}
.button2{border-radius:4px;}
.button3{border-radius:8px;}
.button4{border-radius:12px;}
.button5{border-radius:50px;}
No comments:
Post a Comment