The Demo Site

Tecnoline | Create & Imegine

CSS

Menu horizontal:
Vista Previa:
http://i41.tinypic.com/25ssqyq.jpg

Code del Menu:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Menu</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="nav-container-outer">
   <img src="images/nav-bg-l.jpg" alt="" class="float-left" />
   <img src="images/nav-bg-r.jpg" alt="" class="float-right" />
   <ul id="nav-container" class="nav-container">

      <li><a class="item-primary" href="#">HOME</a>
         </li>
   
      <li><span class="divider divider-vert" ></span></li>
      <li><a class="item-primary" href="#">Products</a>
   
         <ul style="width:150px;">
         <li><a href="#">SoftwarePlus</a></li>
         <li><a href="#">MagicDriver</a></li>

         <li><a href="#">GreatFX</a></li>
         <li><a href="#">SampleSoft</a></li>
         <li><a href="#">UnDoIt</a></li>
         <li><a href="#">100% CSS Menu</a></li>
         <li><a href="#;">With Cross-Browser</a></li>
         <li><a href="#;">Dropdowns</a></li>

         <li><a href="#;">Absolutely NO Javascript</a></li>
         <li><a href="#;">Being Used On</a></li>
         <li><a href="#;">These Menus</a></li>
         <li><span class="divider divider-horiz" ></span></li>
         <li><a href="#;">Example Of a Divider</a></li>
         <li><a href="#;">With No Title</a></li>

         </ul></li>
   
      <li><span class="divider divider-vert" ></span></li>
      <li><a class="item-primary" href="#">Quality</a>
   
         <ul style="width:150px;">
         <li><a href="#">SoftwarePlus</a></li>
         <li><a href="#">MagicDriver</a></li>
         <li><a href="#">GreatFX</a></li>

         <li><a href="#">SampleSoft</a></li>
         <li><a href="#">UnDoIt</a></li>
         <li><a href="#">100% CSS Menu</a></li>
         <li><a href="#;">With Cross-Browser</a></li>
         <li><a href="#;">Dropdowns</a></li>
         <li><a href="#;">Absolutely NO Javascript</a></li>

         <li><a href="#;">Being Used On</a></li>
         <li><a href="#;">These Menus</a></li>
         <li><span class="divider divider-horiz" ></span></li>
         <li><a href="#;">Example Of a Divider</a></li>
         <li><a href="#;">With No Title</a></li>
         </ul></li>
   
      <li><span class="divider divider-vert" ></span></li>

      <li><a class="item-primary" href="#">Services</a>
   
         <ul style="width:150px;">
         <li><span class="item-secondary-title" >Title For Links</span></li>
         <li><a href="#">These Links Still Appear</a></li>
         <li><a href="#">Just Like The Others</a></li>
         <li><a href="#">Even When Under A Title</a></li>

         <li><span class="divider divider-horiz" ></span></li>
         <li><span class="item-secondary-title" >Title After Divider</span></li>
         <li><a href="#">Once Again...</a></li>
         <li><a href="#">These Links Still Appear</a></li>
         <li><a href="#">Just Like The Others</a></li>
         <li><a href="#">Even When Under A Title</a></li>

         </ul></li>
   
      <li><span class="divider divider-vert" ></span></li>
      <li><a class="item-primary" href="#;">Very Long Item</a>
   
         <ul style="width:150px;">
         <li><span class="item-secondary-title" >Title For Links</span></li>
         <li><a href="#">These Links Still Appear</a></li>
         <li><a href="#">Just Like The Others</a></li>

         <li><a href="#">Even When Under A Title</a></li>
         <li><span class="divider divider-horiz" ></span></li>
         <li><span class="item-secondary-title" >Title After Divider</span></li>
         <li><a href="#">Once Again...</a></li>
         <li><a href="#">These Links Still Appear</a></li>
         <li><a href="#">Just Like The Others</a></li>

         <li><a href="#">Even When Under A Title</a></li>
         </ul></li>
         
       <li><span class="divider divider-vert" ></span></li>
      <li><a class="item-primary" href="#;">Fully Flexible</a>
   
         <ul style="width:150px;">
         <li><span class="item-secondary-title" >Title For Links</span></li>
         <li><a href="#">These Links Still Appear</a></li>

         <li><a href="#">Just Like The Others</a></li>
         <li><a href="#">Even When Under A Title</a></li>
         <li><span class="divider divider-horiz" ></span></li>
         <li><span class="item-secondary-title" >Title After Divider</span></li>
         <li><a href="#">Once Again...</a></li>
         <li><a href="#">These Links Still Appear</a></li>

         <li><a href="#">Just Like The Others</a></li>
         <li><a href="#">Even When Under A Title</a></li>
         </ul></li>
   <li class="clear">&nbsp;</li></ul>
