Flared Borders With CSS

Introduction

  It is reverse rounded corners without any images. The flare effect is a combination of two steps. First, we cover up the bottom left and right outside edges with the same background color as our tab. It can be viewed on any browser i.e. It supports all the browsers.


CSS1.jpg

Now if we flared the "about" then it will look like this :


CSS2.jpg
 

CSS Code

html
{
 background-color:#efefef;

body
{
  margin:0;
  padding:0;
  color:#222;
  font:13px "Helvetica Neue", Helvetica, Arial, sans-serif;

ul 

{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:30px;
  background:#959DA5;
  border-bottom:1px solid #333;
  margin:0;
  padding:10px 16px 0;
  list-style:none;
}

ul li
{

  float:left;
  margin:0 20px 0 0;
  padding:0;

ul a

{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:0 15px;
  line-height:29px;
  height:29px;
  font-weight:bold;
  background:#464646;
  border:1px solid #333;
  border-bottom:none;
  -webkit-font-smoothing:antialiased;
  -webkit-border-top-left-radius:8px;
  -webkit-border-top-right-radius:8px;
  -moz-border-radius:8px 8px 0 0;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
  text-shadow:#000 0 -1px 0;
  webkit-background-clip: padding-box;

ul li.current a

{
  background:#efefef;
  color:#222;
  height:30px;
  text-shadow:#fff 0 1px 0;
  }

ul li
{

  position:relative;

ul li:before, ul li:after

{
  content:'';
  width:9px;
  height:8px;
  position:absolute;
  z-index:2;
  bottom:0;
  background:#464646;

ul li:before

{
  left:-8px;

ul li:after

{
  right:-8px;

ul li.current:before, ul li.current:after

{
  background:#efefef;
  bottom:0;
  -webkit-background-clip: padding-box;
}

ul a

{
  position:relative;
}

ul a:before, ul a:after

{
  content:'';
  width:10px;
  height:8px;
  position:absolute;
  z-index:3;
  bottom:-1px;
  background:#959DA5;
  overflow:hidden;
  border-bottom:1px solid #333;
  -webkit-background-clip: padding-box;
}

ul a:before

{
  left:-11px;
  border-bottom-right-radius:8px;
  -webkit-border-bottom-right-radius:8px;
  -moz-border-radius-bottomright:8px;
  border-right:1px solid #222;

ul a:after

{
  
right:-11px;
  border-bottom-left-radius:8px;
  -webkit-border-bottom-left-radius:8px;
  -moz-border-radius-bottomleft:8px;
  border-left:1px solid #222;
}

ul li.current a:before, ul li.current a:after

{
  bottom:0;
}
 

HTML Code

<body>

<ul>
      <li><a href="#">Home</a></li>
      <li class="current"><a href="#">About</a></li>
      <li><a href="#">Products</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Contact</a></li>
    </ul>

</
body>
Ebook Download
View all
Learn
View all