We would like to know how to create SS angle border as button with text over.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#edge {<!--from ww w . jav a 2 s.c o m-->
border-left: 30px solid transparent;
border-top: 30px solid #000;
height: 30px;
margin-top: 30px;
width: 100%;
padding: 0 10px;
}
#container {
height: 80px;
width: 600px;
background: red;
padding-top: 30px;
text-align: right;
border-top: 2px solid #000;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="container">
<span id="edge">java2s.com</span>
</div>
</body>
</html>
The code above is rendered as follows: