Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    mettere il menu css al centro

    salve ecco il codice del mio menu ma mi sta tutto sulla sinistra come posso centrarlo

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Free CSS Navigation Menu Designs 1 at exploding-boy.com</title>
    <style type="text/css">
    <!--
    body {
    margin:0;
    padding:0;
    font: bold 11px/1.5em Verdana;
    }

    h2 {
    font: bold 14px Verdana, Arial, Helvetica, sans-serif;
    color: #000;
    margin: 0px;
    padding: 0px 0px 0px 15px;
    }

    /*- Menu Tabs H--------------------------- */

    #tabsH {
    float:left;
    width:100%;
    background:#000;
    font-size:93%;
    line-height:normal;
    }
    #tabsH ul {
    margin:0;
    padding:10px 10px 0 50px;
    list-style:none;
    }
    #tabsH li {
    display:inline;
    margin:0;
    padding:0;
    }
    #tabsH a {
    float:left;
    background:url("tableftH.gif") no-repeat left top;
    margin:0;
    padding:0 0 0 4px;
    text-decoration:none;
    }
    #tabsH a span {
    float:left;
    display:block;
    background:url("tabrightH.gif") no-repeat right top;
    padding:5px 15px 4px 6px;
    color:#FFF;
    }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabsH a span {float:none;}
    /* End IE5-Mac hack */
    #tabsH a:hover span {
    color:#FFF;
    }
    #tabsH a:hover {
    background-position:0% -42px;
    }
    #tabsH a:hover span {
    background-position:100% -42px;
    }

    #tabsH #current a {
    background-position:0% -42px;
    }
    #tabsH #current a span {
    background-position:100% -42px;
    }
    -->
    </style>
    </head>

    <body>
    <h2>Tab Menu H</h2>
    <div id="tabsH">
    <ul>
    [*]<span>Home</span>[*]<span>Chi Sono</span>[*]<span>contattami</span>[*]<span>Pazienti Trattati</span>[*]<span>Visita Posturale</span>
    [/list]
    </div>
    </body>
    </html>

  2. #2
    Allinerare il testo: Text-align

    La proprietà serve a impostare l'allineamento del testo. E' ereditata e si applica a tutti gli elementi.

    Sintassi

    codice:
    selettore { text-align: <valore>; }

    Valori

    left. Allinea il testo a sinistra
    right. Allinea il testo a destra
    center. Centra il testo
    justify. Giustifica il testo

  3. #3
    grazie mille ma me la puoi inserire sul codice sopra e cosi la copio sulla pagina web

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.