-
Ecco il codice, (Fa parte di un tema di e-xoops)
Notate qualche errore??
[code:1:96be66a0c1]/*
.xoopsCode
.xoopsQuote
Are core specific, but may also be overridden in here to your taste.
.banner
.redirect
.bg1
.bg2
.bg3
.bg4
Are E-Xoops Specific, all others are freestyle depending on your theme.
*/
.waitbox {
background: #FAFAF5;
border: 1px solid #E0E0E0;
}
.redirect {
background: #DCDCDC;
border: 1px solid #d4d4d4;
color: #000000;
}
img {
border: 0px;
}
.banner {
border: 0px outset #ffffff;
}
.bg2, .bg4 {
background-color : #6A93D5;
}
.bg3 {
background-color : #A4BDE5;
}
.bg1 {
background-color: whitesmoke;
}
.fg1 {
color:#000000;
}
.fg2 {
color:#000000;
}
.footer {
color: #8BB2D8;
text-align : center;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.debug{
color: #B7EEFF;
text-align : center;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.left {
border-right:1px solid black;
border-bottom:1px dotted black;
border-left:1px solid black;
}
.news {
color:#000000;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
text-align:left;
}
.newstitle{
background-color: #5A7EBC;
}
.postedby {
color:#000000;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
text-align:left;
}
.right {
border-right:1px solid black;
border-bottom:1px dotted black;
border-left:1px solid black;
}
.sidebox {
color:#000000;
font-weight:normal;font-size:10px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.sideboxtitle{
background-image: url('../images/sideblock.gif');
}
.title {
color:#ffffff;
font-weight:bold;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-align:left;
}
.hover{
color: black;
font : bold;
font-size: xx-small;
font-family:Verdana,Helvetica,san-serif, Arial;
}
a:active, a:link, a:visited{
background : transparant;
color : black;
font-size: xx-small;
font-family:Verdana,Helvetica,san-serif, Arial;
text-decoration : none;
}
a:hover{
color : red;
font-size: xx-small;
font-family:Verdana,Helvetica,san-serif, Arial;
cursor : pointer;
text-decoration : none;
}
hr {
color: #999999;
}
input {
font-size:11px;
font-family:Tahoma,Sans-serif;
}
td {
font-size:11px;
font-family:Tahoma,Sans-serif;
}
#bi {
background-image: url('../images/bar_midt.gif')
}
#v {
background-image: url('../images/venstre.gif')
}
#h {
background-image: url('../images/right.gif')
}
.topborder{
background-image: url('../images/bar_midt.gif')
}[/code:1:96be66a0c1]
perche' il validator mi da questi errori:
Errors
URI : http://www.colonnaromana.altervista....tyle/style.css
Line: 0 Context : .bg1
Invalid number : background-colorwhitesmoke is not a color value : whitesmoke
Line: 0 Context : .hover
Invalid number : fonttoo few values for the property font : bold
URI : http://www.colonnaromana.altervista.org/modules/news/
Line: 329
Invalid number : cursorhand is not a cursor value : hand
Line: 430
none is not a font-stretch value : none
Line: 430
Invalid number : font-sizeonly 0 can be a length. You must put an unit after your number : 6
Line: 444
none is not a font-stretch value : none
Line: 444
Invalid number : font-sizeonly 0 can be a length. You must put an unit after your number : 6
Warnings
URI : http://www.colonnaromana.altervista.org/modules/news/
Line : 403 font-family: You are encouraged to offer a generic family as a last alternative
Line : 430 font-family: You are encouraged to offer a generic family as a last alternative
Line : 444 font-family: You are encouraged to offer a generic family as a last alternative
URI : http://www.colonnaromana.altervista....tyle/style.css
Line : 0 font-family: You are encouraged to offer a generic family as a last alternative
Chi ci capisce mi puo' dare una mano? :?:
Grazie
-
Scusate se riporto a galla questo post, ma magari c'e' qualcuno che non l'ha notato...
-
Intanto cursor hand non è corretto si deve usare cursor pointer poi i vari colori non sono quelli standard, il resto occorrerebbe leggerlo per bene (scusate ma ora ho poco tempo per leggere tutto)
-
Così dovrebbe funzionare...... :wink:
[code:1:1ea2e1045f]
/*
.xoopsCode
.xoopsQuote
Are core specific, but may also be overridden in here to your taste.
.banner
.redirect
.bg1
.bg2
.bg3
.bg4
Are E-Xoops Specific, all others are freestyle depending on your theme.
*/
.waitbox {
background: #FAFAF5;
border: 1px solid #E0E0E0;
}
.redirect {
background: #DCDCDC;
border: 1px solid #d4d4d4;
color: #000000;
}
img {
border: 0px;
}
.banner {
border: 0px outset #ffffff;
}
.bg2, .bg4 {
background-color : #6A93D5;
}
.bg3 {
background-color : #A4BDE5;
}
.bg1 {
background-color: #EEE;
}
.fg1 {
color:#000000;
}
.fg2 {
color:#000000;
}
.footer {
color: #8BB2D8;
text-align : center;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.debug{
color: #B7EEFF;
text-align : center;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.left {
border-right:1px solid black;
border-bottom:1px dotted black;
border-left:1px solid black;
}
.news {
color:#000000;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
text-align:left;
}
.newstitle{
background-color: #5A7EBC;
}
.postedby {
color:#000000;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
text-align:left;
}
.right {
border-right:1px solid black;
border-bottom:1px dotted black;
border-left:1px solid black;
}
.sidebox {
color:#000000;
font-weight:normal;font-size:10px;
font-family:Tahoma,Sans-serif;
text-decoration:none;
}
.sideboxtitle{
background-image: url('../images/sideblock.gif');
}
.title {
color:#ffffff;
font-weight:bold;
font-size:11px;
font-family:Tahoma,Sans-serif;
text-align:left;
}
.hover{
color: black;
font-weight:bold;
font-size: xx-small;
font-family:Verdana,Helvetica,Sans-serif;
}
a:active, a:link, a:visited{
background : transparant;
color : black;
font-size: xx-small;
font-family:Verdana,Helvetica,Sans-serif;
text-decoration : none;
}
a:hover{
color : red;
font-size: xx-small;
font-family:Verdana,Helvetica,Sans-serif;
cursor : pointer;
text-decoration : none;
}
hr {
color: #999999;
}
input {
font-size:11px;
font-family:Tahoma,Sans-serif;
}
td {
font-size:11px;
font-family:Tahoma,Sans-serif;
}
#bi {
background-image: url('../images/bar_midt.gif')
}
#v {
background-image: url('../images/venstre.gif')
}
#h {
background-image: url('../images/right.gif')
}
.topborder{
background-image: url('../images/bar_midt.gif')
}
[/code:1:1ea2e1045f]
-
:D Grazie, ora provo,
Ma cosa hai cambiato? :?: :?:
-
Adesso mi da solo questi errori
[code:1:095e227d02]Errors
URI : http://www.colonnaromana.altervista.org/modules/news/
* Line: 329
Invalid number : cursorhand is not a cursor value : hand
* Line: 430
none is not a font-stretch value : none
* Line: 430
Invalid number : font-sizeonly 0 can be a length. You must put an unit after your number : 6
* Line: 444
none is not a font-stretch value : none
* Line: 444
Invalid number : font-sizeonly 0 can be a length. You must put an unit after your number : 6
Warnings
URI : http://www.colonnaromana.altervista.org/modules/news/
* Line : 430 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 444 font-family: You are encouraged to offer a generic family as a last alternative
[/code:1:095e227d02]
-
Gli errori sono auto esplicativi, infatti basta leggerli ;)
ovvero, cursorhand non è una prorpietà dei css, ma lo è cursor, solo che hand non è una prorpietà di cursor, infatti non esiste.
Puoi però "caricarne" una usando un'icona (.ico)
cursor: url(file.ico);
font-stretch: none non esiste, infatti non lo prevede dato che si riferisce alla "forza del carattere", non può esistere un carattere (none) forse dovevano scrivere font-stretch: normal;
per font-size, ti dice che devi inserire un valore per esso, ma francamente non lo vedo l'errore, a meno che invece di 0 abbiano scritto una o, ma non mi pare in ciò che hai copiato qui.
per gli ultimi due avvisi (warning) ti ha solo detto di non usare un solo tipo di font, ma dare delle alternative usando na lista, questo è giusto perchè non tutti hanno gli stessi font nel computer e anzi, non tutti hanno sempre lo stesso sitema operativo.
ciao.