Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> jak zastąpić cellspac. i cellpadd.. z html w css ?
koszar
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 17.05.2004
Skąd: Słupca

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


zacząlem tworzyć coś w xhtmlu i chialbym zamienić atrybut cellspacing i cellpadding w htmlu
  1. <table width="500" cellspacing=0 cellpadding=0>

i chcialbym to zamienić na:
  1. <table width="500" class="tabela">

tylko mam maly problem bo niepoprawnie wpisuje to w stylach.
jak powinno być poprawnie w stylach ?

pozdr. (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
revyag
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

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


Pewnie chodzi Ci o padding
Kod
.tabela{
    width: 500px;
    padding: 5px;
}

  1. <table class="tabela"></table>
Go to the top of the page
+Quote Post
koszar
post
Post #3





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 17.05.2004
Skąd: Słupca

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


wpisywalem

  1. .tabela {
  2. padding: 0;
  3. }


ale to chyba nie to (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
revyag
post
Post #4





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

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


No to spróbuj tak:
Kod
.tabela{
   width: 500px;
   padding: 0px;
   border-spacing: 0px;
   border-collapse: collapse;
}

Powinno być ok (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
wassago
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 701
Pomógł: 0
Dołączył: 26.06.2002
Skąd: Londyn

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


temat juz byl poruszany.
zamykam
Go to the top of the page
+Quote Post

Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 11:03