Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2004
    Messaggi
    9

    strano problema con i css

    gente aiutatemi perche' sto andando veramente fuori di testa

    vi spiego rapidamente: ho una stupida pagina con una stupida tabella (ovviamente html) con un file .css esterno richiamato col solito <link rel="stylesheet" type="text/css" href="nomelayout.css">

    il problema e' questo: mi funziona tutto tranne lo sfondo del body cosi' dichiarato all'interno del css:

    codice:
    body {
    		background-color: red;
    }
    se pero' invece di richiamare il css lo inserisco direttamente dentro l'head questo problema non esiste piu'..ma devo richiamare il css anche all'interno del tag body?


    ciao e grazie

  2. #2
    body {
    background :#0000ff;
    }

  3. #3
    Utente di HTML.it
    Registrato dal
    Mar 2004
    Messaggi
    9
    non funziona :master:

  4. #4
    chiaramente no! evidentemente c'è qualche piccola imperfezione...ma la tua pagina è online?
    Anche io leggo barze-bastarde
    Athlon 64 X2 4400@2500 daily - Zalman CNPS9500 - Asus A8n-Sli Premium - Crucial Ballistix Tracer PC4000 500mhz Sinc. - Sapphire Radeon X1900XT 512mb - Zalman VF900Cu - Seagate 320Gb 7200.10 - LG H22N 18x - T.t. Soprano - LcPower Titan 560W

  5. #5
    Utente di HTML.it
    Registrato dal
    Mar 2004
    Messaggi
    9
    no ce l'ho qui nel pc della facolta'..se volete faccio uno zip e lo allego

  6. #6
    niente zip

    posta il codice sia della pagina che del css
    Anche io leggo barze-bastarde
    Athlon 64 X2 4400@2500 daily - Zalman CNPS9500 - Asus A8n-Sli Premium - Crucial Ballistix Tracer PC4000 500mhz Sinc. - Sapphire Radeon X1900XT 512mb - Zalman VF900Cu - Seagate 320Gb 7200.10 - LG H22N 18x - T.t. Soprano - LcPower Titan 560W

  7. #7
    Utente di HTML.it
    Registrato dal
    Mar 2004
    Messaggi
    9
    si' effettivamente ho notato che non fa allegare zip
    ecco il codice html:
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT"
    http://www.w3.org/TR/html4/loose.dtd>
    
    <html>
    
    <head>
    	
    	<link rel="stylesheet" type="text/css" href="layout_1.css">
    	
    	<title>
    		Programme of Conference
    	</title>
    	
    </head>
    
    <body>
    
    	testo senza paragrafo
    	
    	<h2>Programme of the Conference</h2>
    
    	
    	<table width="650" align="center">
    		<p class="testo">
    		There will be two introductory plenary lectures, 11 invited lectures and 21 contributed talks.
    
    		There will be also two after dinner poster sessions on Thursday.
    
    		A short (1 minute, 1 trasparency per poster) presentation of the posters will be given on the same day immediately before dinner.
    
    		Poster discussion will be held on Thursday after dinner.
    
    		Poster Session A will be concerned with the even numbered posters. Poster Session B will be concerned with the odd numbered posters.
    
    		
    
    		Accompaying person activities
    
    		Some accompanying person activities will be arranged at the time of the conference.
    		</p>
    	</table>
    
    	
    
    
    	<p class="testo2">prova testo verde</p>
    	<p class="testo3">prova testo magenta</p>
    	
    	<table class="principale" align="center">
    		<tr class="primariga">
    			<td>&nbsp</td>
    			<td>Sunday 1</td>
    			<td>Monday 2</td>
    			<td>Tuesday 3</td>
    			<td>Wednesday 4</td>
    			<td>Thursday 5</td>
    		</tr>
    		
    		<tr>
    			<td>9:00-10:00</td>
    			<td rowspan="2">ARRIVAL</td>
    			<td>D.C. Clary</td>
    			<td>M.E. Casida</td>
    			<td>C. Millot</td>
    			<td>G. Cruciani</td>
    		</tr>
    		
    		<tr>
    			<td>10:00-11:00</td>
    			<td>P. Szalay</td>
    			<td>A. Bottoni</td>
    			<td>A.P. Jansen</td>
    			<td>J.C. Rayez</td>
    		</tr>
    		
    		<tr>
    			<td>11:00-11:30</td>
    			<td rowspan="4">R
    E
    G
    I
    S
    T
    R
    A
    T
    I
    O
    N</td>
    			<td>Coffee Break</td>
    			<td>Coffee Break</td>
    			<td>Coffee Break</td>
    			<td>Coffee Break</td>
    		</tr>
    		
    		<tr>
    			<td>11:30-12:00</td>
    			<td>S. Evangelisti</td>
    			<td>M. Mroginski</td>
    			<td>A. Tchougreeff</td>
    			<td>G. Scalmani</td>
    		</tr>
    		
    		<tr>
    			<td>12:00-12:30</td>
    			<td>V. Speybroeck</td>
    			<td>A. Toro-Labbe</td>
    			<td>E. Bichoutskaia</td>
    			<td>F. Negri</td>
    		</tr>
    		
    		<tr>
    			<td>12:30-13:00</td>
    			<td>O. Gervasi</td>
    			<td>C. Marsden</td>
    			<td>G. Gueorguiev</td>
    			<td>M. Garavelli</td>
    		</tr>
    		
    		<tr>
    			<td>13:00-14:00</td>
    			<td>Lunch</td>
    			<td>Lunch</td>
    			<td>Lunch</td>
    			<td>Lunch</td>
    			<td>Lunch</td>
    		</tr>
    		
    		<tr>
    			<td>14:00-17:00</td>
    			<td>Free Time</td>
    			<td>Free Time</td>
    			<td rowspan="6"><a href="http://www.google.it">T
    O
    U
    R</a></td>
    			<td>Free Time</td>
    			<td>Free Time</td>
    		</tr>
    		
    		<tr>
    			<td>17:00-18:00</td>
    			<td>T. Hey</td>
    			<td>K. Faegri</td>
    			<td>G. Rozenberg</td>
    			<td>R. Whewell</td>
    		</tr>
    		
    		<tr>
    			<td>18:00-18:30</td>
    			<td rowspan="2">R. Carbo</td>
    			<td>M. Yanez</td>
    			<td>W. Herndon</td>
    			<td>J. Froelich</td>
    		</tr>		
    
    		<tr>
    			<td>18:30-19:00</td>
    			<td>E. Rossi</td>
    			<td>P. Bala</td>
    			<td>E. Pauwels</td>
    		</tr>
    
    		<tr>
    			<td>19:00-19:30</td>
    			<td rowspan="3">CHORUS
    at the San Francesco
    Basilica</td>
    			<td>M. Soscun</td>
    			<td>F. De Angelis</td>
    			<td rowspan="2">Poster Presentation</td>
    		</tr>
    				
    		<tr>
    			<td>19:30-20:00</td>
    			<td>I. Yavari</td>
    			<td>S. Rao</td>
    		</tr>		
    
    		<tr>
    			<td>20:00-21:00</td>
    			<td rowspan="2">Dinner</td>
    			<td rowspan="2">Dinner</td>
    			<td rowspan="4">Social Dinner</td>
    			<td>Dinner</td>
    		</tr>		
    
    		<tr>
    			<td>21:00-22:00</td>
    			<td rowspan="2">Dinner at
    San Francesco Convent</td>
    			<td>Poster Session A</td>
    	
    		<tr>
    			<td>22:00-23:00</td>
    			<td>Free Time</td>
    			<td>Free Time</td>
    			<td>Poster Session B</td>
    		</tr>
    					
    	</table>
    </body>
    
    </html>

    e questo e' quello del css:
    codice:
    <style type="text/css">
    	body {
    		background-color: gray;
    }
    	
    	h2 {
    		text-align: center;
    		font-family: verdana;
    		color: red;
    		}
    	p.testo2 {
    		font-family: verdana;
    		color: green;
    		text-align: center;
    	}
    	p.testo {
    		font-family: verdana;
    		color: black;
    		text-align: center;
    	}
    	
    	p.testo3 {
    		font-family: verdana;
    		color: magenta;
    		text-align: right;
    	}
    	table.principale {
    		border-style: solid;
    		border-width: 3px;
    		border-color: black;
    		text-align: center;
    	}
    	td {
    		padding: 2px;
    		border-style: solid;
    		border-color: black;
    		border-width: 1px;
    	}
    
    	tr.primariga {
    		background-color: #666666;
    		padding: 2px;
    		border-style: solid;
    		border-color: white;
    		border-width: 1px;
    		font-weight: bold;
    		color: white;
    		}
    </style>
    ho provato anche a mettere nel css a tutti gli elementi tranne il body background-color: trasparent, ma con poco successo..

  8. #8
    leva nel css i tag <style> di apertura e chiusura


    4 pag. x il forum:l'ospite ora ha solo link sponsorizzati, valli a capire-GommaLayout! Agg. 25 agosto 2004)-Molla&Collano privati tecnici, per favore

  9. #9
    Originariamente inviato da Jerry Masslo
    leva nel css i tag <style> di apertura e chiusura



    ti ha aiutato jerry..scusa ma avevo del lavoro...
    Anche io leggo barze-bastarde
    Athlon 64 X2 4400@2500 daily - Zalman CNPS9500 - Asus A8n-Sli Premium - Crucial Ballistix Tracer PC4000 500mhz Sinc. - Sapphire Radeon X1900XT 512mb - Zalman VF900Cu - Seagate 320Gb 7200.10 - LG H22N 18x - T.t. Soprano - LcPower Titan 560W

  10. #10
    table.principale {
    border-collapse:collapse; <-- aggiungi questo
    border-style: solid;
    border-width: 3px;
    border-color: black;
    text-align: center;
    se mi permetti un consiglio io metterei i bordi condivisi! prova!
    Anche io leggo barze-bastarde
    Athlon 64 X2 4400@2500 daily - Zalman CNPS9500 - Asus A8n-Sli Premium - Crucial Ballistix Tracer PC4000 500mhz Sinc. - Sapphire Radeon X1900XT 512mb - Zalman VF900Cu - Seagate 320Gb 7200.10 - LG H22N 18x - T.t. Soprano - LcPower Titan 560W

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.