Cara Membuat Drop Down di Blogger


Copy Css dibawah ini ke : Template/Sesuaikan/Tingkat Lanjut/Tambahkan CSS

#navcontainer{
height:33px;
width:1000px;
margin:0 auto;
display:block;
padding:0px 0 0px 0px;
font-size:12px;
font-family:"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif;
font-weight:normal;
position: relative;
}

#nav{
 height: 36px;
  background: #141414;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  border-bottom: 2px solid #990000;
  z-index:100;
}

#nav ul {
list-style: none;
}

#nav li {
float: left;
list-style: none;
margin: 0px;
padding: 0px;
}

#nav li a, #nav li a:link, #nav li a:visited {
color: #;
display: block;
margin: 0px;
padding: 9px 10px 10px 10px;
}

#nav li a:hover, #nav li a:active {
color: #73f591 ;
margin: 0px;
padding: 9px 10px 10px 10px;
text-decoration: none;
}

#nav li li a, #nav li li a:link, #nav li li a:visited {
background:#black;
width: 150px;
color: #black;
font-family:Tahoma,century gothic,Georgia, sans-serif;
font-weight: normal;
float: none;
margin: 0px;
padding: 9px 10px 10px 10px;
border-bottom: 1px solid #FF7800;
}

#nav li li a:hover, #nav li li a:active {
color: #black;
padding: 9px 10px 10px 10px;
}

#nav li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 170px;
margin: 0px;
padding: 0px;
}

#nav li li {
}

#nav li ul a {
width: 140px;
}

#nav li ul a:hover, #nav li ul a:active {
}

#nav li ul ul {
margin: -34px 0 0 170px;
}

#nav li:hover ul ul, #nav li:hover ul ul ul,
#nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}

#nav li:hover ul, #nav li li:hover ul,
#nav li li li:hover ul, #nav li.sfhover ul,
#nav li li.sfhover ul, #nav li li li.sfhover ul {
left: auto;
}

#nav li:hover, #nav li.sfhover {
position: static;
}


Kemudian Pergi ke :Tata Letak/Tambah Gadget/HTML_Javascript
Copy Code Di bawah ini

<div id='navcontainer'>
<div id='nav'>
<ul>
<li><a href='#'>Menu 1</a></li>
<li><a href='#'>Menu 2</a>
<ul class='children'>
<li><a   href='#'>Menu 2.1</a></li>
<li><a   href='#'>Menu 2.2</a></li>
</ul>
</li>
<li><a href='#'>Menu 3</a>
<ul class='children'>
<li><a   href='#'>Menu 3.1</a></li>
                        <li><a   href='#'>Menu 3.2</a></li>
                        <li><a   href='#'>Menu 3.3</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class='clear'/></div>
Cara Membuat Drop Down di Blogger Cara Membuat Drop Down di Blogger Reviewed by Syafriansyah Muhammad on 2/20/2014 Rating: 5

3 komentar:

Diberdayakan oleh Blogger.