Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> TCPDF - dwie tabele obok siebie - problem z formatowaniem
swiezak
post 2.03.2016, 20:01:31
Post #1





Grupa: Zarejestrowani
Postów: 159
Pomógł: 0
Dołączył: 21.08.2011

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


Cos mnie podkusilo, aby zainstalowac do projektu pakiet Whiteoctober TCPDF (https://github.com/whiteoctober/WhiteOctoberTCPDFBundle) i teraz sie mecze nad, wydawaloby sie, prosta rzecza.
Mianowicie probuje uzyskac dwie tabele polozone obok siebie i okazuje sie, ze ta cala biblioteka nie wspiera float.

Mam taki kod (spartanski, pisany na szybko na kolanie) i nie dziala:
  1. <div style="text-align:center">
  2. <table style="float:left;border:1px solid #787878;width:48%">
  3. <tr>
  4. <th><strong>xxx</strong></th>
  5. </tr>
  6. </thead>
  7. <tr>
  8. <td class="signature">&nbsp;</td>
  9. </tr>
  10. </tbody>
  11. </table>
  12.  
  13. <table style="float:right;border:1px solid #787878;width:48%">
  14. <thead class="bcg-grey">
  15. <tr>
  16. <th><strong>yyy</strong></th>
  17. </tr>
  18. </thead>
  19. <tr>
  20. <td class="signature">&nbsp;</td>
  21. </tr>
  22. </tbody>
  23. </table>
  24. </div>


Czy ktos z Was ma jakis pomysl, jak "przechytrzyc" TCPDF?
Go to the top of the page
+Quote Post
trueblue
post 2.03.2016, 20:04:19
Post #2





Grupa: Zarejestrowani
Postów: 6 799
Pomógł: 1827
Dołączył: 11.03.2014

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


1. Tabele w tabeli.
2. inline-block.
3. Albo skoro to taka prosta struktura, zastąpić jedną tabelą.


--------------------
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: 18.05.2025 - 08:07