salve ragazzi,
qualcuno potrebbe dirmi cosa posso fare per ottimizzare questo foglio di stile?
http://www.ro76.it/homepage.asp
e che per altro pur se validato mi rilascia dei warning che non capisco
Grazie
salve ragazzi,
qualcuno potrebbe dirmi cosa posso fare per ottimizzare questo foglio di stile?
http://www.ro76.it/homepage.asp
e che per altro pur se validato mi rilascia dei warning che non capisco
Grazie
Quali warning, scusa? Questo è il risultato che ottengo io validandolo con la Dev. Toolbar di FF.No error or warning found
Congratulations!
Valid CSS! This document validates as CSS!
To show your readers that you've taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the XHTML you could use to add this icon to your Web page:
<a href="http://jigsaw.w3.org/css-validator/">
</a>
</p>
(close the img tag with > instead of /> if using HTML <= 4.01)
If you like, you can download a copy of this image to keep in your local web directory, and change the XHTML fragment above to reference your local image rather than the one on this server.
If you would like to create a link to this page (i.e., this validation result) to make it easier to re-validate this page in the future or to allow others to validate your page, the URI is:
http://jigsaw.w3.org/css-validator/v...t/homepage.asp
or http://jigsaw.w3.org/css-validator/check/referer (for HTML/XML document only)
(Or, you can just add the current page to your bookmarks or hotlist.)
To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.
In generale per ottenere il massimo devi sempre dichiarare il background, il color (e nei link osservare l'alternanza), cioè tutte cose puramente "grammaticali". Usa anche percentuali (anche nelle proprietà Aural, se le usi) e sei ok.
beh certo ora ho limato i warning ma sono convinto che non sia del tutto performante questo foglio di stile.. anche se parlo da non esperto...
![]()
Se per 'ottimizzazione' intendi numero di byte, sì, c'è molto da fare. Metto un 3 cose li, ma ce ne sono molto altre.![]()
A che pro specificarlo, visto che lo è già di default? Comunque, se lo vuoi specificare, usa la sintassi abbreviata: color: #000;codice:color: #000000
Le stai specificando a ogni elemento. Impostagli ad un elemento superiore (tipo body) e buonanotte, no?codice:text-align: left; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;![]()
E dire padding: 15px 10px 5px; era troppo semplice?codice:padding-left: 10px; padding-right: 10px; padding-top: 15px; padding-bottom: 5px;![]()
Per ora mi fermo qua. Correggi e poi gli do ancora un occhiata.![]()
grazie haze, ma al momento mi faresti un più grande piacere se leggessi e mi aiutassi nell'altra discussione che ho aperto... questa:
http://forum.html.it/forum/showthrea...hreadid=882821
perchè sto provando a seguire la strada consigliatami da andrea ma sto ovviamente picchiando la testa...
grazie mille!![]()