Menú horizontal con subpestañas en dos columnas – Virtual – coche

Este menú pertenece a la plantillaJohny Joss, es unmenú horizontal en el que sussubpestañas se muestran en dos columnas y que además estáhecho con CSS, sin nada de scripts.

La "ventaja" por así decirlo, es que las subpestañas al acomodarse en dos columnas no quedan muy largas, así que se verán ordenadas y con menos espacio a lo largo. Puedes ver un ejemplo aquí mismo:



ATENCIÓN: Si usas una plantilla hecha a través del Diseñador de plantillas de Blogger primero necesitas seguir los pasos de esta entrada.

Para poner este menú entra en laEdición HTML y antes de/b:skin pega los estilos CSS:
/* Menú horizontal con subpestañas en dos columnas
----------------------------------------------- */
#toppic {
width:940px;/* Ancho del menú */
height:37px;
background-image: -moz-linear-gradient(top,#317FB8,#385D96);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00,#317FB8), color-stop(1.0,#385D96));
filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#317FB8,endColorStr=#385D96);
border-bottom:1px solid #002851;
border-top:1px solid #2f558b;
margin:0 auto;padding:0 auto;
overflow:hidden;
text-shadow:1px 1px 2px #002851;
}
#topwrapper {
width:940px;/* Ancho del menú */
height:40px;
margin:0 auto;
padding:0 auto;
}
.clearit {clear: both;height: 0;line-height: 0.0;font-size: 0;}
#top {width:100%;}
#top, #top ul {padding: 0;margin: 0;list-style: none;}
#top a {
border-right:1px solid #2f558b;
text-align:left;
display: block;
text-decoration: none;
padding:10px 12px 11px;
font:bold 14px Arial;
text-transform:none;
color:#eee;/* Color del texto de las pestañas */
}
#top a:hover {
background:#2f558b;/* Color de las pestañas al pasar el cursor */
color:#c5fa6f;/* Color del texto de las pestañas al pasar el cursor */
}
#top a.trigger {
/* Flecha */
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiip6PMkg4a6j5UM-ZtbtVM-mVReBui4hxYXi7vOWXazk5w11dabvazwnMLqnyHmEwMyE0MB606nBiED61K5sxX-aN6__VFJY-_lWQQ9ZQQloOk8dnD4LQsavBwkkbynuYgxZgMLDmUWpY/s1600/arrow_white.gif);
background-repeat: no-repeat;
padding: 10px 24px 11px 12px;
background-position: right center;
}
#top li {float: left;position: relative;}
#top li {position: static !important; width: auto;}
#top li ul, #top ul li {width:300px;} /* Ancho del contenedor de las subpestañas */
#top ul li a {
text-align:left;
padding: 6px 15px;
font-size:13px;
font-weight:normal;
text-transform:none;
font-family:Arial, sans-serif;
border:none;
}
#top li ul {
z-index:100;
position: absolute;
display: none;
background-color:#1a3352;/* Color de fondo del contenedor de las subpestañas */
margin-left:-80px;
padding:10px 0;
border-radius: 0px 0px 6px 6px;
box-shadow:0 2px 2px rgba(0,0,0,0.6);
filter:alpha(opacity=87);
opacity:.87;
}
#top li ul li {
width:150px; /* Ancho de cada subpestaña */
float:left;
margin:0;
padding:0;
}
#top li:hover ul, #top li.hvr ul {display: block;}
#top li:hover ul a, #top li.hvr ul a {
color:#ddd;/* Color del texto de los submenús */
background-color:transparent;
text-decoration:none;
}
#top ul a:hover {
text-decoration:underline!important;
color:#c5fa6f !important;/* Color del texto de los submenús al pasar el cursor */
}
Ahora entra enDiseño, y en un elementoHTML/Javascript pega la estructura del menú:
div id='toppic'
div id='topwrapper'
ul id='top'
lia href='URL del enlace'Pestaña 1/a/li
lia href='URL del enlace'Pestaña 2/a/li
lia class='trigger' href='#'Pestaña 3/a
ul
lia href='URL del enlace'Pestaña 3.1/a/li
lia href='URL del enlace'Pestaña 3.2/a/li
lia href='URL del enlace'Pestaña 3.3/a/li
lia href='URL del enlace'Pestaña 3.4/a/li
lia href='URL del enlace'Pestaña 3.5/a/li
lia href='URL del enlace'Pestaña 3.6/a/li
/ul
/li
lia class='trigger' href='#'Pestaña 4/a
ul
lia href='URL del enlace'Pestaña 4.1/a/li
lia href='URL del enlace'Pestaña 4.2/a/li
lia href='URL del enlace'Pestaña 4.3/a/li
lia href='URL del enlace'Pestaña 4.4/a/li
lia href='URL del enlace'Pestaña 4.5/a/li
lia href='URL del enlace'Pestaña 4.6/a/li
/ul
/li
lia class='trigger' href='#'Pestaña 5/a
ul
lia href='URL del enlace'Pestaña 5.1/a/li
lia href='URL del enlace'Pestaña 5.2/a/li
lia href='URL del enlace'Pestaña 5.3/a/li
lia href='URL del enlace'Pestaña 5.4/a/li
lia href='URL del enlace'Pestaña 5.5/a/li
lia href='URL del enlace'Pestaña 5.6/a/li
lia href='URL del enlace'Pestaña 5.7/a/li
lia href='URL del enlace'Pestaña 5.8/a/li
/ul
/li
lia href='URL del enlace'Pestaña 6/a/li

