Forum » Izdelava spletišč » Kako določiti barvo linkov v style.css!
Kako določiti barvo linkov v style.css!
Jackass ::
Torej spravu sm se mal popravt temo pri php-nuke. Ampak sem naletel na težavo. Zanima me če se da določt barvo linkov pri nekaterih delih. Npr. js bi rd da so samo linki pri vsebini npr modri, ostali pa naj neke druge barve.
To je vsebina moje style.css datoteke:
FONT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
INPUT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TEXTAREA {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
A:link {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:hover {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.title {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; A:link-color: #7B91AC; FONT-FAMILY: Verdana, Helvetica}
.storytitle {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica}
.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.footmsg {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.footmsg_l {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.box {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px; border: 1px solid #000000; background-color: #FFFFFF}
No in js bi rd da bi bli linki pri ".content" npr. modre barve. A je to možno, al se da sam za vse skp določt barvo linkov ("A:link" in pol naprej).
Če se da, kaj točno je treba vpisat v tisto vrstico?
To je vsebina moje style.css datoteke:
FONT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
INPUT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TEXTAREA {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
A:link {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:hover {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.title {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; A:link-color: #7B91AC; FONT-FAMILY: Verdana, Helvetica}
.storytitle {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica}
.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.footmsg {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.footmsg_l {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.box {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px; border: 1px solid #000000; background-color: #FFFFFF}
No in js bi rd da bi bli linki pri ".content" npr. modre barve. A je to možno, al se da sam za vse skp določt barvo linkov ("A:link" in pol naprej).
Če se da, kaj točno je treba vpisat v tisto vrstico?
jAcKaSS
ferjan ::
recimo takole:
.content {
font-family: Arial, Helvetica, sans-serif;
font-size:9pt;
color: #0000FF;
text-decoration: none;
}
.content:visited {
text-decoration: none;
color: #0000FF;
}
.content:hover {
text-decoration: none;
color: #FF0000;
.content {
font-family: Arial, Helvetica, sans-serif;
font-size:9pt;
color: #0000FF;
text-decoration: none;
}
.content:visited {
text-decoration: none;
color: #0000FF;
}
.content:hover {
text-decoration: none;
color: #FF0000;
pivmik ::
Jackass:
Vskakoratno določanje FONT-FAMILY: Verdana,Helvetica;
je totalno neumno.
To določiš enkrat:
body { font-family: Verdana,Helvetica; }
tako bo POVSOD na strani uporabljen font Verdana,Helvetica
Vskakoratno določanje FONT-FAMILY: Verdana,Helvetica;
je totalno neumno.
To določiš enkrat:
body { font-family: Verdana,Helvetica; }
tako bo POVSOD na strani uporabljen font Verdana,Helvetica
LP, Gregor GRE^
Jackass ::
ferjan: a pa si prepričan, da bo to pobarval samo linke pri "content", ker to je namreč del strani, da ne bo cela vsebina pol ne vem kako čudn se odzivala - barvito!
aja mimgrede sm opazu, da je v kodi pr .content še en moj poskus določanja barve linkom (A:link-color: #7B91AC) - to ne sod zravn, to sm se neki igrou na robu obupa!
aja mimgrede sm opazu, da je v kodi pr .content še en moj poskus določanja barve linkom (A:link-color: #7B91AC) - to ne sod zravn, to sm se neki igrou na robu obupa!
jAcKaSS
Zgodovina sprememb…
- spremenil: Jackass ()
pivmik ::
tebi manjkajo osnove CSS-ja.
Malo si poišči tutoriale in specifikacijo si poglej.
Malo si poišči tutoriale in specifikacijo si poglej.
LP, Gregor GRE^
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Prikaz strani na različni resoluciji-JoomlaOddelek: Izdelava spletišč | 1926 (1654) | kr?en |
» | CSS za specifično tabeloOddelek: Izdelava spletišč | 1013 (890) | Fukomuko |
» | Lampp problemOddelek: Izdelava spletišč | 1685 (1588) | Slovenia13 |
» | table CSS problem ...Oddelek: Izdelava spletišč | 2688 (2514) | darh |
» | HTML style???Oddelek: Programiranje | 1323 (1241) | darh |