Ver Mensaje Individual
  #7 (permalink)  
Antiguo 26/06/2009, 08:16
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: Alinear un texto a derecha y otro a izquierda dentro de <li>

Podrías aplicar el contador también a las filas de la tabla, pero si quieres seguir adelante con la idea de presentarlos como una lista numerada, quizás esto te sirva como base:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
  3. <title>listas numeradas</title>
  4. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  5. <style type="text/css">
  6. * {margin:0;padding:0; position: relative;}
  7. html, body {height: 100%;}
  8. #contenedor {width:948px;;
  9. padding:10px;
  10. margin: 0 auto;
  11. background: red;
  12. overflow: hidden;
  13. }
  14. .sidebar_box {
  15. background:#cdcdc;
  16. padding:10px 10px 10px 10px;
  17. margin-bottom:20px;
  18. }
  19. .lista-clasificacion{
  20.     margin:0px;
  21.     padding: 0px;
  22.     margin-top:.5em;
  23. }
  24.  
  25. .lista-clasificacion li{
  26.   list-style-position: inside;
  27.  
  28. }
  29.  
  30. .lista-clasificacion li span{display: inline-block;
  31.   width: 250px;
  32.   border-bottom:1px dotted #444444;
  33.   line-height: 2em;
  34.   }
  35. </head>
  36. <div id="contenedor">
  37. <div class="sidebar_box">
  38. <ol class="lista-clasificacion">
  39.         <li><span>Pepe Ramírez</span><span>15 puntos</span></li>
  40.         <li><span>José Martínez</span><span>5 puntos</span></li>
  41.         <li><span>Pepe Juan</span><span>1 punto</span></li>
  42. </ol></div>
  43. </div>
  44. </body>
  45. </html>

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++