Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]Strona się rozjedza
xxdrago
post 15.11.2011, 16:06:37
Post #1





Grupa: Zarejestrowani
Postów: 654
Pomógł: 42
Dołączył: 27.07.2010
Skąd: Jaworzno

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


Witam, mam stronę w html i przy mojej rozdzielczości się ona nie rozjedza a przy innych tak.

Link: http://reklama-cs.xaa.pl/

HTML:

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  6. <link rel="Stylesheet" type="text/css" href="style.css" />
  7. <meta name="Description" content="xxx" />
  8. <meta name="Keywords" content="xxx" />
  9. <title>Reklama serwerów Counter Strike 1.6</title>
  10. </head>
  11. <div id='logo'></div>
  12. <div id='tlo2'>
  13. <a href="#" class="link"></a>
  14. <a href="#" class="link2"></a>
  15. <a href="#" class="link3"></a>
  16. <a href="#" class="link4"></a>
  17. <a href="#" class="link5"></a>
  18. </div>
  19. <div id='stopka'>
  20. <p style='position:absolute; top: 1140px; left: 230px;'>
  21. <a href="http://validator.w3.org/check?uri=referer"><img
  22. src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  23. </p>
  24. <p style='position:absolute; top: 1140px; left: 320px;'>
  25. <a href="http://jigsaw.w3.org/css-validator/check/referer">
  26. <img style="border:0;width:88px;height:31px"
  27. src="http://jigsaw.w3.org/css-validator/images/vcss"
  28. alt="Poprawny CSS!" />
  29. </a>
  30. </p>
  31. </div>
  32. </body>
  33. </html>


CSS:
  1. body {
  2. background-image: url(images/tlo.png);
  3. color: #F0F8FF;
  4. }
  5. #logo {
  6. background: url(images/logo.png) no-repeat;
  7. overflow:hidden;
  8. width:764px;
  9. height:163px;
  10. margin-left: auto;
  11. margin-right: auto;
  12. }
  13. #tlo2 {
  14. background: url(images/tlo2.png) no-repeat;
  15. overflow:hidden;
  16. width:849px;
  17. height:960px;
  18. margin-left: auto;
  19. margin-right: auto;
  20. }
  21. #stopka {
  22. background: url(images/stopka.png) no-repeat;
  23. overflow:hidden;
  24. width:916px;
  25. height:72px;
  26. margin-left: 169px;
  27. }
  28. .link {
  29. position:absolute; top:180px; left:230px;
  30. background: url(images/buttony/glowna.png) no-repeat;
  31. overflow:hidden;
  32. width:153px;
  33. height:60px;
  34. }
  35. .link2 {
  36. position:absolute; top:181px; left:390px;
  37. background: url(images/buttony/naszebannery.png) no-repeat;
  38. overflow:hidden;
  39. width:153px;
  40. height:60px;
  41. }
  42. .link3 {
  43. position:absolute; top:181px; left:545px;
  44. background: url(images/buttony/dodaj.png) no-repeat;
  45. overflow:hidden;
  46. width:153px;
  47. height:60px;
  48. }
  49. .link4 {
  50. position:absolute; top:180px; left:705px;
  51. background: url(images/buttony/kontakt.png) no-repeat;
  52. overflow:hidden;
  53. width:153px;
  54. height:60px;
  55. }
  56. .link5 {
  57. position:absolute; top:180px; left:865px;
  58. background: url(images/buttony/forumsieci.png) no-repeat;
  59. overflow:hidden;
  60. width:153px;
  61. height:60px;
  62. }


Ma ktoś jakiś pomysł czym zastąpić "position"?

Ten post edytował xxdrago 15.11.2011, 16:07:13


--------------------
GG: 10972302 :)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Pawel_W
post 15.11.2011, 16:13:15
Post #2





Grupa: Zarejestrowani
Postów: 1 675
Pomógł: 286
Dołączył: 15.06.2009
Skąd: Wieliczka

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


pozycjonujesz absolutnie, w tym problem

nie słyszałeś o czymś takim jak centrowanie? smile.gif

pomijam już fakt że przy takiej jakości kodzie buttony w stylu "poprawny xhtml" możesz sobie darować smile.gif
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: 14.06.2025 - 15:31