5
I’m doing a project where I’m using the border radius
to make a vertical menu.
I would like the Menu to have the border Radius straight, this rounded shape :
And it’s actually getting this way:
.teste{
height:12%;
width:65%;
background-color: rgb(56, 66, 65);
opacity:0.5;
position:absolute;
margin-left:30%;
border: 2px solid red;
border-bottom-left-radius: 250px 170px;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Menu Vertical</title>
</head>
<body>
<div id="teste" class="teste"> </div>
</body>
</html>
How do I get straight?
Good morning! I found this site here, already to get an idea: http://www.howtocreate.co.uk/tutorials/css/slopes
– lcs01
And the top as it is?
– Wallace Maxters
Currently I’m trying to make only the div as the shape of the image, instead of getting half rounded, get bridge-sharp (like a sword)
– Sora
Take a look at this: https://answall.com/questions/109200/criar-bot%C3%A3o-with-edge-octagonal-using-only-html-e-css
– Wallace Maxters
@Sora I am trying to apply the principle of this question in your answer: What it means / in border-Radius
– Wallace Maxters
Possible duplicate of Create octagonal border button using html and css only
– Bacco
Possible duplicate of How to Make Tilt Button? and Creation of diagonal div
– Guilherme Nascimento