Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> class czy ID ? :?
acztery
post
Post #1





Grupa: Zarejestrowani
Postów: 945
Pomógł: 7
Dołączył: 15.03.2005
Skąd: katowice

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


eloo

przerabiam stronę na xhtml i mam jednej error z którym nie umie sobie poradzic.


  1. <div
  2.  
  3. {if $cats[cats].Level == $IDS}
  4. id="menu_03"
  5. {elseif $cats[cats].Level != ''}
  6. id="menu_04"
  7. {else $cats[cats].CatID == $IDS}
  8. id="menu_03"
  9. {/if}
  10. style="margin-left: {$cats[cats].Level*0}px">
  11. <li><a
  12.  
  13. {if $cats[cats].Level == $IDS}
  14. class="menu_link5"
  15. {elseif $cats[cats].Level > '0'}
  16. class="menu_link3"
  17. {else}
  18. class="menu_link5"
  19. {/if}


styll css

Kod
.menu_03{border:0px;padding-top: 7px;padding-bottom: 6px;background:  red;}

.menu_04{background:  #ECEDEF;}



a taki error

1.Error Line 108 column 4: ID "menu_03" already defined.
2.Line 96 column 4: ID "menu_03" first defined here.


czemu ?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 15.09.2025 - 03:07