I have a div whose top needs to have a semicircular shape. The initial
width of the div was 48px.
To get a semicircle I set
border-radius: 24px 24px 0 0;
But the size of the div is meant to be responsive so I set the width to
a percentage.
Having a percentage size for the div means that when the width of the
div increases the top of it changes from a "regular" semicircle to a "flattened" one.
When I tried using % for border radius it displays an elliptical
semicircle.
How can I get border radius to always display a "regular" semicircle irrespective of the size of the div?
Andrew Poulos
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:21:13 |
Calls: | 6,657 |
Calls today: | 3 |
Files: | 12,203 |
Messages: | 5,332,304 |
Posted today: | 1 |