Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css][xhtml 1.1] Linki w css.. nie działają :(
Ziele
post 6.07.2008, 14:04:24
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 2
Dołączył: 5.07.2008

Ostrzeżenie: (0%)
-----


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


--------------------
Pomogłem? Miło będzie jeśli klikniesz przycisk "Pomógł"
Zapraszam do mojego Portfolio
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
koderrr
post 6.07.2008, 14:44:06
Post #2





Grupa: Zarejestrowani
Postów: 255
Pomógł: 16
Dołączył: 4.07.2007

Ostrzeżenie: (0%)
-----


TO MOZE PODAJ KOD OKRESLAJACY WYGLAD LINKOW
Go to the top of the page
+Quote Post
Ziele
post 6.07.2008, 14:47:34
Post #3





Grupa: Zarejestrowani
Postów: 53
Pomógł: 2
Dołączył: 5.07.2008

Ostrzeżenie: (0%)
-----


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
}


--------------------
Pomogłem? Miło będzie jeśli klikniesz przycisk "Pomógł"
Zapraszam do mojego Portfolio
Go to the top of the page
+Quote Post
piotrooo89
post 6.07.2008, 14:49:21
Post #4


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




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. }


Ten post edytował piotrooo89 6.07.2008, 14:49:35


--------------------
Go to the top of the page
+Quote Post
Ziele
post 6.07.2008, 15:02:55
Post #5





Grupa: Zarejestrowani
Postów: 53
Pomógł: 2
Dołączył: 5.07.2008

Ostrzeżenie: (0%)
-----


Powiem tak.. Ja znam html i css i już tak próbowałem, ale niestety nie działało ;/


--------------------
Pomogłem? Miło będzie jeśli klikniesz przycisk "Pomógł"
Zapraszam do mojego Portfolio
Go to the top of the page
+Quote Post
piotrooo89
post 6.07.2008, 15:08:10
Post #6


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




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.


--------------------
Go to the top of the page
+Quote Post
l0ud
post 6.07.2008, 15:08:55
Post #7





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

Ostrzeżenie: (0%)
-----


Zjadłeś średniki na końcu linii tongue.gif


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
Ziele
post 6.07.2008, 15:15:29
Post #8





Grupa: Zarejestrowani
Postów: 53
Pomógł: 2
Dołączył: 5.07.2008

Ostrzeżenie: (0%)
-----


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


--------------------
Pomogłem? Miło będzie jeśli klikniesz przycisk "Pomógł"
Zapraszam do mojego Portfolio
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 15:39