html - CSS - Curved Corner after using border-left and border-bottom -


i have used border-left , border-bottom create sort of 1 sided parallelogram shape bootstrap navbar, need right side curved while keeping left side transparent.

current outcome:

current outcome

wanted outcome:

wanted outcome

i have tried using border-top-right-radius nothing happens:

.navbar {     position: relative;     min-height: 50px;     margin-bottom: 20px;     border: 1px solid transparent;     height: 20px;     width: 100px;     border-bottom: 50px solid rgba(58, 162, 178, 0.5);     border-left: 50px solid transparent;      /* tried */     border-top-right-radius: 2em; } 

i have made jsfiddle here: http://jsfiddle.net/6qfbhxty/

in example blue bar bottom border. won't work because can't give "end" of border curved look.

you try apply blue color background , use :before create triangle.

please notice apply same color background , border!

body {    background-image: url("http://lorempixel.com/800/800/abstract");    background-attachment: fixed;    background-repeat: no-repeat;    background-size: cover;    width: 100%;    height: 100%;  }  .navbar {    position: relative;    height: 50px;    margin: 0px 0px 20px 50px;    width: 100px;    background: rgba(58, 162, 178, 0.8);    border-top-right-radius: 16px 25px;    border-bottom-right-radius: 16px 25px;  }  .navbar:before {    content: ' ';    position: absolute;    width: 0;    height: 0;    left: -50px;    border: solid transparent;    border-width: 0 0 50px 50px;    border-bottom-color: rgba(58, 162, 178, 0.8);  }  h3 {    background: white;  }
<div class="navbar" style="width:75%;">    <div class="navbar-collapse collapse navbar-responsive-collapse"></div>    <br>    <br>    <br>    <h3>wanted outcome (shape wise):</h3>      <img src="http://i.stack.imgur.com/wnfo2.png">

edited snippet better code


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -