Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    1,610

    background color non viene eredita da netscape!

    Salve vorrei sapere per questo codice:

    <DIV style="width:400px;clear:both;background-color:#666666;">
    <DIV style="font-size:14px;width:100px;float:left;color:inherit;tex t-align:center;">
    XXX
    </DIV>
    </DIV>

    Su netscape mi produce un testo senza colore di sfondo ?

    e se invece forza inherit così

    <DIV style="width:400px;clear:both;background-color:#666666;">
    <DIV style="background-color:inherit;font-size:14px;width:100px;float:left;color:inherit;tex t-align:center;">
    XXX
    </DIV>
    </DIV>

    Si
    Avendo un div padre non dovrebbe prendere quelle impostazioni ?
    R.

  2. #2
    Prova cosi:

    Codice PHP:
    .first_class{
       
    width:400px;
       
    clear:both;
       
    background:#666
       
    }
    .
    second_class{
       
    width:100px;
       
    float:left;
       
    font-size:14px;
       
    text-align:center
       

    Codice PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">

    <
    head>   
       <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
           
       <
    title>test css netscape</title>
           
       <
    link rel="stylesheet" type="text/css" href="style.css"/>   
    </
    head>

    <
    body>

       <
    div class="first_class">
             <
    div class="second_class">
                   

    xxx</p>
             </
    div>
       </
    div>
       
    </
    body>

    </
    html

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 © 2026 vBulletin Solutions, Inc. All rights reserved.