/ul
br class='clearit'/
/div
/div
Cambia las URLs de los enlaces y de las pestañas donde se indica.

Si quisieras agregar más pestañas entonces añade antes del/ul en color azul una línea como esta:
lia href='URL del enlace'Otra pestaña/a/li
Y si quisieras agregar una pestaña con subpestañas entonces agrega esto:
lia class='trigger' href='#'Otra pestaña/a
ul
lia href='URL del enlace'Pestaña 1.1/a/li
lia href='URL del enlace'Pestaña 1.2/a/li
lia href='URL del enlace'Pestaña 1.3/a/li
lia href='URL del enlace'Pestaña 1.4/a/li
lia href='URL del enlace'Pestaña 1.5/a/li
lia href='URL del enlace'Pestaña 1.6/a/li
/ul
/li
En el primer código verás en las anotaciones en color verde el área de lo que se puede personalizar.
El color de fondo está hecho con gradientes CSS,#317FB8 es el color más claro y#385D96 el color más oscuro.
Si quisieras que las subpestañas se muestren en columnas de 3 entonces cambia el valor del
/* Ancho del contenedor de las subpestañas */ por 450px

Cada pestaña tiene un ancho de 150px (ver la anotación en verde), por lo que si quisieras hacerlo más ancho tendrás que cambiar también el ancho del contenedor de las subpestañas, de lo contrario se mostrarán en una columna nada más.

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLAND

asterisk call center software boulder personal injury lawyers WordPress themes for designers Online Classes Psd to html Forensics Online Course mesotheloma Hire php programmers Live casino Email bulk service Best Criminal Lawyers in Arizona Mobile casino CHEAP CAR INSURANCE IN VIRGINIA Best criminal lawyer in Arizona Criminal lawyer integrated ehr Online casino Sell Annuity Payment VIRTUAL DATA ROOMS Business finance group Custom WordPress theme designer Royalty Free Images Stock mesotheliama DONATE OLD CARS TO CHARITY Donate Your Car Sacramento washington mesothelioma attorney Learning adobe illustrator Psychic for free mesothelioma lawyer california best criminal lawyer in arizona ANNUITY SETTLEMENT MASSAGE SCHOOL DALLAS TEXAS Html email Casino dallas mesothelioma lawyer caraccidentlawyer Donate Car To Charity CALIFORNIA DUI lawyer Tech school Mortgage Adviser structured settlement brokers mesothelioma settlement amounts Dwi lawyer Donate Cars in MA register free domains Make money online Australia Donate Your Car for Kids Social media campaigns google affiliate car insurance companies semi truck accident lawyers Hire php developer Dayton Freight Lines paperport promotional code Casino reviews DONATING A CAR IN MARYLAND PHD IN COUNSELING EDUCATION Psychic for Free motor insurance quotes royalty free images stock Cheap Car Insurance in Virginia Service business software event management security city college in miami Best Seo company state of california car insurance pharmacist jobs in chicago New social media platforms mesothelioma settlements amounts annuity payment Donate car to charity California Forex Trading Platform Hire php developers HOME PHONE INTERNET BUNDLE Computer science classes online truck accident attorney texas Annuity Settlements structured settlements companies online colledges Gas/Electricity Business management software Structures Annuity Settlement mesothelioma care ONLINE COLLEDGES att call conference benchmark lending Criminal defense lawyer structured settlement purchasers mortgage adviser Royalty free images stock webex costs mesothelioma law suits Php programmers for hire LIFE INSURANCE CO LINCOLN Italian cooking school How to Donate A Car in California BEST CRIMINAL LAWYER IN ARIZONA Bankruptcy lawyer Cheap Domain Registration Hosting WordPress hosting Donate Cars Illinois cash out annuity Car Donate Php programmers truck accident attorney los angeles asbestos mesothelioma lawsuit Seo companies DONATE YOUR CAR SACRAMENTO auto accident attorney Best social media platforms for business workplace accident attorney primary pulmonary hypertension earthlink business internet car donate PhD in counseling education

Share: