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

    [CSS] errore di sintassi?non riconosce gli attributi

    codice:
    <html><head>
    <style type="text/css">
    .text {
      font-family: Book Antiqua;
      font-size: 14px;		
      background-color: black;	    
      border: 2px outset gray;
    
    }
    </style>
    </head>
    <body>
    <input type="text" class="text" name="av" value="prova" maxlength="52" size="60%">
    </body>
    </html>
    Il carattere mi cambia ma tutto il resto no...why?
    Thanks
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    Utente di HTML.it L'avatar di floyd46
    Registrato dal
    Feb 2002
    residenza
    Apulia
    Messaggi
    2,641

    Re: [CSS] errore di sintassi?non riconosce gli attributi

    ciao
    prova a scrivere:

    font-family: "Book Antiqua";

    ciao
    "Le persone che realizzano layout con tabelle annidate, spacer gif o che ignorano l'accessibilità non possono più definirsi professionisti." Andy Clarke
    --------------------------------

    www.extrowebsite.com

  3. #3
    forse de metti il finestyle (</style>)
    va meglio?
    Colleziono problemi matematici divertenti o strani e li raccolgo nel mio sito. Se me ne mandate qualcuno vi ringrazio. flan

  4. #4
    codice:
    Non funziona cmq...posto per intero tutta la pagina.
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    .text {
      font-family: "Book Antiqua";  			// tipo carattere
      font-size: 30px;			// dimensione carattere
      background-color: black;	        // colore sfondo
      border: 2px outset gray;		// tipologia bordo di colore arancione
    
    }
    
    .textarea {
      font-family: "Book Antiqua";			// tipo carattere
      font-size: 14px;			// dimensione carattere
      border: 1px outset gray;		// tipologia bordo di colore arancione
      background-color: #FFFFFF;	        // colore sfondo
    }
    
    .button {
      font-family: "Book Antiqua";			// tipo carattere
      color: #FFFFFF;		        // colore carattere
      font-size: 14px;			//dimensione carattere
      background-color: #FFFFFF;	        // colore sfondo
      border: 1px solid #CCCC00;            // tipologia bordo di colore giallo
    }
    
    </style>
    
    <STYLE type="text/css">
    BODY {
    scrollbar-face-color:#000000;
    scrollbar-highlight-color:#000000;
    scrollbar-3dlight-color:#000000;
    scrollbar-darkshadow-color:#000000;
    scrollbar-shadow-color:#000000;
    scrollbar-arrow-color:#FFFFFF;
    scrollbar-track-color:#000000;
    }
    </STYLE>
    </head>
    <body bgcolor="#000000" text="#FFFFFF">
    
    <hr>
    <center>
      <font size="4"> 
      Zenone  </font> 
    </center>
    <hr>
    
    <center>
    
    
      <form name="form1" method="post" action="s_mod.php">
        <table width="80%" border="0">
          <tr> 
            <td width="36%"> 
              <center>
                Avatar: 
              </center>
            </td>
            <td width="64%">
              <input type="text" class="text" name="avatar" value="" maxlength="52" size="60%" >
            </td>
          </tr>
          <tr> 
            <td width="36%"> 
              <center>
                Descrizione: 
              </center>
            </td>
            <td width="64%"> 
              <textarea class="textarea" name="descrizione" rows="3" cols="60%">be</textarea>
            </td>
          </tr>
          <tr> 
            <td width="36%">
              <center>
                Storia: 
              </center>
              </td>
            <td width="64%"> 
              <textarea class="textarea" name="storia" rows="3" cols="60%">vo</textarea>
            </td>
          </tr>
          <tr> 
            <td width="36%"> 
              <center>
                Note:
              </center>
            </td>
            <td width="64%"> 
              <textarea class="textarea" name="amici" rows="3" cols="60%">blabla</textarea>
            </td>
          </tr>
          <tr>
            <td width="36%"><center>
                E-mail
    </center></td>
            <td width="64%">
              <input type="text" class="text" name="avatar2" value="@hotmail.com" maxlength="52" size="60%" >
            </td>
          </tr>
        </table>
        
    
    
        <input type="submit" name="invia" value="Invia le Modifiche">
      </form>
      
      
    </center>
    </body>
    </html>
    In generale se metto degli stili ad una pagina con i frame gli attributi vengono ereditati anche dalle altre pagine all'interno dei frame?
    Grazie
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  5. #5
    Ma davvero hai messo quei "commenti"?
    Toglili!
    Colleziono problemi matematici divertenti o strani e li raccolgo nel mio sito. Se me ne mandate qualcuno vi ringrazio. flan

  6. #6
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    i commenti in css sono

    codice:
    /* commento */
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  7. #7
    Era solo un copia/incolla dalla PILLOLA di html.it

    ora ho tolto il font-family e funziona
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

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.