Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> środkowanie elementu div
john_doe
post
Post #1





Grupa: Zarejestrowani
Postów: 873
Pomógł: 25
Dołączył: 24.07.2005

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


Witam,


napisałem takie proste coś

  1. #header {
  2. width: 700px;
  3. height: 100px;
  4. margin: 0 auto;
  5. background-color: #00ccff;
  6. height: 150px;
  7. text-align: center;
  8. border: 1px solid red;
  9.  
  10. }


w Firefoxie jest na środku i jest OK, natomiast w IE oczywiście lipa.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ones
post
Post #2





Grupa: Zarejestrowani
Postów: 51
Pomógł: 0
Dołączył: 13.07.2009

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


Wiem dokładnie o co mu chodzi aktualnie mam ten sam problem.
Co zrobiłem..
Początek strony:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4. "DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Pomogło. Reszta to ustawienie np. zamiast margin: 10 0 0 0; - margin: 10 px 0 0 0;


Lub aby nie wywalało błędów:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
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: 12.10.2025 - 04:22