1

Consider the following HTML for a tabbed menu:

<ul id="nav-tabs">
    <li class="active">Blah</li>
    <li>tab 2</li>
    <li>tab 3</li>
    <li>tab 4</li>
    <li>tab 5</li>
</ul>

Not sure if this is doable, but I want to get the shape of the tabs to look like this with border-radius. no images. The top part is easy, but the bottom, how it curves out on the line is the part I don't know if it's possible:

enter image description here

Here's the jsfiddle

5
  • It was less than 80%. I just accepted some answers Commented Aug 10, 2012 at 18:05
  • 3
    See here: css-tricks.com/tabs-with-round-out-borders Commented Aug 10, 2012 at 18:07
  • Very cool Joseph. If you want to put that as an answer i'll accept it. Commented Aug 10, 2012 at 18:14
  • check this css-tricks.com/examples/RoundOutTabs Commented Aug 10, 2012 at 18:22
  • 1
    @newuser - That's the demo to the article I linked to. Commented Aug 10, 2012 at 18:42

1 Answer 1

2

Posting comment as answer...

Chris Coyier has an article addressing this: Tabs with Round Out Borders.

His implementation is a little different than yours, but by playing with the border-radius you should be able to get the effect closer to what you have in your image, though I doubt you'll be able to get the shadow working (if you prove me wrong, post your code here. Would be very interesting).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.