Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html/css]obrazek w naglowku tabelki
Yard
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 17.06.2006

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


witam
mam pewnie problem z odpowiednim wyswietleniem obrazka w tle naglowka tabelki.
mam taki kod:
  1. <tr class="thHead">
  2. <th colspan="2" class="thTop">pole1</th>
  3. <th class="thTop">pole2</th>
  4. <th class="thTop">pole3</th>
  5. <th class="thTop">pole4</th>
  6. </tr>

i chce, zeby caly ten rzad (tr) mial w swoim tle jeden obrazek (w sensie jeden obrazek na dlugosc czterech kolumn)
probowalem kombinowac: jesli dam ten obrazek jako tlo w thHead, to w poszczegolnych komorkach sie nie wyswietla, znalazlem atrybut "background-image: inherit", ale wtedy w kazdej z osobna wysiwetla sie ten obrazek od poczatku.
ten naglowek wystepuje w kilku miejscach w roznych proporcjach, wiec nie moge obrazka podzielic,
czy takie cos da sie w ogole jakos zrobic?

z gory dziekuje za odpowiedz
pzdr

Ten post edytował Yard 1.10.2006, 17:01:53
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Yard
post
Post #2





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 17.06.2006

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


dzisiaj wrocilem do tego i udalo mi sie wreszcie rozwiazac ten problem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
pisze, bo moze komus sie to kiedys przyda (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

w IE trzeba to niestety na okolo robic, ale znalazlem atrybut CSS background-position
dzieki niemu jest wiecej pisania, ale ustala sie pozycje obrazka tla dla kazdej komorki i IE wreszcie to dobrze interpretuje (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

kod html teraz:
  1. <tr class="thHead">
  2. <th colspan="2" class="thLeft">pole1</th>
  3. <th class="thTop">pole2</th>
  4. <th class="thTop">pole3</th>
  5. <th class="thRight">pole4</th>
  6. </tr>


css:
  1. th.thLeft
  2. {
  3. background: url(plik.jpg) bottom left;
  4. }
  5.  
  6. th.thRight
  7. {
  8. background: url(plik.jpg) bottom right;
  9. }
  10.  
  11. th.thTop
  12. {
  13. background: url(plik.jpg) bottom center;
  14. }


IE should be banned.

pzdr
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: 5.10.2025 - 09:14