0

I know this question has been asked, but the way the design is implemented is not how I want it.

This is how I want the curved header to look

I've tried border radius left and right, but the edges are way too rounded.

Any ideas on how to accomplish this? EDIT: I know that I need border-radius, what I'm trying to say is I don't want the radius to look really rounded. I want it exactly to what I've linked to the picture. I don't understand the reason to downvote.

2 Answers2

1

This is totally achievable with CSS - simply have a nested div - apply different sizing and colors to them and have the inner one bigger than the outer one but with a different overfow visibility. The following creates the curved arc at the bottom. You can play around with the styling to get the desired result.

It is still using the border-radius:50%, but because the div that the border radius is applied to is MUCH larger than displayed - the curved border is a more gentle arc.

.outer{
  width:500px;
  height:200px;
  background:white;
  position:relative;
  overflow:hidden
}

.inner{
  width:1000px;
  height:200px;
  background:#29465E;
  border-radius: 50%;
  position:absolute;
  left:-50%;
  top:-25%;
  overflow:visible
}
<div class="outer">
  <div class="inner"></div>
</div>
gavgrif
  • 15,194
  • 2
  • 25
  • 27
-1

That is not a css setting, it's just a background image.

Serg Chernata
  • 12,280
  • 6
  • 32
  • 50