Sorry to repeat this question similar to SO here: Can I create a div with a curved bottom?
But the method does not match my need for a header setting. But what I want to achieve is not quite like what I’m reaching with the border border-bottom-left-radius and border-bottom-right-radius .
As you can see, the images that the heading I want to achieve are linearly curved along the bottom, but with what I have achieved, it is that I have a more curved border on the left and right side of the heading and is curved not linear all over bottom. It becomes straight after a short distance. I tried to increase% of age, but it becomes even more curved around the edges.
Is there any other way to do this so that I get linear curvature along the bottom?
Here is my code: CSS code:
header{ background-color: #000; border-bottom-left-radius:25%; border-bottom-right-radius:25%; padding: 10px; opacity: 0.35; position: fixed; width: 100%; z-index: 1000; }
Here is the JSfiddle link: https://jsfiddle.net/ozqneuha/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700); .header-container { margin: 0 auto; width: 1170px; } ul { padding: 0; margin: 0; } header { background-color: #000; border-bottom-left-radius: 25%; border-bottom-right-radius: 25%; padding: 10px; opacity: 0.35; position: fixed; width: 100%; z-index: 1000; } header nav ul { list-style-type: none; } header .logo { display: inline-block; } header .header-nav { display: inline-block; float: right; padding: 7px; } header li { float: left; margin-left: 20px; } header li a { color: #fff; font: 600 16px'Open Sans'; text-transform: uppercase; text-decoration: none; } header li a:hover, header li a:active { color: #e51937; text-decoration: none; }
<header> <div class="header-container"> <div class="logo"> <a href="#"> <img src="http://i.imgur.com/2JbjOqY.png" alt="logo"> </a> </div> <div class="header-nav"> <nav> <ul> <li><a href="#">Search</a> </li> <li><a href="#">Map</a> </li> <li><a href="#">Properties</a> </li> <li><a href="#">Parking</a> </li> <li><a href="#">Residents</a> </li> <li><a href="#">Pay Online</a> </li> </ul> </nav> </div> </div> </header>
source share