Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2009, 03:57
Avatar de David_dfd
David_dfd
 
Fecha de Ingreso: febrero-2005
Ubicación: Tenerife
Mensajes: 311
Antigüedad: 19 años, 2 meses
Puntos: 2
Respuesta: Categorias y subcategorias.

Muchas gracias por tu respuesta.

Mi themes crea la lista de la siguiente forma:

Código PHP:
<div class="SR">
 <
div class="SRL">
 <
div class="Categories">
   <
h2><strong>Categories</strong></h2>
   <
ul>
        <
li class="cat-item cat-item-1"><a href="" title="">Principal 1</a></li>
    <
li class="cat-item cat-item-14"><a href="" title="">Principal 2</a>

<
ul class='children'>
    <
li class="cat-item cat-item-25"><a href="">Sub 1</a></li>
    <
li class="cat-item cat-item-6"><a href="">Sub 2</a></li>
</
ul>
        <
li class="cat-item cat-item-X"><a href="" title="">Principal 3</a></li>
   </
ul>
   </
div
El codigo que usa en el css para dar forma es este:

Código PHP:
/* Right Column */
.SR floatrightwidth369pxmargin-left21pxpadding-bottom4pxbackground#eaf4ff url(./images/SRBkg.gif) no-repeat left bottom;}
.SR h2 font-size14pxletter-spacing: -1pxpadding5px 0pxmargin0pxborder-bottomsolid 1px #d4e3f4; color:#323740;}
.SR ul padding0pxmargin0px;}
.
SR li padding0pxmargin0px; list-style-typenone;}
.
SR li a padding2px 0px 3px 8pxcolor#003366; text-decoration: none; border-bottom: solid 1px #d4e3f4; background: url(images/CategIco.png) no-repeat left top; width: 152px; display: block;}  
.SR li a:visited color#003366; text-decoration: none; border-bottom: solid 1px #d4e3f4;} 
.SR li a:hover text-decorationunderlinecolor#000033; border-bottom: solid 1px #d4e3f4;} 

/* Right - First Column */
.SR .SRL floatleftwidth160pxpadding15px 0px 15px 15pxmargin-right11pxbackground:  url(./images/SRLBkg.gifno-repeat left top;}

/* Right - Second Column */
.SR .SRR floatrightwidth170pxpadding15px 10px 15px 0pxbackgroundurl(./images/SRRBkg.gifno-repeat right top;}
 
 
.
Categories margin-bottom20px;}
.
Links margin-bottom20px;}
.
Archives margin-bottom20px;}
.
Meta {}
.
Calendar {}
.
Calendar caption background#d4e3f4; padding: 5px 0px;}
.Calendar table width170pxbordersolid 1px #d4e3f4;}
.Calendar table th text-aligncenterletter-spacing: -1pxborder-bottomsolid 1px #d4e3f4; padding: 3px 0px;}
.Calendar table td text-aligncenterpadding3px 0pxfont-size11px;} 
Segun creo entender deberia añadir algo como:

Código PHP:
ul ul.children {
    
padding-left0;
    
padding-right4px;

Pero no se cual es el codigo añadir para que los ul con la etiqueta "children" tengan la funcion "padding-right: 4px;".

¿Me podeis ayudar? Muchas gracias