Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- Stacked Tabs theme by hendrixrph. Feel free to edit colors and fonts and everything, but don't redistribute or remove credit. Thank you! -->
- <title>Title</title>
- <link href='http://fonts.googleapis.com/css?family=Raleway:400,500,700,600' rel='stylesheet' type='text/css'>
- <link rel="shortcut icon" href="{Favicon}">
- <style>
- * {
- margin:0;
- padding:0;
- box-sizing:border-box;
- }
- ::-webkit-scrollbar {
- width: 3px;
- }
- ::-webkit-scrollbar-track {
- background-color: #fff;
- }
- ::-webkit-scrollbar-thumb {
- background-color: #aaa;
- }
- html, body {
- height:100%;
- }
- body {
- background-color: #ffffff;
- background-image: url(http://www.transparenttextures.com/patterns/axiom-pattern.png);
- /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
- }
- .header {
- margin-top:10px;
- }
- h1 {
- text-align:center;
- font-size:60px;
- font-family:"raleway",arial,helvetica,sans-serif;
- padding:10px;
- color:#666;
- font-weight:normal;
- }
- .header ul {
- width:300px;
- margin:0 auto;
- list-style-type:none;
- height:35px;
- text-align:center;
- margin-top:-5px;
- }
- .header ul li {
- display:inline-block;
- width:90px;
- text-align:center;
- }
- .header ul li a {
- font-family:"Raleway",Arial,Helvetica,sans-serif;
- text-decoration:none;
- color:#333;
- transition:0.5s all;
- }
- .header ul li a:hover {
- color:#aaa;
- letter-spacing:2px;
- }
- .header ul::after {
- content:'';
- display:none;
- clear:both;
- }
- .tabs {
- max-width:900px;
- margin:0 auto;
- }
- .tab [type=radio] {
- display: none;
- }
- .tab {
- transition:0.5s all;
- }
- .tab:nth-child(odd) {
- background-color:#999;
- }
- .tab:nth-child(even) {
- background-color:#aaa;
- }
- .tab label {
- text-align:center;
- height:50px;
- display:block;
- font-size:40px;
- font-family:"Raleway",Arial,Helvetica,sans-serif;
- padding-top:7px;
- color:#fff;
- text-shadow:0 0 7px rgba(0,0,0,0.3);
- border-bottom:1px solid rgba(255,255,255,0.3);
- }
- .content {
- height:0;
- overflow:hidden;
- transition: height 1s;
- background-color:#fff;
- color:#555;
- font-family:helvetica,arial,sans-serif;
- font-weight:100;
- padding:0px 10px;
- box-sizing:border-box;
- font-size:12px;
- line-height:1.35em;
- }
- .picwrapper {
- margin:15px auto;
- text-align:center;
- }
- .pics {
- display:inline-block;
- padding:15px;
- border:1px solid #ccc;
- height:125px;
- box-sizing:content-box;
- }
- .pics img {
- display:inline-block;
- height:125px;
- opacity:0.7;
- transition:0.5s all;
- }
- .pics img:hover {
- opacity:1;
- }
- .content p {
- margin-top:10px;
- }
- .content p:last-child {
- margin-bottom:10px;
- }
- .content ul, .content ol {
- margin-left:20px;
- margin-top:10px;
- }
- .content a {
- text-decoration:none;
- color:#999;
- transition:0.5s all;
- }
- .content a:hover {
- color:#666;
- }
- [type=radio]:checked ~ label ~ .content {
- height:300px;
- transition:height 1s;
- overflow-y:scroll;
- }
- .credit {
- display:block;
- position:fixed;
- bottom:10px;
- right:10px;
- background-color:#eee;
- font-family:"Raleway",Arial,Helvetica,sans-serif;
- font-size:11px;
- text-decoration:none;
- color:#555;
- padding:5px;
- transition:0.5s all;
- }
- .credit:hover {
- letter-spacing:2px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <h1>Stacked Tabs</h1>
- <ul>
- <li><a href="#">Link 1</a></li>
- <li><a href="#">Link 2</a></li>
- <li><a href="#">Link 3</a></li>
- </ul>
- </div>
- <div class="tabs">
- <!-- BEGIN COPY/PASTE -->
- <div class="tab">
- <input type="radio" id="tab-1" name="tab-group-1" checked> <!-- Change the id to the number tab it is, such as tab-3 or tab-4. Make sure no two tabs have the same id. -->
- <label for="tab-1">Tab 1</label> <!-- Change the "for" attribute to the id you put in the input tag above. -->
- <div class="content">
- <!-- If you want to put pictures in this tab, paste the code for it here. You can find the code in tab 2. -->
- <p>I'm the Stacked Tabs theme. I'm not very complicated, but I have a lot of uses! If you use me, you're free to change the colors, images, fonts, whatever you want, as long as the credit remains in place and you don't redistribute me as your own. </p>
- <p>Want to see how formatting looks here? I'll give some examples. <b>Bolded,</b> <i>italicized,</i> <del>strikethrough</del>, <big>big,</big> <small>small</small>, <a href="#">a link,</a> <sup>superscript</sup> and <sub>subscript.</sub></p>
- <ul>
- <li>This is</li>
- <li>An unordered</li>
- <li>List!</li>
- </ul>
- <ol>
- <li>This is</li>
- <li>An ordered</li>
- <li>List!</li>
- </ol>
- <p>Make sure to keep all your paragraph text in p tags. In the next couple of tags I'm going to give some examples of how this theme can be used.</p>
- <p>You'll see images used in the other tabs. Images are automatically resized to be 125px tall, so make sure the images you use are that size or bigger. Also, if you're curious, the fonts used are Raleway and Arial/Helvetica (depending on the fonts on your computer).</p>
- </div>
- </div>
- <!-- END COPY/PASTE -->
- <!-- BEGIN COPY/PASTE -->
- <div class="tab">
- <input type="radio" id="tab-2" name="tab-group-1"> <!-- Change the id to the number tab it is, such as tab-3 or tab-4. Make sure no two tabs have the same id. -->
- <label for="tab-2">Tab 2</label> <!-- Change the "for" attribute to the id you put in the input tag above. -->
- <div class="content">
- <!-- Begin pictures. If you don't want a picture box, delete this. -->
- <div class="picwrapper"><div class="pics">
- <img src=""> <!-- The images inside your picture box. I recommend anywhere from 1 to 3 images. -->
- </div></div>
- <!-- End pictures -->
- <p>Copy and paste as many of these tabs as you need. I recommend copying/pasting this one instead of tab 1.</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget urna tincidunt, egestas turpis sit amet, aliquam est. Vivamus pellentesque, nibh vitae congue commodo, odio elit pharetra leo, ut vehicula sem tortor id felis. Quisque dolor urna, gravida a ante quis, suscipit ultrices purus. Vivamus ultricies, tellus vel tristique facilisis, risus urna ultricies lorem, vitae pulvinar augue lacus quis dui. Praesent vitae elementum ipsum, tristique lobortis lorem. Vivamus aliquet congue nunc at aliquam. Duis rutrum, velit a aliquam varius, tortor arcu euismod elit, at imperdiet ex dui ac est. Proin sed purus et mi venenatis viverra quis non nunc. Quisque id odio ultrices, faucibus eros ut, bibendum ipsum. Fusce molestie accumsan odio id suscipit. Aenean risus neque, vulputate sit amet consectetur non, ultrices in massa. Nunc ultricies gravida tincidunt. Sed ipsum tortor, vestibulum quis lacinia eget, vehicula vitae erat. In a sollicitudin lorem.</p>
- </div>
- </div>
- <!-- END COPY/PASTE -->
- <!-- DO NOT PASTE TABS BEYOND THIS POINT -->
- </div>
- <a href="http://hendrixrph.tumblr.com" class="credit">hendrixrph</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment