Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> pixel pixelowi nie równy IE/FF
php programmer
post
Post #1





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 5
Dołączył: 8.11.2004
Skąd: trójmiasto

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


Witam.
Mam problem róznica w odległości między poszczeólnymi inputami
jest inna w FF i IE

  1. .myinput{
  2. margin-left:180px;
  3. margin-top: 19px;
  4. border:1px solid silver;
  5. padding: 0px;
  6. margin-bottom:0px;
  7. height:18px;
  8. display: block;
  9. }
  10.  
  11.  
  12. <div style="height:340px;width:790px;border:1px solid white" align="left">
  13.  
  14. <input type="text" name="snick" id="snick" size="32" value="{snick}" maxlength="100" class="myinput" style="margin-top:56px" >
  15. <input type="text" name="sfirstname" id="sfirstname" size="32" value="{sfirstname}" maxlength="100" class="myinput" >
  16. <input type="text" name="slastname" id="slastname" size="32" value="{slastname}" maxlength="100" class="myinput" >
  17. <input type="text" name="spesel" id="spesel" size="32" value="{spesel}" maxlength="100" class="myinput" >
  18. <input type="text" name="sstreet" id="sstreet" size="32" value="{sstreet}" maxlength="100" class="myinput" >
  19. <input type="text" name="spostal" id="spostal" size="32" value="{spostal}" maxlength="100" class="myinput" >
  20. <input type="text" name="scity" id="scity" size="32" value="{scity}" maxlength="100" class="myinput" >
  21.  
  22. </div>


Ten post edytował php programmer 17.01.2008, 15:26:30
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
grzesiek_g
post
Post #2





Grupa: Zarejestrowani
Postów: 249
Pomógł: 30
Dołączył: 18.07.2007

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


IE6 potrafi podwajać marginesy, aby temu zaradzić stwórz style tylko dla IE6, dodasz je w taki sposób (za dołączeniem głównego css-a):
  1. <!--[if lt IE 7]>
  2. <link rel="stylesheet" type="text/css" href="site_ie6.css" />
  3. <![endif]-->

I w pliku CSS tylko dla IE6 wypiszesz tylko style które mają być nadpisane.
Go to the top of the page
+Quote Post
gekon
post
Post #3





Grupa: Zarejestrowani
Postów: 614
Pomógł: 7
Dołączył: 10.11.2003
Skąd: Rzeszów/Kraków

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


A jaki DOCTYPE wstawiasz?
Go to the top of the page
+Quote Post
mokry
post
Post #4





Grupa: Zarejestrowani
Postów: 374
Pomógł: 23
Dołączył: 3.06.2006
Skąd: Katowice

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


Nie jestem pewien, ale powinno zadziałać z float i display.

  1. .myinput{
  2. margin-left:180px;
  3. margin-top: 19px;
  4. border:1px solid silver;
  5. padding: 0px;
  6. margin-bottom:0px;
  7. height:18px;
  8.  
  9. display: inline;
  10. float:left;
  11. width: xxxpx;
  12.  
  13. }
  14.  
Go to the top of the page
+Quote Post
php programmer
post
Post #5





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 5
Dołączył: 8.11.2004
Skąd: trójmiasto

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


float:left;
rozwiązuje problem

Ten post edytował php programmer 18.01.2008, 12:23:02
Go to the top of the page
+Quote Post

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: 23.08.2025 - 01:58