</div>
</body>
</html>


Codigo en Css Sin Style Tags:

background-repeat: no-repeat;
background-position: center;
}

/*^'^ Secondary Items Container ^'^*/   
#nav-container div, #nav-container ul{   
padding:10px 4px 10px 4px;
margin:0px 0px 0px 0px;
background: url(http://i39.tinypic.com/t056wg.jpg);
background-repeat: repeat-x;
background-color: #FF9900;
border-bottom: 1px solid #CA6500;
}

/*^'^ Secondary Items ^'^*/   
#nav-container div a, #nav-container ul a{   
padding:3px 10px 3px 6px;
background-color: #FFFFFF;
background: url(http://i42.tinypic.com/153b4h2.jpg);
background-repeat: no-repeat;
background-position: 0px 22px;
font-size:11px;
border-width:0px;
border-style:none;
margin: 0px 0px 0px 0px;
width: 149px;
}

/*^'^ Secondary Items Hover State ^'^*/   
#nav-container div a:hover, #nav-container ul a:hover{   
background-color: #FFFFFF;
background: url(http://i41.tinypic.com/2ic06xx.gif);
background-repeat: no-repeat;
color:#CC0000;
}

/*^'^ Secondary Item Titles ^'^*/   
#nav-container .item-secondary-title{   
cursor:default;
padding:4px 0px 3px 7px;
color: #6C3600;
font-family: Arial, Trebuchet MS, Arial, sans-serif, Helvetica;
font-size:11px;
/* background: url(http://i42.tinypic.com/35kk6l0.jpg); */
background-repeat: no-repeat;
font-weight:bold;
}

/*^'^ Horizontal Dividers ^'^*/   
#nav-container .divider-horiz{   
border-top-width:1px;
margin:5px 5px;
border-color: #C16100;
}

/*^'^ Vertical Dividers ^'^*/   
#nav-container .divider-vert{   
border-left-width:1px;
height:15px;
margin:4px 2px 0px 2px;
border-color:#AAAAAA;








Menu css editable

Texto por encima de la pagina:

