Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Strona zmienia wygląd w IE
B4rt3k
post
Post #1





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

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


Po zakodowaniu szablonu w Firefoxie, Operze wszystko działało dobrze. Jednak w IE content2 odjechał kawałek w dół od content1. Między nimi powstała przestrzeń w kolorze tła. Mógłby mi ktoś pomóc rozwiązać ten problem.
Tak przy okazji jeśli ktoś ma sposób na wyśrodkowanie strony w CSS pod IE to będę wdzięczny.

Adres: projectart.com.pl/1/

  1. <!--
  2. body {background: url(images/bg.png); font-size:14px; color:#000000; font-family: Verdana, Arial, Helvetica, sans-serif;}
  3.  
  4. #calosc {width:935px; margin:0 auto;}
  5. #top {width:935px; height:210px; float:left;}
  6. .top1 {width:935px; height:210px; float:left; background: url(images/top.png) no-repeat;}
  7. #menu {width:935px; height:56px; float:left;}
  8. #menu a.menu1 {width:165px; height:56px; background: url(images/menu1.png) no-repeat}
  9. #menu a.menu2 {width:139px; height:56px; background: url(images/menu2.png) no-repeat}
  10. #menu a.menu3 {width:86px; height:56px; background: url(images/menu3.png) no-repeat}
  11. #menu a.menu4 {width:173px; height:56px; background: url(images/menu4.png) no-repeat}
  12. #menu a.menu5 {width:372px; height:56px; background: url(images/menu5.png) no-repeat}
  13. #menu a {text-decoration:none; margin:0px; float:left;}
  14.  
  15. #content1 {float:left; width:935px; height:9px; background: url(images/content1.png) no-repeat;}
  16. #content2 {float:left; width:935px; background: url(images/content2.png) repeat-y;}
  17. #content3 {float:left; width:935px; height:11px; background: url(images/content3.png) no-repeat;}
  18.  
  19. #leftpanel {width:270px; float:left;}
  20. .przesylka {margin:5 12 10 12; width:245px; height:272px; background:url(images/przesylka.png) no-repeat;}
  21. .przesylka-text {padding: 60 10 20 10; width:220px;}
  22. .regulamin {margin:5 12 10 12; width:245px; height:272px; background:url(images/regulamin.png) no-repeat;}
  23. .regulamin-text {padding: 60 10 20 10; width:220px;}
  24. .kontakt {margin:5 12 10 12; width:245px; height:272px; background:url(images/kontakt.png) no-repeat;}
  25. .kontakt-text {padding: 60 10 20 10; width:220px;}
  26. #rightpanel {width:665px; float:right}
  27. .opis {margin:30 20 20 20;}
  28. img {width:600; height:400;)
  29.  
  30.  
  31. -->
  32.  
  33.  
  34.  
  35. </head>
  36.  
  37. <div id="calosc">
  38. <div id="top">
  39. <div class="top1"></div>
  40. </div>
  41.  
  42. <div id="menu">
  43. <a href="index.html" class="menu1" title="Moje aukcje"></a>
  44. <a href="#" class="menu2" title="Komentarze"></a>
  45. <a href="#" class="menu3" title="O mnie"></a>
  46. <a href="mailto:agnieszka@net-fashion.pl" class="menu4" title="Kontakt ze mną"></a>
  47. <a href="#" class="menu5" title=""></a>
  48. </div>
  49.  
  50. <div id="content1">
  51. </div>
  52. <div id="content2">
  53. <div id="leftpanel">
  54. <div class="przesylka">
  55. <div class="przesylka-text">
  56. Tutaj znajduje się przykładowy tekst dotyczący wysyłki<br><br>
  57. Priorytet - 12 zł<br>
  58. Pobranie - 18 zł
  59. </div>
  60. </div>
  61. <div class="regulamin">
  62. <div class="regulamin-text">
  63. Tutaj znajduje się przykładowy regulamin<br><br>
  64. 1. Oto pierwszy punkt regulaminu<br>
  65. 2. Oto drugi punkt regulaminu<br>
  66. 3. Oto trzeci punkt regulaminu
  67. </div>
  68. </div>
  69. <div class="kontakt">
  70. <div class="kontakt-text">
  71. Tutaj znajdują się dane kontaktowe<br><br>
  72. Gadu Gadu: 111238<br>
  73. Email: user@domain.com<br>
  74. Telefon 500 00 000
  75. </div>
  76. </div>
  77. </div>
  78. <div id="rightpanel">
  79. <div class="opis">
  80. Wszystkie moje szablony działają poprawnie pod każdą przeglądarką<br>
  81. Dzięki profesjonalnemu cięciu xhtml/css i budowie szablonu na DIV'ach, obsługa i edycja szablonu nie sprawia dużych problemów.<br><br>
  82. W tym miejscu należy umieścić treść i opis aukcji allegro <br>
  83. Wielkość, kolor tekstu można dobrowolnie zmieniać za pomocą edytora allegro.<br>
  84. Szablon został wykonany przez projectART. Dziękujemy za skorzystanie z naszych usług.<br><br>
  85. Poniżej znajduje się przygładowy tekst, który ma za zadanie zapełnić stronę z opisem aukcji.<br><br>
  86. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br>
  87. <img src="http://www.efajny.kei.pl/foto/nfpl/3zho1/1.jpg"><img src="http://www.efajny.kei.pl/foto/nfpl/3zho1/1.jpg">
  88. </div>
  89. </div>
  90. </div>
  91. <div id="content3">
  92. </div>
  93. <div id="stopka">Szablon wykonany dla Survival-SklepPL przez ProjectART. Wszystkie prawa zastrzeżone.</div>
  94. </div>
  95.  
  96.  
  97.  
  98. </body>
Go to the top of the page
+Quote Post
l0ud
post
Post #2





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Na sam początek sugeruję dodać tag <html> i doctype.


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
B4rt3k
post
Post #3





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

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


Dzięki, ale interesuje mnie tylko ten konkretny błąd i wypowiedzi na jego temat są najbardziej mile widziane.
Go to the top of the page
+Quote Post
l0ud
post
Post #4





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Konkretny błąd to: brak doctype.


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
B4rt3k
post
Post #5





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

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


Po wstawieniu doctype nic się nie zmieniło. Więc to chyba nie od tego zależy.
Go to the top of the page
+Quote Post
l0ud
post
Post #6





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Wstaw razem z <html> do dokumentu pod linkiem - muszę to zobaczyć tongue.gif


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
B4rt3k
post
Post #7





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

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


Wrzuciłem na serwer. Teraz jeszcze w dodatku tekst z lewej pojechał w górę. A błąd, który był nadal występuje w IE.

//Edit: Poradziłem sobie sam. W content1 dopisałem: font-size: 1px.

Ten post edytował B4rt3k 25.10.2009, 12:49:13
Go to the top of the page
+Quote Post
DeXTeD
post
Post #8





Grupa: Zarejestrowani
Postów: 28
Pomógł: 3
Dołączył: 22.01.2009
Skąd: Blachownia

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


Co to ma być? Gdzie masz znacznik <HTML>?

http://www.kurshtml.boo.pl/html/ramy_dokumentu,zielony.html

I masz masę błędów na stronie



--------------------
Tyria.pl - Guild Wars
Go to the top of the page
+Quote Post
sebastiankozub
post
Post #9





Grupa: Zarejestrowani
Postów: 43
Pomógł: 1
Dołączył: 17.02.2008
Skąd: Leszno

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


wyśrodkowanie:

min-width, max-width lub width w połączeniu z margin: auto;

ale jak będziesz tak traktowałe doctype i <html> jak na tej stronie wyżej to raczej nie wyśrodkujesz tongue.gif


--------------------
>> strony internetowe - Leszno <<

>> skup samochodów osobowych <<

>> programy żużlowe <<
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 Aktualny czas: 20.08.2025 - 07:09