Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]table w div
Ziom73
post
Post #1





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Mam news:
  1. <?php
  2. <table bgcolor="#C0C0C0" width="700">
  3. <tr>
  4.    <td><font color="maroon"><h1><p style="font-family: fantasy"><span style='background-color:#EEEEEE;padding:2px'>Wielkie otwarcie!</span></p></h1></font></td>
  5. </tr>
  6. </table>
  7. <table bgcolor="#C0C0C0" width="700" height="200" >
  8. <tr>
  9. <td>
  10. <p style="font-family: arial">
  11. tu jest treść
  12. </p>
  13. </td>
  14. </tr>
  15. </table>
  16. ?>

Ale w div nie działa, ponieważ wywala pod div ;/
Jak to naprawić, lub inaczej zrobić?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
InosU31
post
Post #2





Grupa: Zarejestrowani
Postów: 221
Pomógł: 14
Dołączył: 11.03.2009
Skąd: Lubaczów

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


to sprobuj tak :
  1. #news {border:1px solid yellow; position:relative; width:auto; height:auto; background-repeat: no-repeat; right top}
  2. #stopka {border:1px solid red; position:relative; width:auto; height:auto; margin-top:10px; margin-left:auto; margin-right:auto}



  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/htm14/loose.dtd">
  3. <link rel="stylesheet" href="style.css" type="text/css" />
  4. </head>
  5.  
  6. <div id="news">
  7.  
  8. <table bgcolor="#C0C0C0" width="700">
  9. <tr>
  10. <td><font color="maroon"><h1><p style="font-family: fantasy"><span style='background-color:#EEEEEE;padding:2px'>Wielkie otwarcie!</span></p></h1></font></td>
  11. </tr>
  12. <table bgcolor="#C0C0C0" width="700" height="200" >
  13. <tr>
  14. <td>
  15. <p style="font-family: arial">
  16. tu jest treść
  17. </p>
  18. </td>
  19. </tr>
  20. </div>
  21. <div id="stopka">
  22. <img src="images/stopka.png" />
  23. </div>
  24.  
  25.  
  26. <br /><br /><br /><br />
  27. </body>
  28. </html>


zobacz teraz moze cos pomoze a jak nie to na samych divach sprobuj zamiast <table> ;-)

na IE :
<a href='http://zapodaj.net/4f17d3e233b1.gif.html'>http://zapodaj.net/4f17d3e233b1.gif.html</a>

na chrome:

<a href='http://zapodaj.net/796931cf152b.gif.html'>http://zapodaj.net/796931cf152b.gif.html</a>

Ten post edytował InosU31 20.07.2009, 01:22:21
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 - 22:31