Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset='UTF-8'>
- <title>(Better) Round Out Tabs</title>
- <style>
- /*
- CSS-Tricks Example
- by Chris Coyier
- http://css-tricks.com
- */
- * { margin: 0; padding: 0; }
- body { font: 14px Georgia, serif; }
- h1 {
- width: 660px;
- margin: 0 auto;
- padding: 20px 0;
- color: #222;
- }
- .group:before,
- .group:after {
- content: "";
- display: table;
- }
- .group:after {
- clear: both;
- }
- .group {
- zoom: 1;
- }
- .tabrow {
- text-align: center;
- list-style: none;
- margin: 200px 0 20px;
- padding: 0;
- line-height: 24px;
- height: 26px;
- overflow: hidden;
- font-size: 12px;
- font-family: verdana;
- position: relative;
- }
- .tabrow li {
- border: 1px solid #AAA;
- background: #D1D1D1;
- background: -o-linear-gradient(top, #ECECEC 50%, #D1D1D1 100%);
- background: -ms-linear-gradient(top, #ECECEC 50%, #D1D1D1 100%);
- background: -moz-linear-gradient(top, #ECECEC 50%, #D1D1D1 100%);
- background: -webkit-linear-gradient(top, #ECECEC 50%, #D1D1D1 100%);
- background: linear-gradient(top, #ECECEC 50%, #D1D1D1 100%);
- display: inline-block;
- position: relative;
- z-index: 0;
- border-top-left-radius: 6px;
- border-top-right-radius: 6px;
- box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 #FFF;
- text-shadow: 0 1px #FFF;
- margin: 0 -5px;
- padding: 0 20px;
- }
- .tabrow a {
- color: #555;
- text-decoration: none;
- }
- .tabrow li.selected {
- background: #FFF;
- color: #333;
- z-index: 2;
- border-bottom-color: #FFF;
- }
- .tabrow:before {
- position: absolute;
- content: " ";
- width: 100%;
- bottom: 0;
- left: 0;
- border-bottom: 1px solid #AAA;
- z-index: 1;
- }
- .tabrow li:before,
- .tabrow li:after {
- border: 1px solid #AAA;
- position: absolute;
- bottom: -1px;
- width: 5px;
- height: 5px;
- content: " ";
- }
- .tabrow li:before {
- left: -6px;
- border-bottom-right-radius: 6px;
- border-width: 0 1px 1px 0;
- box-shadow: 2px 2px 0 #D1D1D1;
- }
- .tabrow li:after {
- right: -6px;
- border-bottom-left-radius: 6px;
- border-width: 0 0 1px 1px;
- box-shadow: -2px 2px 0 #D1D1D1;
- }
- .tabrow li.selected:before {
- box-shadow: 2px 2px 0 #FFF;
- }
- .tabrow li.selected:after {
- box-shadow: -2px 2px 0 #FFF;
- }
- </style>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script>
- $(function() {
- $("li").click(function(e) {
- e.preventDefault();
- $("li").removeClass("selected");
- $(this).addClass("selected");
- });
- });
- </script>
- </head>
- <body>
- <div id="demo-top-bar">
- <div id="demo-bar-inside">
- <h2 id="demo-bar-badge">
- <a href="/">CSS-Tricks Example</a>
- </h2>
- <div id="demo-bar-buttons">
- </div>
- </div>
- </div>
- <ul class="tabrow">
- <li class="selected"><a href="#">Lorem</a></li>
- <li><a href="#">Ipsum</a></li>
- <li><a href="#">Sit amet</a></li>
- <li><a href="#">Consectetur adipisicing</a></li>
- <li><a href="#">adipisicing</a></li>
- </ul>
- <style type="text/css" style="display: none !important;">
- * {
- margin: 0;
- padding: 0;
- }
- body {
- overflow-x: hidden;
- }
- #demo-top-bar {
- text-align: left;
- background: #222;
- position: relative;
- zoom: 1;
- width: 100% !important;
- z-index: 6000;
- padding: 20px 0 20px;
- }
- #demo-bar-inside {
- width: 960px;
- margin: 0 auto;
- position: relative;
- overflow: hidden;
- }
- #demo-bar-buttons {
- padding-top: 10px;
- float: right;
- }
- #demo-bar-buttons a {
- font-size: 12px;
- margin-left: 20px;
- color: white;
- margin: 2px 0;
- text-decoration: none;
- font: 14px "Lucida Grande", Sans-Serif !important;
- }
- #demo-bar-buttons a:hover,
- #demo-bar-buttons a:focus {
- text-decoration: underline;
- }
- #demo-bar-badge {
- display: inline-block;
- width: 302px;
- padding: 0 !important;
- margin: 0 !important;
- background-color: transparent !important;
- }
- #demo-bar-badge a {
- display: block;
- width: 100%;
- height: 38px;
- border-radius: 0;
- bottom: auto;
- margin: 0;
- background: url(/images/examples-logo.png) no-repeat;
- background-size: 100%;
- overflow: hidden;
- text-indent: -9999px;
- }
- #demo-bar-badge:before, #demo-bar-badge:after {
- display: none !important;
- }
- </style>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement