The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HTML customazation, need some help coding this ?
Paul Larsen
post Apr 20 2015, 02:47 AM
Post #1





Group: Members
Posts: 1
Joined: 20-April 15
Member No.: 22,511



does any 1 know what i gotta do to get the tab bar vertical instead of horisontal ? on here u can se a prewiew of the code http://www.htmlbestcodes.com/HTML_tabs.htm


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
*, #content :first-child, #content :last-child {
margin: 0;
}
body {
font: 300 15px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
background: #333;
margin: 20px;
}
h1 {
margin-bottom: 20px;
color: #fff;
text-transform: uppercase;
font-size: 55px;
font-weight: 100;
letter-spacing: 30px;
text-shadow: 3px 3px 5px #000;
}
nav ul {
list-style: none;
padding: 0 0 0 10px;
min-width: 460px;
}
nav li {
float: left;
position: relative;
height: 30px;
border-radius: 10px 30px 0 0;
margin-left: -10px;
text-shadow: 1px 1px 0 #bbb;
box-shadow: 0px 0px 10px rgba(0,0,0,.5);
transition: .2s;
}
nav a {
display: block;
position: relative;
width: 90px;
height: 20px;
padding: 6px 10px 20px 0;
border-radius: 10px 30px 0 0;
background: #999;
color: #444;
text-align: center;
text-decoration: none;
transition: .2s;
}
nav li:hover {
z-index: 1;
}
nav li:hover a {
background: #ccc;
color: #000;
}
#selected {
z-index: 2;
}
#selected a {
z-index: 3;
background: #fff;
color: #000;
text-shadow: none;
font-weight: 500;
}
#content {
position: relative;
z-index: 1;
clear: both;
min-width: 420px;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0,0,0,.5);
background: #fff;
}
#content p {
margin: 20px 0;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="">tab1</a></li>
<li id="selected"><a href="">tab2</a></li>
<li><a href="">tab3</a></li>
<li><a href="">tab4</a></li>
<li><a href="">tab5</a></li>
</ul>
</nav>
</header>

<section id="content">
<p>html tabs content.</p>
</section>

</body>
</html>
<font face="Tahoma"><a target="_blank" href="http://www.htmlbestcodes.com/"><span style="font-size: 8pt; text-decoration: none">HTML Best Codes</span></a></font>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 20 2015, 02:37 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,496
Joined: 9-August 06
Member No.: 6



Don't change how a list normally displays so much. To begin with, don't float the LIs.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th January 2020 - 07:01 PM