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

    da html a xhtml, eco come è cambiata la mia home page

    da oggi stavo lavorando un po' sul mio sito per adattarlo agli standard xhtml, però ho notato che, mentre su explorer la visualizzazzione della stessa nn è cambiata minimamente su firefox i bordi delle tabelle hanno cambiato aspetto

    questa è la dichiarazione delle dtd (anche se nn so a quanto serva):


    codice:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
    come posso fare ad avere gli stessi bordi su entrambi i broawser??
    Immagini allegate Immagini allegate

  2. #2
    prova a togliere la dichiarazione xml (<?xml version="1.0"?>)
    IE va in quirk mode appena la vede

  3. #3
    no, il punto è che vorrei che si vedesse come in explorer e nn come in firefox firefox è quello a sinistra, explorer a destra.

  4. #4
    devi postare il link alla pagina perche guardando lo screenshot non si puo capire come hai fatto il codice.

  5. #5
    il foglio stile:
    codice:
    body{
    background: #f0f0f0;
    }
    
    table{
    background: #e6e6e6;
    border-width:1px;
    height:480px;
    }
    
    a:link{color:#000000;
           text-decoration:none;}
    a:visited{color:#000000;
              text-decoration:none;}
    a:hover{color:#FFFFFF;
            text-decoration:none;}
    a:active {color:#000000;
              text-decoration:none;}
    
    #tabsx{margin-left: 110px;
           margin-top: 10px;
    
    }
    #alt{margin-left: 110px;
         width:770px;
    border-width:1px;
    height:80px;}
    #tabdx{margin-left:310px;
    
    }
    
    .titolo{
    height:20px; 
    color:green;
    border-collapse: collapse;        
    background:#fcfcfc;
    border-width:1px;
    border-style:outset;
    border-color:#d2d2d2;
    width:95%;
    text-align:center;
    }
    la pagina:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
      <head>
        <title>Home</title>
        
        <meta http-equiv="Content-Type" content="text/xhtml; charset=ISO-8859-1" />
        <meta content="Home Page - CSI WORLD" name="description"  />
        <meta content="grissom csi CSI C.S.I c.s.i miami horatio gill las vegas" name="keywords"  />
        <meta http-equiv="Content-Language" content="it"  />
        <link rel="stylesheet" href="stile.css" type="text/css"  />
      </head>
      <body>
        
          <table cellspacing="0" border="1" cellpadding="0" id="alt">
          <tr>
            <td colspan="5">
              <p align="center">
              <font size="6">CSI WORLD</font>
              </p>
            </td>
          </tr>
          <tr>
            <th width="156">
              Personaggi
            </th>
            <th width="156">
              Episodi
            </th>
            <th width="156">
              Photogallery
            </th>
            <th width="156">
              Forum
            </th>
            <th width="156">
              Chi siamo
            </th>
          </tr>
        </table>	
        	
    <div id="tabsx">
        <table  cellspacing="0" cellpadding="0" width="190" border="1" align="left">
          <tr>
            <td valign="top">
              
    
             <table class="titolo" align="center" >
               <tr>
    	     <td> NEWS
    </td>
               </tr>
             </table>
    	 24/01/05
                 <ul type="circle">[*]bla bla bla
    
    
    
    
    
    
    [/list]
              <hr />
         <table class="titolo" align="center" >
          <tr><td>LINKS
    </td></tr>
    		 </table>
    
    
    
    
            </td>
          </tr>
        </table>
    </div>
    <div id="tabdx">
        <table  cellspacing="0" cellpadding="0" width="570" border="1" align="left">
          <tr>
            <td valign="top"></td>
          </tr>
        </table>
       </div>
      </body>
    </html>
    in questo modo il validatore del w3c mi da l'home come valida per l'xhtml transitional e anche i css sono apposto.

    però rimane ilfatto che la visualizzazione dei bordi varia da IE a Firefox.

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.