29. august 2002 - 18:08
Der er
7 kommentarer og 1 løsning
CSS Stylesheet
Hejsa... Mit spørgsmål går på hvordan jeg får det sidste til at stå rigtigt i mit stylesheet ?? Altså derfra hvor <STYLE> begynder`?? .tekst { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; line-height: 16px; } .tekst-stor { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; } .border { background-attachment: fixed; background-image: url(notebook.gif); background-repeat: no-repeat; background-position: right bottom; background-color: #FFFFFF; border-top: 1px none #000000; border-right: 1px solid #000000; border-bottom: 1px none #000000; border-left: 1px solid #000000; } .notebook { background-attachment: fixed; background-image: url(notebook.gif); background-repeat: no-repeat; background-position: right bottom; } .kontaktform { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; border: 1px solid #000000; background-color: #FF9900; } .border-right-bottom-top { border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; } <style> a:link {text-decoration: none; color: #000000;} a:visited {text-decoration: none; color: #000000;} a:active {text-decoration: none; color: #000000;} a:hover {text-decoration: underline; color: #000000;} a.set1:link {text-decoration: none; color: #999999;} a.set1:visited {text-decoration: none; color: #999999;} a.set1:active {text-decoration: none; color: #999999;} a.set1:hover {text-decoration: underline; color: #999999;} BODY { SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #CCCCCC; SCROLLBAR-BASE-COLOR: #FF9900 } </style>
Annonceindlæg fra Lenovo
29. august 2002 - 19:08
#1
Hvad mener du med "stå rigtigt"
29. august 2002 - 19:19
#2
Nedenstående står da ikke rigtigt i et stylesheet gør det ?? Det er da kun hvis det skal stå på en html side.. <style> a:link {text-decoration: none; color: #000000;} a:visited {text-decoration: none; color: #000000;} a:active {text-decoration: none; color: #000000;} a:hover {text-decoration: underline; color: #000000;} a.set1:link {text-decoration: none; color: #999999;} a.set1:visited {text-decoration: none; color: #999999;} a.set1:active {text-decoration: none; color: #999999;} a.set1:hover {text-decoration: underline; color: #999999;} BODY { SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #CCCCCC; SCROLLBAR-BASE-COLOR: #FF9900 } </style>
29. august 2002 - 19:20
#3
For at få stylsheetet til at virke skal det incluted på de sider hvor det skal gælde. Er det det du mener?
29. august 2002 - 20:41
#4
Nej... Det ved jeg.. men man må da ikke skrive <STYLE> i et stylesheet må man.. der skal tingene da starte med et . (punktum)
29. august 2002 - 20:42
#5
Hvis du har en css-fil skal du iikke skrive <style> først.
29. august 2002 - 20:47
#6
Hvis du f.eks. vil ændre baggrundsfarven, så skal du skrive: body {... (uden punktum) Hvis nu du ændre skrifttypen på en eller anden tekst, så kunne det gøre sådan her: .tekst {... (med punktum) og så bruge den sådan her: <div class="tekst">Teksen der skal ændres</div>
29. august 2002 - 20:50
#7
Det ved jeg godt alt det der... Det første indlæg jeg skrev var et uddrag fra mit stylesheet.. Men så havde jeg på alle min sider indsat: <style> a:link {text-decoration: none; color: #000000;} a:visited {text-decoration: none; color: #000000;} a:active {text-decoration: none; color: #000000;} a:hover {text-decoration: underline; color: #000000;} a.set1:link {text-decoration: none; color: #999999;} a.set1:visited {text-decoration: none; color: #999999;} a.set1:active {text-decoration: none; color: #999999;} a.set1:hover {text-decoration: underline; color: #999999;} BODY { SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #CCCCCC; SCROLLBAR-BASE-COLOR: #FF9900 } </style> Men det vil jeg også gerne have ind i mit stylesheet... Hvordan skal det stå ??
29. august 2002 - 22:44
#8
Det skal bare stå som det står bare uden <style> og </style>. Bare paste det i dit css-dokument.
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.