alignement xhtml strict et XHTML 1.0 Transitional ?
Publié : 14 janv. 2004, 19:28
Bonsoir,
J'ai commencé à refaire le code d'une page.
Celle-ci fonctionne très bien et elle est validée en xhtml 1.0 strict.
Juste un petit soucis.
Sous Mozilla tout est centré en xhtml strict ou en xhtml transitional.
En revanche sous IE en transitional le bloc est centrée avec le doctype :
mais avec pas avec celui ci :
Avec ce dernier le bloc reste collé à gauche...
Savez vous pourquoi ?
la page :
http://www.about-django.com/news/videos/newvideos.php
Css :
http://www.about-django.com/news/videos/newvideos.css
J'ai commencé à refaire le code d'une page.
Celle-ci fonctionne très bien et elle est validée en xhtml 1.0 strict.
Juste un petit soucis.
Sous Mozilla tout est centré en xhtml strict ou en xhtml transitional.
En revanche sous IE en transitional le bloc est centrée avec le doctype :
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Code : Tout sélectionner
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Avec ce dernier le bloc reste collé à gauche...
Savez vous pourquoi ?
la page :
http://www.about-django.com/news/videos/newvideos.php
Css :
http://www.about-django.com/news/videos/newvideos.css