Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Uzywanie id
mariuszg
post
Post #1





Grupa: Zarejestrowani
Postów: 136
Pomógł: 0
Dołączył: 22.06.2006

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


witam,

Walidator pokazuje mi błąd:

"
Line 74, Column 12: ID "R7" already defined

<div id="r7">Dealer</div>

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
"

Czy to znaczy że mam zamienić na całej stronie na class="r7". Czy możne się inaczej tego pozbyć.

Proszę o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
ADeM
post
Post #2





Grupa: Zarejestrowani
Postów: 455
Pomógł: 69
Dołączył: 23.10.2004
Skąd: Oświęcim

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


Tak właśnie powinieneś zrobić. Dane id powinno być tylko jedno na stronie.


--------------------
Go to the top of the page
+Quote Post
cniak
post
Post #3





Grupa: Zarejestrowani
Postów: 169
Pomógł: 12
Dołączył: 16.09.2009

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


https://developer.mozilla.org/pl/Cz%C4%99ste_Pytania_o_CSS

przejedź w dół
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 Aktualny czas: 19.08.2025 - 17:57