Visualizzazione risultati 1 fino 5 di 5

Discussione: problema tabelle & CSS

  1. #1
    Guest

    Predefinito problema tabelle & CSS

    Salve,
    ho un problema con un mio sito. Sto creando un nuovo layout e questa è un anteprima: http://allthelove.altervista.org/prova.php . Con IE funziona bene ma con firefox i margini del testo non funzionano..allora ho provato a diminuire la larghezza di tutta la tabella usando la percentuale 70% nella larghezza..ma niente...mentre in IE si vede sempre bene.. potete aiutarmi??

    questo è il css

    Codice:
    <style> 
    body 
    {background-color:#f0cccc; 
    background-image:url('images/sfondo.bmp');
    background-position: absolute; left:0px; 
    background-repeat: repeat;} 
    
    body, td 
    {font :10px Verdana, Geneva, Arial, Helvetica; 
    color :#000000; 
    text-align: right;
    
    } 
    
    .title {
    color: #ff0000;
    font: bold 11px Verdana;
    text-align: left;
    margin-right:50px;
    margin-left:150px;
    padding-top:20px;
    padding-bottom:20px;
    background-image:url('images/arrow.gif');
    BACKGROUND-POSITION: LEFT CENTER;
    BACKGROUND-REPEAT:NO-REPEAT;
    PADDING-LEFT:20PX;
    }
    
    
    
    
    
    
    a:link, a:visited, a:active 
    { 
    font-weight: bold;
    color: #ff0000;  
    text-decoration:none; }
    
    
    a:hover  
    { border-bottom: 1px dotted	 #ff0000;
    font-weight: bold;
    cursor:crosshair; 
    color:#000000; 
     }
    
    }
    
    p {
    color: #000000;
    font: 10px Verdana;
    text-align: justify;
    width: 75%; 
    margin-right:60px;
    
    }
    		  
    .button
    
    {background-color: #ffffff;
    background-image: url('');
    border-color: ff0000;
    border-width:1px;
    width:88;
    color: #ff4d4d;
    height:22;
    font: bold 11px Verdana;
    text-decoration: none;
    }
    
    
    	 
    </style>

    questo è il codice della pagina

    Codice:
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      <title>Euphoria Under The Moon - Lu's Collective</title>
      <meta name="description" content="EUPHORIA / LU'S COLLECTIVE">
      <meta name="keywords" content="Graphics, webdesign, ">
      <meta name="author" content="Luisa">
    
    
    <link rel="StyleSheet" type="text/css" href="style.css">
    </head>
    
    
    
    <body background="images/sfondo.bmp"> 
    
    <br><br>
    
    
    <div style="position: absolute; top: 360px; left: 150px; text-align: right;"> 
    
    <a href="index.php"><img src="images/home.jpg" border="0" width="62" height="23" alt=""></a>
    <br><br>
    <a href="news.php"><img src="images/news.jpg" border="0" width="62" height="23" alt=""></a>
    <br><br>
    <a href="portfolio.php"><img src="images/portfolio.jpg" border="0" width="125" height="23" alt=""></a>
    <br><br>
    <a href="services.php"><img src="images/services.jpg" border="0" width="113" height="23" alt=""></a>
    <br><br>
    <a href="artworks.php"><img src="images/artworks.jpg" border="0" width="130" height="23" alt=""></a>
    <br><br>
    <a href="online.php"><img src="images/online.jpg" border="0" width="75" height="23" alt=""></a>
    <br><br>
    
    <a href="links.php"><img src="images/links.jpg" border="0" width="62" height="23" alt=""></a>
    <br><br>
    <a href="site.php"><img src="images/www.jpg" border="0" width="56" height="23" alt=""></a><br><br>
    
    
    </div> 
    
     
    <div align="center">
      <center>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="700" height="531" id="AutoNumber1">
        <tr>
          <td width="700" height="316" background="images/top.jpg">
          
    
    	 <p><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    <div style="text-align: right">	
    
    <form method="get" action="http://www.google.com/search">
    
    <div style="padding:4px; width:50em; margin-right:50px;">
    <table border="0" cellpadding="0">
    <tr><td>
    <input type="text" name="q" size="20"
     maxlength="255" value=""/> <input type="submit" class="button" value="Search" /></td></tr>
    </table>
    </div>
    
    	  
    	  </td>
        </tr>
        
        <tr>
          <td width="700" height="46" background="images/back.jpg">
    
    
    <p> 	<img src="images/it.gif" border="0" width="16" height="11" alt="Italiano">
    Benvenuti su Euphoria, la mia collective.
    			  Ho una grande passione per la grafica e il webdesign, così,
    			 avendo bisogno di spazio dove raccogliere tutti i miei lavori, ho messo su questo sito.
    			 Troverete qui la maggior parte delle mie creazioni, e poichè alcune sono state create per siti web, ho deciso di non posterli qui,
    			 ma bensì troverete i link nella sezione apposita e potrete visitarli. Sono tutti bellissimi siti!!
    			 	Tutte le Updates dalla tua ultima visita sono nella finestra in alto a sinistra. Per partecipare attivamente alla crescita del sito potete visitare il <a href="http://allthelovebylu.splinder.com" target="_blank">blog</a> correlato al sito. (Per tutti voi blogghisti incalliti ^^).	 
    				Se decidi di usare i miei lavori, tieni conto delle poche regole sotto elencate:<br><br>
    			
    				  - Non si accettano richieste!   <br>
    		   - E' vietato modificare i miei lavori.		  <br>
    		   - Non cancellare i credits.				<br>
    		   - Se prendi un mio lavoro lasciami un messaggio nella tag-board. I miei lavori sono tutti gratis, ma vorrei
    		   avere un'idea su chi li usa, e sapere cosa ne pensate! <br>
    		   - Grazie.
    		   
    				
    				
    			 <br><br>
    
    <img src="images/us.gif" border="0" width="16" height="11" alt="English">	 Welcome to Euphoria, my own collective. I have a real passion for graphic and webdesign, so since
    		   I needed a place where to post all my work, I created this site.
    		   All my works will be posted here, but since I've made some graphic works for other sites, 
    		   I've decided that you won't find them here, but if you want, you can visit
    		   those sites, they're all in the link section. They're all great website!! take a look!!!			
    		   
    		   							  All the the new works, sites and updates are on the window on the left!
    
    To take part into the growth of this site you can visit this <a href="http://allthelovebylu.splinder.com" target="_blank">blog</a>, that's linked to All The Love. 
    
    		   If you wish to use my works, just follow the instruction below:	<br><br>
    		   
    		   - I don't accept request, sometimes, for friends!  <br>
    		   - You're not allowed to change my works.		  <br>
    		   - Don't delete the credits.					<br>
    		   - Please leave me a message on the tag-board. My works are all free and all you can use them, 
    		   but it's always fine to read what do you think of them, and I'd like to have an idea about who's using them! <br>
    		   - Thanks.
    		
    
    
    </p>
    
    </td>
        
    
    	
    	
    	
    	</tr>
    	
    	
        <tr>
          <td width="700" height="infinite" height="46" background="images/back.jpg"> 
          <div align="center">
            <center>
    		
    
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
              <tr>
                <td width="100%" rowspan="2" height="infinite" align="left" valign="top">
                
    
    
    	<br><br>
                
                
                </td>
                
              </tr>
           
            </table>
            </center>
          </div>
          </td>
        </tr>
       
        <tr>
          <td width="700" height="86" background="images/foot.jpg">
    
        </td>
        </tr>
      </table>
      </center>
    </div>
    
    
    
    
    
    
    </body> 
    
    
    
    
    
    </html>
    grazie :)

  2. #2
    L'avatar di funcool
    funcool non è connesso Utente storico
    Data registrazione
    05-02-2004
    Residenza
    Qui... Non lì, qui!
    Messaggi
    15,433

    Predefinito

    Per prima cosa dovresti decidere se fare il layout con le tabelle o con div e CSS, perché il tuo codice è un misto di entrambi.
    Mattia vi manda a FunCool - Matriz - Directory Gogol - Sfondo rosso per la Birmania
    «Tu mi dai fastidio perché ti credi tanto un Dio!» «Bè, dovrò pur prendere un modello a cui ispirarmi, no?» Woody Allen

  3. #3
    Guest

    Predefinito

    lo so, ma è l'unica soluzione che mi è venuta in mente per aggiungere il menu ^^
    lo so che è poco ortodossa ^^

  4. #4
    Ospite Guest

    Predefinito

    puoi cercare "template" su google o anche qui nel forum.
    troverai sicuramente una soluzione.

  5. #5
    Guest

    Predefinito

    proverò ^^

    //edit

    anche se volessi eliminare i div mettendo il menu nella tabella..rimane il problema che firefox non li legge i margini..cioè, sicuramente ho sbagliato io a mettere i codici..>_>
    Ultima modifica di jennifersky : 16-08-2007 alle ore 19.18.43

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •