How to hang a button with html and css -
i have regular button right under navigation bar around 150px space nav , wanted banner:
button:
what want: (something similar this)
i want draw 2 lines meeting @ single point on top , @ 2 points in button.
i not sure, if possible or not? type of guide appreciated!
try adding couple of svg lines above button:
https://jsfiddle.net/1sj0qzvl/
html
<div class="hanger"> <svg height="100" width="100"> <line x1="10" y1="100" x2="100" y2="0" style="stroke:rgb(255,0,0);stroke-width:2" /> <circle cx="10" cy="100" r=5 fill="red" /> </svg> <svg height="100" width="100"> <line x1="0" y1="0" x2="90" y2="100" style="stroke:rgb(255,0,0);stroke-width:2" /> <circle cx="90" cy="100" r=5 fill="red" /> </svg> </div> <div class="button"> <div class="button-inner"> button hang! </div> </div> css
.hanger { margin-bottom: -5px; } .button { border: 4px solid red; width: 200px; text-align: center; } .button-inner { color: red; border: 4px solid black; padding: 16px; background-color: white; } 

Comments
Post a Comment