Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak to to pokroic
aiel
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 24.01.2010

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


Hej, może zaczne od tego że css znam na słabym poziomie
i mam mały problem chce zrobić taki wygląd graficzny komentarzy tylko nie mam pojęcia jak tego dokonać
Chodzi o trójkątna część dymka za nic niemoge wymyślić jak ją wstawić
ten "dymek" musi być dynamiczny (powiększać sie wraz z tekstem) na obrazku zaznaczyłem linie jak chce tabelke zbudować


Ten post edytował aiel 18.04.2010, 15:10:27
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
aiel
post
Post #2





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 24.01.2010

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


Pewnie mnie zlinczujecie ale zrobiłem to w tabelach -
wystarczyło przedłuzyć lewy bok z dymkiem o kilka cm
limit znaków w komentarzu nie pozwoli iść dalej żeby sie nie urwało
kolor zmienia się sam razem z kolorem tabeli
border można dodać (troche w obrazkach i troche w kodzie)
wygląd tutaj > http://japierdziele.pl/test/strona.html

i kod :
CSS
  1. table
  2. {
  3. border-collapse:collapse;
  4. }
  5. td.katlg
  6. {
  7. background-image:url(http://www.japierdziele.pl/katlg.png);
  8. background-position: top right;
  9. background-repeat:no-repeat;
  10. align:right;
  11. }
  12. td.katld
  13. {
  14. background-image:url(http://www.japierdziele.pl/katld.png);
  15. background-position: top right;
  16. background-repeat:no-repeat;
  17.  
  18. align:right;
  19. }
  20.  
  21. td.katpd
  22. {
  23. background-image:url(http://www.japierdziele.pl/katpd.png);
  24. background-position: top right;
  25. background-repeat:no-repeat;
  26. align:right;
  27. }
  28. td.katpg
  29. {
  30. background-image:url(http://www.japierdziele.pl/katpg.png);
  31. background-position: top right;
  32. background-repeat:no-repeat;
  33. align:right;
  34. }
  35. td.bokl
  36. {
  37.  
  38. background-image:url(http://www.japierdziele.pl/bokl.png);
  39. }
  40. td.text
  41. {
  42. vertical-align:text-top;
  43. }

HTML
  1. <table border=0 width=570 style='background-color:#000000;'><tr>
  2. <td rowspan=3 style='background-color:white;' valign=top align=center><img src="http://japierdziele.pl/profil.png" width=70 height=70>
  3. <br>~a1el</td>
  4. <td align=right class="katlg" width=14 height=7></td><td valign=top></td><td class="katpg" width=5 height=7></td>
  5. </tr><tr>
  6. <td valign=top class="bokl" width=14></td><td class="text"><font size=1 color=white>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed rutrum rutrum faucibus. Ut tristique, ligula a mollis elementum, libero arcu pretium lacus, sit amet pellentesque felis dolor vel arcu. Pellentesque hendrerit, neque sed vehicula commodo, erat lectus blandit mauris, eget fermentum dui leo sed purus. Duis tellus erat, euismod ac molestie et, tincidunt a massa. Mauris fermentum porta sem vitae venenatis. Curabitur vitae facilisis leo. Phasellus at libero mauris, vel ullamcorper lectus. Phasellus quis metus vitae eros porttitor mollis. Nulla iaculis rutrum nulla, ut ullamcorper metus vestibulum ac. Phasellus cursus est quis velit rutrum vulputate. Ut porttitor justo sed purus lobortis quis porta metus lobortis. Vestibulum tellus lectus, elementum eget pulvinar at, hendrerit sit amet ipsum. Donec interdum nisl eget augue molestie bibendum.</td></tr><tr>
  7. <td valign=top class="katld" width=14 height=7></td><td></td><td class="katpd" width=5 height=7></td></tr></table>
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: 11.10.2025 - 01:29