Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [css][xhtml 1.1] Linki w css.. nie działają :(
Forum PHP.pl > Forum > Po stronie przeglądarki
Ziele
Mam taki kod: (pewne fragmenty są wycięte, ponieważ kod był za długi aby wstawić cały więc wkleiłem te istotne (przynajmniej dla mnie)
CODE
body {
background : #fff;
color : #0f0f0f;
font : 13px/18px Arial, Helvetica, sans-serif;
margin : 32px 0 0;
padding : 0;
}
div, ul, h1, h2, h3, li, p, img {
margin : 0;
padding : 0;
}
ul {
list-style-type : none;
}
#GoraPanel {
width : 762px;
height : 373px;
position : relative;
margin : 0 auto;
padding : 0;
}
#GoraPanel img {
width : 230px;
height : 80px;
border : 0;
z-index : 1;
padding : 0;
position : absolute;
margin : 0 0 0 21px;
}
#GoraPanel ul {
display : block;
width : 732px;
height : 36px;
position : absolute;
top : 0;
right : 0;
margin : 11px 0 0;
padding : 0 29px 0 0;
border-bottom : 1px solid #aeaeae;
}
#GoraPanel ul li {
float : right;
font : 12px/36px "Trebuchet MS", Arial, Helvetica, sans-serif;
font-weight : bold;
}
#GoraPanel ul li a {
width : 74px;
height : 36px;
display : block;
padding : 0;
color : #555;
background : #fff;
text-decoration : none;
text-align : center;
margin : 0 1px 0 0;
top : 0;
left : 0;
}
#bodyPanel {
width : 770px;
height : 4000px;
position : relative;
margin : 0 auto;
padding : 0;
}
#bodyPanel a:link {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a: hover {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a:visited {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a:active {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel h2 {
background : #fff;
display : block;
width : 250px;
height : 50px;
margin : 0;
font : 30px/30px Georgia, "Times New Roman", Times, serif;
font-weight : normal;
padding : 4px 0 0 202px;
color : #ff7113;
}
#bodyPanel p {
background : #fff url(images/pytanie.png) no-repeat 0 0;
margin : 0 0 0 54px;
padding : 0 42px 35px 150px;
color : #0f0f0f;
}
#bodyPanel p a:link {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel p a: hover {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel p a:visited {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel p a:active {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel p.beznaku {
background : #ffffff;
margin : 0 0 0 54px;
padding : 0 42px 35px 150px;
color : #0f0f0f;
}

Chcę aby linki na stronie były określonego koloru (wszystko wpisane jest już do css)
Jednak linki nie działają.. tzn wszelkie formatowanie w pliku css jak kolwiek nie ustawie nie działa na stronie.. sad.gif Mógłby mi ktoś pomóc? sciana.gif
koderrr
TO MOZE PODAJ KOD OKRESLAJACY WYGLAD LINKOW
Ziele
Znajdował się w kodzie, który podałem, ale trudno... dry.gif
Kod
#bodyPanel a:link {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a: hover {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a:visited {
background : #fff;
text-decoration : none
color : #FF9933
}
#bodyPanel a:active {
background : #fff;
text-decoration : none
color : #FF9933
}
piotrooo89
a nie możesz po prostu zrobić:
  1. a:link
  2. {
  3. background : #fff;
  4. text-decoration : none
  5. color : #FF9933
  6. }
  7. #bodyPanel a: hover {
  8. background : #fff;
  9. text-decoration : none
  10. color : #FF9933
  11. }
  12. a:visited
  13. {
  14. background : #fff;
  15. text-decoration : none
  16. color : #FF9933
  17. }
  18. a:active
  19. {
  20. background : #fff;
  21. text-decoration : none
  22. color : #FF9933
  23. }
Ziele
Powiem tak.. Ja znam html i css i już tak próbowałem, ale niestety nie działało ;/
piotrooo89
znasz się jak nie wiem ale nie umiesz zamknąć lini?

  1. a:link
  2. {
  3. background : #fff;
  4. text-decoration : none;
  5. color : #FF9933
  6. }
  7. #bodyPanel a: hover {
  8. background : #fff;
  9. text-decoration : none;
  10. color : #FF9933
  11. }
  12. a:visited
  13. {
  14. background : #fff;
  15. text-decoration : none;
  16. color : #FF9933
  17. }
  18. a:active
  19. {
  20. background : #fff;
  21. text-decoration : none;
  22. color : #FF9933
  23. }


u mnie działa.
l0ud
Zjadłeś średniki na końcu linii tongue.gif
Ziele
Skoro już zjechaliście to, że zjadłem znaczniki to muszę wam odpowiedzieć, że wy daliście mi kod:
Kod
a:link
{
background : #fff;
text-decoration : none;
color : #FF9933
}
#bodyPanel a: hover {
background : #fff;
text-decoration : none;
color : #FF9933
}
a:visited
{
background : #fff;
text-decoration : none;
color : #FF9933
}
a:active
{
background : #fff;
text-decoration : none;
color : #FF9933
}

Nikt nie usunął jednego bodyPanel winksmiley.jpg
Ale ostatecznie działa.. Sorki za takie moje małe niedopatrzenie smile.gif

Dzięki wszystkim za pomoc
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.