<script type="text/javascript" src="http://www.fileden.com/files/2008/6/10/1953689/chrome.txt"></script>
<script type="text/javascript" src="http://www.fileden.com/files/2008/6/10/1953689/jquery.txt
"></script>
<script type="text/javascript" src="http://www.fileden.com/files/2008/6/10/1953689/jquery.bgpos.txt"></script>
<style>
#MainMenu
{
height:37px;
background:#FFF;
border:0;
margin:0;
}
#tab
{
top:0;
height:0;
background:repeat-x top;
margin:0;
}
#tab ul
{
list-style:none;
float:left;
margin:0;
padding:0;
}
#tab li
{
display:inline;
float:left;
margin:0;
padding:0;
}
#tab a
{
background:url(http://img14.imageshack.us/img14/611/bright109.gif) no-repeat right top;
text-decoration:none;
border:0;
display:block;
float:left;
margin:0;
padding:0;
}
#tab a span
{
display:block;
background:url(http://img394.imageshack.us/img394/5919/bleft109r.gif) no-repeat left top;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#FFF;
font-weight:700;
line-height:37px;
padding:0 25px;
}
#tab a:hover,#tab li.item_active a
{
background-position:right bottom;
}
#tab a:hover span,#tab li.item_active a span
{
background-position:left bottom;
color:#000;
font-weight:700;
font-style:normal;
text-decoration:none;
}
.dropmenudiv
{
position:absolute;
top:0;
float:left;
display:block;
visibility:hidden;
border:0;
background:#FFF;
color:#FFF;
z-index:100;
text-decoration:none;
padding:0;
}
.dropmenudiv ul
{
list-style:none;
margin:0;
padding:0;
}
.dropmenudiv li
{
display:inline;
margin:0;
padding:0;
}
.dropmenudiv a:link,.dropmenudiv a:visited
{
width:180px;
display:block;
border:0;
color:#FFF;
background:url(http://img394.imageshack.us/img394/5919/bleft109r.gif) no-repeat left top;
font-weight:700;
font-style:normal;
text-decoration:none;
margin:0;
padding:0;
}
.dropmenudiv a span
{
display:block;
line-height:37px;
background:url(http://img14.imageshack.us/img14/611/bright109.gif) no-repeat right top;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#FFF;
float:none;
padding:0 25px;
}
.dropmenudiv a:hover
{
border:0;
background-position:left bottom;
font-weight:700;
font-style:normal;
text-decoration:none;
color:#000;
}
.dropmenudiv a:hover span
{
background-position:right bottom;
color:#000;
font-weight:700;
}

</style>




Donde quieras ubicar el menu:

<div id="MainMenu">
<div id="tab">
<ul>
<li><a href="link"><span>texto</span></a></li>
<li><a href="link"><span>texto</span></a></li>
<li><a href="link"><span>texto</span></a></li>
</ul>
</div>
</div>







Menu Horizontal:

Texto por encima:

<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
   
.animatedtabs{
border-bottom: 1px solid gray;
overflow: hidden;
width: 100%;
font-size: 14px; /*font of menu text*/
}


.animatedtabs ul{
list-style-type: none;
margin: 0;
margin-left: 10px; /*offset of first tab relative to page left edge*/
padding: 0;
}

.animatedtabs li{
float: left;
margin: 0;
padding: 0;
}

.animatedtabs a{
float: left;
position: relative;
top: 5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */
background: url(http://www.dynamicdrive.com/cssexamples/media/tab-blue-right.gif) no-repeat left top;
margin: 0;
margin-right: 3px; /*Spacing between each tab*/
padding: 0 0 0 9px;
text-decoration: none;

}

.animatedtabs a span{
float: left;
position: relative;
display: block;
background: url(http://www.dynamicdrive.com/cssexamples/media/tab-blue-right.gif) no-repeat right top;
padding: 5px 14px 3px 5px; /* 2) Padding within each tab. The 3rd value, or 3px, should equal (1) MINUS (3) */
font-weight: bold;
color: black;
}

/* Commented Backslash Hack hides rule from IE5-Mac */
.animatedtabs a span {float:none;}
/* End IE5-Mac hack */


.animatedtabs .selected a{
background-position: 0 -125px;
top: 0;
}

.animatedtabs .selected a span{
background-position: 100% -125px;
color: black;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}

.animatedtabs a:hover{
background-position: 0% -125px;
top: 0;
}

.animatedtabs a:hover span{
background-position: 100% -125px;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}

</style>



Donde qquieras poner el menu:

<div class="animatedtabs">
<div style="position:absolute;left:6px;top:1300px;">
<ul>
<li>
<a href="LINK! " title="Home"><span>Menu </span></a></li>
<li class="selected">
<a href="LINK! /" title="CSS Examples"><span>Menu</span></a></li>
<li>
<a href="LINK! " title="New"><span>Menu</span></a></li>
<li>
<a href="LINK! " title="Revised"><span>Menu</span></a></li>
<li>
<a href="LINK! " title="Tools"><span>Menu</span></a></li>   
<li>
<a href="LINK! " title="DHTML Forums"><span>Menu</span></a></li>
</ul>
</div>


 
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis