Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS border-radius direction

Tags:

css

I have a request to make these menu items:

Top menu:
enter image description here

Side menu:
enter image description here

I started with a border-radius, but I don't know how to make the other side to be 'outer radiuses', I believe both the top and bottom menu are mainly the same idea, I'll just have to play with the sizes and directions.

I'll soon share a jsFiddle of a version I'm working on, currently I haven't manage to do anything at all.

like image 673
Shimmy Weitzhandler Avatar asked Nov 25 '25 17:11

Shimmy Weitzhandler


1 Answers

Essentially you want to use the :before and :after selectors to create a little box with a border radius in the corners you want.

There are many examples online, here are a few:

  • Making Outer Border Radius Using CSS and CSS3
  • CSS3 - Tabs with inner and outer radii - no graphics - (free for personal use - not commercial)
  • Flared Borders with CSS
like image 123
sachleen Avatar answered Nov 27 '25 06:11

sachleen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!