Meniu lateral

In jos

Meniu lateral

Mesaj Scris de Bambi la data de Mier Apr 13, 2011 9:02 am

Probabil ati vazut, navigand pe mai multe site-uri, ca aveau si un meniu lateral alcatuit doar din imagini.Astazi va voi oferii acel cod:

Cod:
<style type="text/css">
#navigationMenu{
  position:fixed;
        top: 10px;
        left: 0px;
}
 
#navigationMenu li{
  list-style:none;
  height:39px;
  padding:2px;
  width:40px;
}
 
#navigationMenu span{
  width:0;
  left:38px;
  padding:0;
  position:absolute;
  overflow:hidden;
 
  font-family:'Myriad Pro',Arial, Helvetica, sans-serif;
  font-size:18px;
  font-weight:bold;
  letter-spacing:0.6px;
  white-space:nowrap;
  line-height:39px;
 
  /* CSS3 Transition: */
  -webkit-transition: 0.25s;
  /*-o-transition: 0.25s;*/
 
  /* Future proofing (these do not work yet): */
  -moz-transition: 0.25s;
  transition: 0.25s;
}
 
#navigationMenu a{
  background:url('http://img52.imageshack.us/img52/3637/navigationf.jpg') no-repeat;
 
  height:39px;
  width:38px;
  display:block;
  position:relative;
}
 
/* General hover styles */
 
#navigationMenu a:hover span{ width:auto; padding:0 20px;overflow:visible; }
#navigationMenu a:hover{
  text-decoration:none;
 
  /* CSS outer glow with the box-shadow property */
  -moz-box-shadow:0 0 5px #9ddff5;
  -webkit-box-shadow:0 0 5px #9ddff5;
  box-shadow:0 0 5px #9ddff5;
}
 
/* Green Button */
 
#navigationMenu .home {  background-position:0 0;}
#navigationMenu .home:hover {  background-position:0 -39px;}
#navigationMenu .home span{
  background-color:#7da315;
  color:#3d4f0c;
  text-shadow:1px 1px 0 #99bf31;
}
 
/* Blue Button */
 
#navigationMenu .about { background-position:-38px 0;}
#navigationMenu .about:hover { background-position:-38px -39px;}
#navigationMenu .about span{
  background-color:#1e8bb4;
  color:#223a44;
  text-shadow:1px 1px 0 #44a8d0;
}
 
/* Orange Button */
 
#navigationMenu .services { background-position:-76px 0;}
#navigationMenu .services:hover { background-position:-76px -39px;}
#navigationMenu .services span{
  background-color:#c86c1f;
  color:#5a3517;
  text-shadow:1px 1px 0 #d28344;
}
 
/* Yellow Button */
 
#navigationMenu .portfolio { background-position:-114px 0;}
#navigationMenu .portfolio:hover{ background-position:-114px -39px;}
#navigationMenu .portfolio span{
  background-color:#d0a525;
  color:#604e18;
  text-shadow:1px 1px 0 #d8b54b;
}
 
/* Purple Button */
 
#navigationMenu .contact { background-position:-152px 0;}
#navigationMenu .contact:hover { background-position:-152px -39px;}
#navigationMenu .contact span{
  background-color:#af1e83;
  color:#460f35;
  text-shadow:1px 1px 0 #d244a6;
}
 
 
a, a:visited,a:active {
  color:#0196e3;
  text-decoration:none;
  outline:none;
}
 
a:hover{
  text-decoration:none;
}
 
a img{
  border:none;
}
 
</style>
 
<ul id="navigationMenu">
    <li>
      <a class="home" href="forum.htm">
            <span>Home</span>
        </a>
    </li>
   
    <li>
      <a class="about" href="#">
            <span>About</span>
        </a>
    </li>
   
    <li>
      <a class="services" href="/profile.forum?mode=editprofile">
            <span>Profile</span>
        </a>
    </li>
   
    <li>
      <a class="portfolio" href="portal.htm">
            <span>Portal</span>
        </a>
    </li>
   
    <li>
      <a class="nume" href="/link">
            <span>Bambi Tutorials</span>
        </a>
    </li>
</ul> 
 
 
Doar la ultima parte unde apare Bambi Tutorials v-am spus ce sa adaugati.Nume este numele clasei, atentie !

Previzualizare: http://bambi.forumz.ro/h5-previzualizare1
Pentru www.bambi.forumz.ro
By Bambi !
//Codul se adauga:
Pentru phpbb2 si punbb intrati in Afisare-Template-uri-Genral-overall_header
Iar pentru phpb33 in Afisare-Pagina de start-Generalitati-Mesaj pe pagina de start
avatar
Bambi
Administrator
Administrator

Mesaje : 200
Puncte : 832
Data de inscriere : 13/03/2011

Vezi profilul utilizatorului http://bambi.forumz.ro

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum