1 reply [Last post]
gtbgmaniak
gtbgmaniak's picture
Offline
Regular
Mexico
Last seen: 10 years 13 weeks ago
Mexico
Timezone: GMT-5
Joined: 2009-01-13
Posts: 12
Points: 5

Hello, I'm building a Services section navigation on a site and I want to make it optimized so I'm using nested lists instead of separating them, but it causes some visual problems which I'm having some hard time fixing.

One of the problems is the MERCADOTECNIA CONVENCIONAL positioning which is having some problems being fixed, besides even using clearfix my main layout doesn't extend and I'm not using any floats :S

This is the CSS code for the first

    and the sublist

    .serviciosmenu
    {
    	width: 400px;
    	padding: 13px 0px 0px 15px;
    	float: left;
    	min-height: 300px;
    	z-index: 1;
    }
     
    .serviciosmenu ol
    {
    	list-style: none;
    	text-align: center;
    	display: block;
    	margin: 0 auto;
    	padding: 0;
    	position: relative;
    	height: 53px;
    	z-index: 101;
    	text-align: center;
    }
     
    	.serviciosmenu ol li
    	{
    		height: 53px;
    		width: 195px;
    		display: inline-block;
    		margin: 0;
    		padding: 0;
    	}
     
    		.serviciosmenu ol li:nth-child(even)
    		{
    			margin-left: 5px;
    		}
     
    		.serviciosmenu ol li a
    		{
    			font-family: 'ChampagneLimousines', 'Lucida Sans Unicode', sans-serif;
    			font-size: 11pt;
    			font-weight: normal;
    			font-style: normal;
    			line-height: 13pt;
    			color: #ffffff;
    			text-decoration: none;
    			text-transform: uppercase;
    			padding: 9px 7px 7px;
    			margin-top: 3px;
    			display: block;
    			text-shadow: 0px 0px 1px #ffffff;
    			transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
    			-moz-transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
    			-o-transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
    			-webkit-transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
    			-ms-transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
    		}
     
    			.serviciosmenu ol li a:hover, .serviciosmenu ol li a:active, .serviciosmenu ol li a:focus, .serviciosmenu ol li a.active
    			{
    				color: #000000;
    				background-color: #ffffff;
    				text-shadow: 0px 0px 1px #abcdef;
    				border-top: solid 1px #92d335;
    				border-radius: 5px;
    				border-bottom-left-radius: 0;
    				border-bottom-right-radius: 0;
    				padding-top: 8px;
    				font-weight: normal;
    				font-style: normal;
    			}
     
    			.serviciosmenu ol li:nth-child(even) a:hover, .serviciosmenu ol li:nth-child(even) a:focus, .serviciosmenu ol li:nth-child(even) a:active, .serviciosmenu ol li:nth-child(even) a.active
    			{
    				border-top: solid 1px #e2218e;
    			}
     
    	.serviciosmenu ol li ul.serviciossubmenu
    	{
    		list-style: none;
    		margin: -10px 0 0;
    		text-align: center;
    		display: block;
    		padding: 0;
    		width: 400px;
    	}
     
    	.serviciosmenu ol li ul.serviciossubmenu li
    	{
    		width: 400px;
    		margin: 25px 0;
    		display: inline-block;
    	}
     
    	.serviciosmenu ol li ul.serviciossubmenu li a
    	{
    		border-radius: 8px;
    		border: solid 1px #f0f0f0;
    		padding: 0px 15px 0px 99px;
    		font-family: 'ChampagneLimousines', 'Lucida Sans Unicode', sans-serif;
    		font-size: 14pt;
    		font-weight: bold;
    		font-style: normal;
    		text-decoration: none;
    		text-transform: uppercase;
    		display: block;
    		text-shadow: 0px 0px 1px #abcdef;
    		line-height: 84px;
    		transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    		-webkit-transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    		-moz-transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    		-o-transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    		-ms-transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    		color: #000000;
    	}
     
    		.serviciosmenu ol li ul.serviciossubmenu li:nth-child(even) a
    		{
    			padding: 0px 99px 0px 15px;
    		}
     
    		.serviciosmenu ol li ul.serviciossubmenu li:nth-child(odd) a:hover,.serviciosmenu ol li ul.serviciossubmenu li:nth-child(odd) a:focus, .serviciosmenu ol li ul.serviciossubmenu li:nth-child(odd) a:active, .serviciosmenu ol li ul.serviciossubmenu li:nth-child(odd) a.active
    		{
    			box-shadow: 0px 0px 10px #92D335;
    			color: #92d335;
    			border-top: none;
    		}
     
    		.serviciosmenu ol li ul.serviciossubmenu li:nth-child(even) a:hover, .serviciosmenu ol li ul.serviciossubmenu li:nth-child(even) a:focus, .serviciosmenu ol li ul.serviciossubmenu li:nth-child(even) a:active, .serviciosmenu ol li ul.serviciossubmenu li:nth-child(even) a.active
    		{
    			box-shadow: 0px 0px 10px #E2218E;
    			border-top: none;
    		}

    The HTML code for the menu is

    <ol>
            <li><a href="servicios/mercadotecnia-digital/" class="active">Mercadotecnia Digital</a>
          	  <ul class="serviciossubmenu"> 
                <li><a href="servicios/mercadotecnia-digital/desarrollo-web/" id="desarrollo-web">Desarrollo Web</a></li> 
                <li><a href="servicios/mercadotecnia-digital/posicionamiento-web/" id="posicionamiento-web">Posicionamiento Web</a></li> 
                <li><a href="servicios/mercadotecnia-digital/pago-por-clic/" id="pago-por-clic">Pago Por Clic</a></li> 
                <li><a href="servicios/mercadotecnia-digital/redes-sociales/" id="redes-sociales">Redes Sociales</a></li> 
                <li><a href="servicios/mercadotecnia-digital/aplicaciones-moviles/" id="aplicaciones-moviles">Aplicaciones Móviles</a></li> 
              </ul>
            </li>
            <li><a href="servicios/mercadotecnia-convencional/">Mercadotecnia Convencional</a></li>
          </ol>

    The links are not working yet, so you'll only be able to see the idea. The example is Test Link

    gtbgmaniak
    gtbgmaniak's picture
    Offline
    Regular
    Mexico
    Last seen: 10 years 13 weeks ago
    Mexico
    Timezone: GMT-5
    Joined: 2009-01-13
    Posts: 12
    Points: 5

    At the moment I have put it

    At the moment I have put it the way it was before, with separated lists, but I would like to know how could it be fixed?