Avatar billede louisedalsgaard Nybegynder
14. oktober 2005 - 00:52 Der er 5 kommentarer

CSSen validere, men der er en del warnings

Jeg søger en løsning på følgende warnings:

Line : 2 (Level : 1) You have no color with your background-color : body
Line : 10 (Level : 1) You have no color with your background-color : #bag
Line : 19 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #menuvandret
Line : 21 (Level : 1) You have no color with your background-color : #menuvandret
Line : 30 (Level : 1) You have no background-color with your color : .mail
Line : 30 (Level : 1) You have no background-color with your color : .mail
Line : 30 (Level : 1) You have no background-color with your color : .mail
Line : 48 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #fritid
Line : 48 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #fritid
Line : 48 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #fritid
Line : 48 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #fritid
Line : 48 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #fritid
Line : 53 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #citat
Line : 61 (Level : 1) Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. : #english
Valid CSS information
body {
background-color : gray;
text-align : center;
overflow : scroll;
}
#bag {
height : 600px;
width : 800px;
background-color : silver;
}
#design {
width : 100%;
text-align : center;
}
#menuvandret {
font-family : Comic Sans MS, Gill Sans MT, Century Gothic, sans-serif;
font-size : 20px;
background-color : gray;
width : 840px;
height : 40px;
vertical-align : middle;
text-align : center;
border-bottom-color : silver;
}
a.menu, a:link.menu, a:visited.menu, .mail {
color : black;
font-size : 20px;
}
a:hover.menu, a:active.menu, .mail {
color : black;
font-size : 20px;
background-color : silver;
padding-top : 0;
padding-bottom : 0;
}
.mail {
font-weight : bold;
}
#indhold, #hvem, #erfaring, #uddannelse, #fritid {
font-size : small;
font-family : Century Gothic, Bookman Old Style, Gill Sans MT, Comic Sans MS, sans-serif;
overflow : scroll;
}
#citat {
font-family : "Monotype Corsiva", Script MT Bold, Juice ITC, Forte, sans-serif;
font-size : large;
width : 300px;
text-align : center;
}
#english {
font-size : medium;
font-family : Century Gothic, Bookman Old Style, Gill Sans MT, Comic Sans MS, sans-serif;
}

Desuden får jeg i xhtml-dokument validatoren at vide at der ikke findes en atribute som denne <a name="footnote">, hvilket jeg vil bruge til at lave en fodnote med, som går tilbage til toppen af siden.

Jeg håber nogen kan hjælpe!
Avatar billede jesper-moeller Nybegynder
14. oktober 2005 - 01:01 #1
http://exp.dk/spm/649843
Læs dette indlæg omkring det med You have no background-color with your color fejlen

Family names containing whitespace should be quoted
Løses med

font-family : "Century Gothic", "Bookman Old Style", "Gill Sans MT", "Comic Sans MS", sans-serif;
Avatar billede roenving Novice
14. oktober 2005 - 15:41 #2
-- men det er da godt nok en underlig samling af fonte, du bruger ...

-- såvidt jeg husker er Century Gothic og Bookman Old Style nogle af klassikerne i opsætning af brødtekst til bøger og serif-skrifter og Comic Sans MS en sans-serif-skrift, som nærmest er ovre i fantasy-familien !-)

-- hvis du lavede 5 ens tekster under hinanden med hver sin font-familie, ville det nok være voldsomt forskelligt !o]
Avatar billede jesper-moeller Nybegynder
14. oktober 2005 - 15:56 #3
tror også Comic Sans er i fantasy familien (sammen med feks Sand) men kan ikke se dem nævnt på w3c's side  15.2.6 Generic font families
http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families
Avatar billede roenving Novice
14. oktober 2005 - 16:04 #4
Prøvede lige med:

<style type="text/css">
#minDiv{font-family:"Century Gothic";font-size:large;}
#minDiv1{font-family:"Bookman Old Style";font-size:large;}
#minDiv2{font-family:"Gill Sans MT";font-size:large;}
#minDiv3{font-family:"Comic Sans MS";font-size:large;}
#minDiv4{font-family:sans-serif;font-size:large;}
</style>

-- og:

<div id="minDiv">En div-tekst</div>
<div id="minDiv1">En div-tekst</div>
<div id="minDiv2">En div-tekst</div>
<div id="minDiv3">En div-tekst</div>
<div id="minDiv4">En div-tekst</div>

-- de kan i hvert fald ikke erstatte hinanden i layout-mæssig sammenhæng !-)
Avatar billede louisedalsgaard Nybegynder
14. oktober 2005 - 18:40 #5
ok nu har jeg løst problemerne. og så skrifter jeg vist lige de font-typer...

tak for hjælpen
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester