Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS] style table
agataperz
post
Post #1





Grupa: Zarejestrowani
Postów: 182
Pomógł: 0
Dołączył: 24.03.2009
Skąd: Hamburg DE

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


Witam,

mam mały problem ( aniestet jestem noga jesli chodzi o css) na stronach chciałabym użyć dwóch stylów tabel w pliku css:

  1. table {
  2. border-top-right-radius: 10px;
  3. font-size: 10pt;
  4. font-family: Verdana, Arial;
  5. border-width: 1px;
  6. border-color: black;
  7. border-style: solid;
  8. table-layout: fixed;
  9. border-collapse: collapse;
  10. }
  11.  
  12.  
  13.  
  14. table {
  15. font-size: 10pt;
  16. font-family: Verdana, Arial;
  17. border-width: 0px;
  18. border-color: red;
  19. border-style: solid;
  20. table-layout: fixed;
  21. border-collapse: collapse;
  22. }


w tym momencie oba style się kłucą. Jak zrobić ażeby się nie kłuciły i jak to zaznaczyć w plikach html?
Go to the top of the page
+Quote Post
CuteOne
post
Post #2





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

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


  1. #tabela1 {
  2. width: 100px;
  3. border: 1px solid black;
  4. }
  5.  
  6. #tabela2 {
  7. width: 300px;
  8. border: 1px solid black;
  9. }
  10.  
  11. <table id="tabela1">
  12. <tr>
  13. <td> he </td>
  14. </tr>
  15.  
  16. <table id="tabela2">
  17. <tr>
  18. <td> he </td>
  19. </tr>


Dla każdego elementu przypisujesz jego unikatowe ID w tym wypadku tabela1 i tabela2
Go to the top of the page
+Quote Post
agataperz
post
Post #3





Grupa: Zarejestrowani
Postów: 182
Pomógł: 0
Dołączył: 24.03.2009
Skąd: Hamburg DE

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


dzieki
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: 21.08.2025 - 11:17