Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make css curved line?

Tags:

css

css-shapes

How can I make css like this as picture below:

enter image description here

like image 414
dev.knockout Avatar asked Dec 05 '22 22:12

dev.knockout


1 Answers

Can be achieved using manipulating border radius

CSS

.graph {
    height: 100px;
    width: 200px;
    background: transparent;
    border-radius: 0px 0px 0px 370px/225px;
    border: solid 5px grey;
    border-top:none;
    border-right:none;
    margin:20px;
}

.graph:before {
    height:20px;
    width: 10px;
    border: 5px solid grey;
    border-radius: 30px 30px 0px 0px /75px 75px 0px 0px ; 
    display: block;
    content: "";
    border-bottom:none;
    position:relative;
    top: -9px;
    left: -12px;
}

HTML

<div class = "graph"><div>

https://jsfiddle.net/u663m81s/

like image 169
Ranjith Avatar answered Feb 16 '23 23:02

Ranjith