Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML] Margines pod obrazkiem w tabeli
sq6aah
post 8.03.2010, 22:17:30
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 12.10.2009

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


Witam,
wstawiam do tabeli zdjęcie jako odnośnik i mam problem z tym że pod zdjęciem pojawia się margines (wysokość ok 2px) Jak można się tego pozbyć?

  1. <table cellpadding="0">
  2. <tr bgcolor="red">
  3. <td><a href="link.html"><img src="mini/photo.jpg"/></a></td>
  4. </tr>
Go to the top of the page
+Quote Post
gothye
post 8.03.2010, 22:33:17
Post #2





Grupa: Zarejestrowani
Postów: 702
Pomógł: 65
Dołączył: 16.03.2009

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


  1. margin:-2px
questionmark.gif


--------------------
Nie udzielam pomocy poprzez PW
Go to the top of the page
+Quote Post
sq6aah
post 8.03.2010, 22:39:10
Post #3





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 12.10.2009

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


Nic.
  1. #tabela td
  2. {
  3. padding: 0px 0px -2px 0px;
  4. }

Próbowałem też tak.
Go to the top of the page
+Quote Post
athei
post 8.03.2010, 22:46:39
Post #4





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


Kod
<table cellpadding="0" cellspacing="0">

Zeruj domyślne marginy i paddingi *{margin:0; padding:0;}
i wrzucaj stronę gdzieś na serwer, żeby można było zobaczyć ocb.

Ten post edytował athei 8.03.2010, 22:47:48
Go to the top of the page
+Quote Post
sq6aah
post 8.03.2010, 22:59:45
Post #5





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 12.10.2009

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




Chodzi o ten czerwony pasek po zdjęciem.
Go to the top of the page
+Quote Post
Blame
post 8.03.2010, 23:08:50
Post #6





Grupa: Zarejestrowani
Postów: 678
Pomógł: 124
Dołączył: 26.09.2009

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


A czy mógłbyś wrzucić stronę, z którą jest problem gdzieś na serwer? Będzie nam o wiele łatwiej ci pomóc winksmiley.jpg


--------------------
Go to the top of the page
+Quote Post
gothye
post 8.03.2010, 23:09:17
Post #7





Grupa: Zarejestrowani
Postów: 702
Pomógł: 65
Dołączył: 16.03.2009

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


więc spróbuj img margin:-2px


--------------------
Nie udzielam pomocy poprzez PW
Go to the top of the page
+Quote Post
sq6aah
post 8.03.2010, 23:18:05
Post #8





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 12.10.2009

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


margin:-2px dla img pomogło mogło.
Dzięki
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: 19.07.2025 - 17:25