Tom's Guide > Forum > Programmation > [CSS] Différence d'alignement entre IE et FX

[CSS] Différence d'alignement entre IE et FX

Forum Programmation : [CSS] Différence d'alignement entre IE et FX

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonjour à tous,

Voilà, j'essaye d'adapter un template pour joomla et il se trouve que tout est ok sauf le final : l'affichage sous IE :pt1cable:

Un bloc est décalé alors que tout est ok sous FX!


Voici le code généré en HTML :

Code :
  1. <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Joomla en local - Accueil</title>
  5. <meta name="description" content="Joomla - le portail dynamique de gestion de contenu" />
  6. <meta name="keywords" content="Joomla, joomla" />
  7. <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved." />
  8. <meta name="robots" content="index, follow" />
  9.     <link rel="shortcut icon" href="http://127.0.0.1/joomla/images/favicon.ico" />
  10.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  11. <link href="http://127.0.0.1/joomla/templates/rhuk_solarflare_ii/style.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="http://127.0.0.1/joomla/templates/rhuk_solarflare_ii/js/utils.js"></script>
  13. <script type="text/javascript" src="http://127.0.0.1/joomla/templates/rhuk_solarflare_ii/js/js_liveclock.js"></script>
  14. </head>
  15. <body>
  16. <div id="top-block">
  17.     <div id="site-title">
  18.     <a href="http://127.0.0.1/joomla">Mecaindex.fr</a>
  19.     </div>
  20.     <div id="site-slogan">
  21.     usinage, décolletage et confections métalliques
  22.     </div>
  23.     <div id="search-box">
  24.    
  25. <form action="index.php?option=com_search&amp;Itemid=5" method="get">
  26.     <div class="search-button">
  27.         <input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="search-input" type="text" size="20" value="Rechercher..."  onblur="if(this.value=='') this.value='Rechercher...';" onfocus="if(this.value=='Rechercher...') this.value='';" />    </div>
  28.     <input type="hidden" name="option" value="com_search" />
  29.     <input type="hidden" name="Itemid" value="5" />   
  30. </form>    </div>
  31. </div>
  32.     <div id="top-divider"></div>
  33. <div id="top-nav-container">
  34.     <div id="top-nav-background">
  35.         <ul>
  36.         <li class="page_item"><a href="http://127.0.0.1/joomla" title="Home">Home</a></li>
  37.         <li><a href="index.php?do=contact" title="Contact">Contact</a></li>
  38.         <li><a href="members/" target='_blank' title="Zone Membres">Zone Membres</a></li>
  39.         <li><a href="atom.php" target='_blank' title="Flux ATOM">Flux ATOM</a></li>
  40.         <li><a href="index.php?do=basic" title="<{$lang.submit_site}>">SOUMETTRE UN SITE</a></li>
  41.         </ul>   
  42.     </div>
  43.     <div id="date-background">
  44.     <script>dT();</script>
  45.     </div>   
  46. </div>
  47. <div id="main-area">
  48.     <div id="sidebar">
  49.         <div class="nav-content">
  50.             <ul>
  51.                 <center>A voir aussi</center>
  52.             </ul>
  53.         </div>
  54.         <div class="nav-footer"></div>
  55.         <div class="nav-content">
  56.             <div class="nav-header">Navigation</div>
  57.                     </div>
  58.         <div class="nav-footer"></div>
  59.         <div class="nav-content">
  60.             <div class="nav-header">Outils</div>
  61.             <ul>
  62.             <li><a href="http://search.mecaindex.fr" title="Search.mecaindex">Search.mecaindex</a></li>
  63.             <li><a href="http://www.usinages.com" title="Usinages.com">Forum de l'usinage</a></li>
  64.             </ul>
  65.         </div>
  66.         <div class="nav-footer"></div>
  67.     </div>
  68.     <div id="main-content">
  69.         <div class="post-wrap">
  70.             <div class="post-content-wrap">
  71.                 <div class="post-title">
  72.                 <a href="http://127.0.0.1/joomla" title="Accueil"> Annuaire d'entreprises et fournisseurs en usinage </a>
  73.                 </div>
  74.                 <div>
  75.                             <div class="moduletable">
  76.                             <h3>
  77.                     CB Workflows                </h3>
  78.                         </div>
  79.                 <div class="moduletable">
  80.                             <h3>
  81.                     Derniers articles                </h3>
  82.                 <ul class="latestnews">
  83.     <li class="latestnews">
  84.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=2&amp;Itemid=9" class="latestnews">
  85.             Newsflash 1</a>
  86.     </li>
  87.         <li class="latestnews">
  88.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=3&amp;Itemid=9" class="latestnews">
  89.             Newsflash 2</a>
  90.     </li>
  91.         <li class="latestnews">
  92.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=4&amp;Itemid=9" class="latestnews">
  93.             Newsflash 3</a>
  94.     </li>
  95.         <li class="latestnews">
  96.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=6&amp;Itemid=2" class="latestnews">
  97.             Exemple Article 1</a>
  98.     </li>
  99.         <li class="latestnews">
  100.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=9&amp;Itemid=2" class="latestnews">
  101.             Exemple Article 4</a>
  102.     </li>
  103.     </ul>        </div>
  104.                         </div>
  105.                 <div>
  106.                     <table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><div>                <table class="contentpaneopen">
  107.             <tr>
  108.                                 <td class="contentheading" width="100%">
  109.                     Bienvenue sur Joomla!                                    </td>
  110.                             </tr>
  111.             </table>
  112.            
  113.         <table class="contentpaneopen">
  114.                     <tr>
  115.                 <td width="70%" align="left" valign="top" colspan="2">
  116.                     <span class="small">
  117.                         Écrit par Webmaster                    </span>
  118.                     &nbsp;&nbsp;
  119.                 </td>
  120.             </tr>
  121.                         <tr>
  122.                 <td valign="top" colspan="2" class="createdate">
  123.                     12-06-2004                </td>
  124.             </tr>
  125.                     <tr>
  126.             <td valign="top" colspan="2">
  127.                 Si vous avez tout lu sur les Syst&egrave;mes de Gestion de Contenu (CMS en anglais), vous aurez probablement retenu au moins trois choses: les CMS sont ce qu'il y a de mieux pour faire du business, les CMS sont des outils vraiment tr&egrave;s compliqu&eacute;s, et enfin ils sont le plus souvent absolument hors de prix.<br /> <br /> <div class="mosimage"  style=" border-width: 1px; float: left; width: 120px;" align="center"><img src="http://127.0.0.1/joomla/images/stories/asterisk.png" width="70" height="67" hspace="6" alt="Joomla! Logo" title="Joomla! Logo" border="0" /><div class="mosimage_caption" style="text-align: center;" align="center">Exemple Caption</div></div>Joomla! est en train de changer la donne... Joomla! est diff&eacute;rent du mod&egrave;le habituel de logiciel web. Pour commencer, Joomla! est simple &agrave; prendre en main. Joomla! a &eacute;t&eacute; d&eacute;velopp&eacute; pour le plus grand nombre. Il est distribu&eacute; sous license GNU/GPL, facile &agrave; installer, facile &agrave; administrer et stable. Les utilisateurs et administrateurs Joomla! n'auront m&ecirc;me pas besoin de connaissances HTML pour mettre en oeuvre et g&eacute;rer ce CMS.</p>            </td>
  128.         </tr>
  129.                     <tr>
  130.                 <td colspan="2" align="left" class="modifydate">
  131.                     Dernière mise à jour&nbsp;: ( 12-06-2004 )
  132.                 </td>
  133.             </tr>
  134.                             <tr>
  135.                     <td align="left" colspan="2">
  136.                         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=1&amp;Itemid=1" class="readon">
  137.                             Lire la suite...</a>
  138.                     </td>
  139.                 </tr>
  140.                         </table>
  141.         <span class="article_seperator">&nbsp;</span>
  142.         </div></td></tr><tr><td valign="top"><table width="100%"  cellpadding="0" cellspacing="0"><tr><td valign="top" width="50%">            <table class="contentpaneopen">
  143.             <tr>
  144.                                 <td class="contentheading" width="100%">
  145.                     Newsflash 1                                    </td>
  146.                             </tr>
  147.             </table>
  148.            
  149.         <table class="contentpaneopen">
  150.                     <tr>
  151.                 <td width="70%" align="left" valign="top" colspan="2">
  152.                     <span class="small">
  153.                         Écrit par Administrator                    </span>
  154.                     &nbsp;&nbsp;
  155.                 </td>
  156.             </tr>
  157.                         <tr>
  158.                 <td valign="top" colspan="2" class="createdate">
  159.                     09-08-2004                </td>
  160.             </tr>
  161.                     <tr>
  162.             <td valign="top" colspan="2">
  163.                 Joomla! 1.0 - 'Faites l'exp&eacute;rience de la libert&eacute;'!. Il n'a jamais &eacute;t&eacute; aussi facile de cr&eacute;er soi-m&ecirc;me un site dynamique. G&eacute;rez tout le contenu de votre site depuis une interface d'administration.            </td>
  164.         </tr>
  165.                 </table>
  166.         <span class="article_seperator">&nbsp;</span>
  167.         </td><td valign="top" width="50%">            <table class="contentpaneopen">
  168.             <tr>
  169.                                 <td class="contentheading" width="100%">
  170.                     Newsflash 2                                    </td>
  171.                             </tr>
  172.             </table>
  173.            
  174.         <table class="contentpaneopen">
  175.                     <tr>
  176.                 <td width="70%" align="left" valign="top" colspan="2">
  177.                     <span class="small">
  178.                         Écrit par Administrator                    </span>
  179.                     &nbsp;&nbsp;
  180.                 </td>
  181.             </tr>
  182.                         <tr>
  183.                 <td valign="top" colspan="2" class="createdate">
  184.                     09-08-2004                </td>
  185.             </tr>
  186.                     <tr>
  187.             <td valign="top" colspan="2">
  188.                 Hier, tous les serveurs des Etats-Unis se sont mis en gr&egrave;ve en revendiquant le droit &agrave; plus de RAM et &agrave; de meilleurs processeurs. Un porte parole a d&eacute;clar&eacute; que ce besoin en RAM suppl&eacute;mentaire &eacute;tait cons&eacute;cutif &agrave; l'accroissement inconsid&eacute;r&eacute; de la vitesse des bus front-side. Il a &eacute;t&eacute; demand&eacute; aux bus r&eacute;sidants des carte m&egrave;res de lever le pied.            </td>
  189.         </tr>
  190.                 </table>
  191.         <span class="article_seperator">&nbsp;</span>
  192.         </td></tr></table></td></tr><tr><td valign="top"><div class="blog_more">            <div>
  193.                 <strong>
  194.                 Suite...                </strong>
  195.             </div>
  196.                     <ul>
  197.                     <li>
  198.                 <a class="blogsection" href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=4&amp;Itemid=1">
  199.                     Newsflash 3</a>
  200.             </li>
  201.                     </ul>
  202.         </div></td></tr></table>                </div>
  203.                 <div>
  204.                             <div class="moduletable">
  205.                             <h3>
  206.                     Articles les plus lus                </h3>
  207.                 <ul class="mostread">
  208.     <li class="mostread">
  209.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=11&amp;Itemid=9" class="mostread">
  210.             Exemple FAQ Item 2</a>
  211.     </li>
  212.           <li class="mostread">
  213.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=10&amp;Itemid=9" class="mostread">
  214.             Exemple FAQ Item 1</a>
  215.     </li>
  216.           <li class="mostread">
  217.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=9&amp;Itemid=2" class="mostread">
  218.             Exemple Article 4</a>
  219.     </li>
  220.           <li class="mostread">
  221.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=6&amp;Itemid=2" class="mostread">
  222.             Exemple Article 1</a>
  223.     </li>
  224.           <li class="mostread">
  225.         <a href="http://127.0.0.1/joomla/index.php?option=com_content&amp;task=view&amp;id=7&amp;Itemid=2" class="mostread">
  226.             Exemple Article 2</a>
  227.     </li>
  228.     </ul>        </div>
  229.                         </div>
  230.                 <div class="post-info">
  231.                     Essai
  232.                 </div>
  233.             </div>
  234.         </div>
  235.         <div class="post-date">
  236.         <span class="date-month">
  237.         <br clear="all" /><br clear="all" />
  238.         <a href="rss.php"><img src="http://127.0.0.1/joomla/templates/rhuk_solarflare_ii/images/rssmlp.gif" alt="Flux RSS"></a>
  239.         </div>           
  240.     </div>
  241. <br clear="all" />
  242. </div>
  243. <br clear="all" />
  244. <div id="copyright">
  245.     <div id="sponsor-text">
  246.     Copyright &copy; 2008 - Tous droits réservés
  247.     </div>
  248.     <div id="copyright-text">
  249.     </div>
  250. </div>
  251. <br clear="all" />
  252. <br />       
  253. <script type="Text/Javascript">
  254.         if(document.links.length > 0)
  255.         {
  256.             for(var i=0; i < document.links.length; i++)
  257.             {
  258.                 if (document.links[i].className.indexOf("_blank" ) > -1)
  259.                 {
  260.                     document.links[i].target="_blank";
  261.                 }
  262.             }
  263.         }
  264.         </script>
  265. </body>
  266. </html>



Et voici le fichier style.css :

Code :
  1. font-size:12px;   
  2.     color:#777;       
  3.     background-color:#a7a7a7;
  4.     background-image:url("images/site-background.gif" );
  5.     background-repeat:repeat-x;
  6.     margin:0;
  7.     line-height:20px;   
  8. }
  9. img {
  10.     border:0;
  11.     }
  12.     p img {
  13.     float:left;
  14.     margin:0 10px 0 0;
  15.     padding-left: 6px;
  16.     padding-bottom: 2px;
  17. }
  18.     html {
  19.     scrollbar-face-color:#a7a7a7;
  20.     scrollbar-highlight-color:#a7a7a7;
  21.     scrollbar-3dlight-color:#a7a7a7;
  22.     scrollbar-darkshadow-color:#a7a7a7;
  23.     scrollbar-shadow-color:#a7a7a7;
  24.     scrollbar-arrow-color:#111111;
  25.     scrollbar-track-color:#a7a7a7;
  26. }
  27. .topsearch{
  28.     font-size:10px;
  29. }
  30. h1 { font: bold 1.31em "Arial", Sans-Serif; margin: 0; color: #a3ceff; }
  31. h3 { font: bold 1.5em "Arial", Sans-Serif; margin: 0; color: #ff6600; }
  32. h5 { font: bold 1.31em "Arial", Sans-Serif; margin: 0; color: #8FCF3C; }
  33. h6 { font: bold 1.31em "Arial", Sans-Serif; margin: 0; color: #8FCF3C; }
  34. .catego{
  35.     background: #ffffff;
  36.     width : 200px;
  37.     height: 6px;
  38.     padding: 3px 3px 3px 3px;
  39.     border: 1px dotted #CCCCFF;
  40. }
  41. table.sample {
  42.     width:100%;
  43. }
  44. table.sample th {
  45.    
  46. }
  47. table.sample td {
  48.     width:33%;
  49.     text-align:left;
  50.    
  51.     padding-top: 3px;
  52.     padding-bottom: 3px;
  53.     padding-left: 3px;
  54.     padding-right: 3px;
  55.     -moz-border-radius: 12px;
  56. }
  57. .champs {width: 150px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; border: 1px solid #ff6600; background-color: #000000; font-weight: bold; color: #c2c2c2; text-decoration:none}
  58. .catwdc{
  59.     color:#55A16C;
  60.     text-decoration:none;
  61.     font-size:13px;
  62. }
  63. .catwdc a{
  64.     color:#55A16C;
  65.     text-decoration:none;
  66.     font-size:13px;
  67. }
  68. .catwdc a:hover{
  69.     color:#8FCF3C;
  70.     text-decoration:none;
  71.     font-size:13px;
  72. }
  73. .details{
  74.     color:#8FCF3C;
  75.     text-decoration:none;
  76.     font-size:11px;
  77. }
  78. .details a{
  79.     color:#D16903;
  80.     text-decoration:none;
  81.     font-size:11px;
  82. }
  83. .details a:hover{
  84.     color:#D16903;
  85.     text-decoration:underline;
  86.     font-size:11px;
  87. }
  88. .rss {
  89.     color:#ff6600;
  90.     text-decoration:none;
  91.     font-size:11px;
  92. }
  93. .rss a{
  94.     color:#046380;
  95.     text-decoration:none;
  96.     font-size:11px;
  97. }
  98. .rss a:hover{
  99.     color:#4BB5C1;
  100.     text-decoration:none;
  101.     font-size:11px;
  102. }
  103. .annau{
  104.     color:#ffff00;
  105.     text-decoration:none;
  106.     font-size:28px;
  107. }
  108. .annau:hover{
  109.     color:#F1F1F1;
  110.     text-decoration:none;
  111.     font-size:28px;
  112. }
  113. .sitetable {
  114.     width: 100%;
  115.     border: 1px solid #c2c2c2;
  116.     vertical-align : top;
  117. }
  118. .sitetables {
  119.     width: 100%;
  120.     vertical-align : top;
  121. }
  122. .sitetd {
  123.     border: 1px solid #c2c2c2;
  124. }
  125. .votelargeur {width: 50px;}
  126. a.cat_display {
  127.     text-decoration: none;
  128.     font-weight: bold;
  129.     font-size: 13px;
  130.     color:#333333;
  131. }
  132. a.cat_display:hover {
  133.     text-decoration: none;
  134.     font-weight: bold;
  135.     font-size: 13px;
  136.     color:#CC0000;
  137.     }
  138. a.subcat_display {
  139.     text-decoration: none;
  140.     font-size: 10px;
  141.     border-bottom : 1px dotted #CCC;
  142. }
  143. .votetable {
  144.     background: #ffffff;
  145.     width : 50px;
  146.     height: 92px;
  147.     margin-right: 5px;
  148. }
  149. .vote span.note {
  150. font-size: 9px;
  151. height: 12px;
  152. display: block;
  153. }
  154. .vote span.nombre
  155. {
  156. font-size: 16px;
  157. display: block;
  158. }
  159. .vote a{
  160.     color: #399171;
  161.     font-size: 16px;
  162.     font-weight: bold;
  163. }
  164. .vote a:hover{
  165.     color: #399171;
  166.     font-size: 16px;
  167.     font-weight: bold;
  168. }
  169. /* Onglets fiche site */
  170. #containered {
  171.     font: bold 10px Verdana;
  172.     list-style-type: none;
  173.     text-align: left;
  174.     width: 540px;
  175. }
  176. #containered hr {
  177.     clear: both;
  178.     border: 1px solid #CCC;
  179.     margin-top: 10px;
  180.     width: 50%;
  181. }
  182. #containered ul#mest {   
  183.     font-weight: bold;
  184. }
  185. #containered ul#mest li {
  186.     font: bold 10px Verdana;
  187.     list-style-type: none;
  188.     text-align: left;
  189.     display: inline;
  190.     margin: 1px;
  191. }
  192. #containered ul#mest li a {
  193. text-decoration: none;
  194. }
  195. #containered ul#mest li a:hover {
  196. text-decoration: none;
  197. color: #333333;
  198. }
  199. #containered h1,
  200. #containered .content {
  201.     border: 1px solid #d5d5d5;
  202.     padding: 10px;
  203.     text-align: left;
  204. }
  205. #containered a.current {
  206.     padding: 5px 3px;
  207.     border: 1px solid #d5d5d5;
  208.     background-image: url(images/shadeactive.gif);
  209.     border-bottom-color: white;
  210.     background-color: white;
  211.     color: #333333;
  212.     font-size: 12px;
  213. }
  214. #containered a.ghost  {
  215.     padding: 5px 3px;
  216.     margin-right: 1px;
  217.     border: 1px solid #d5d5d5;
  218.     color: #333333;
  219.     font-size: 12px;
  220.     background: white url(images/shade.gif) top left repeat-x;
  221. }
  222. #containered a.current:hover {
  223.     padding: 5px 3px;
  224.     border: 1px solid #d5d5d5;
  225.     background-image: url(images/shadeactive.gif);
  226.     border-bottom-color: white;
  227.     background-color: white;
  228.     font-size: 12px;
  229.     color: #333333;
  230. }
  231. #containered a.ghost:hover  {
  232.     padding: 5px 3px;
  233.     margin-right: 1px;
  234.     border: 1px solid #d5d5d5;
  235.     color: #333333;
  236.     font-size: 12px;
  237. }
  238. #containered .on {
  239.     display: block;
  240.     text-align: left;
  241. }
  242. #containered .off {
  243.     display: none;
  244. }
  245. form {
  246.     padding:0;
  247.     margin:0;   
  248. }
  249. input, textarea {
  250.     background-color:#fff;
  251.     padding:5px;
  252.     border:1px solid #cdcdcd;   
  253.     margin:0;
  254. }
  255. h2 {
  256.     font-size:22px;
  257.     font-weight:normal;
  258.     color:#757575;
  259.     line-height:27px;
  260.     margin:0;
  261. }
  262. a:link, a:visited {
  263.     color:#757575;
  264.     text-decoration:none;
  265. }
  266. a:hover {
  267.     text-decoration:underline;
  268. }
  269. #top-block {
  270.     width:878px;
  271.     height:92px;
  272.     background-image:url("images/top-block.gif" );
  273.     background-repeat:no-repeat;   
  274.     margin:auto;
  275. }
  276. #site-title a{
  277.     float:left;
  278.     width:270px;
  279.     font-size:26px;
  280.     color:#fff;
  281.     padding:5px 0 0 54px;
  282.     line-height:92px;
  283. }
  284. #site-slogan {
  285.     float:left;
  286.     width:290px;
  287.     width:285px;
  288.     font-size:11px;   
  289.     color:#fff;
  290.     padding:5px 0 0 15px;
  291.     line-height:92px;
  292.     text-align:center;
  293. }
  294. #search-box {
  295.     float:right;
  296.     width:230px;
  297.     padding:0 20px 0 0;
  298.     line-height:92px;
  299.     text-align:right;
  300. }
  301. #search-input {
  302.     width:151px;
  303.     height:19px;
  304.     background-image:url("images/search-background.gif" );   
  305.     background-repeat:no-repeat;   
  306.     border:0;   
  307.     vertical-align:middle;
  308. }   
  309. #search-button {
  310.     width:41px;
  311.     height:29px;
  312.     background-image:url("images/find.gif" );   
  313.     background-repeat:no-repeat;   
  314.     border:0;
  315.     margin:0;
  316.     vertical-align:middle;   
  317. }
  318. #top-divider{
  319.     width:878px;
  320.     height:49px;
  321.     background-image:url("images/top-divider.gif" );
  322.     background-repeat:no-repeat;   
  323.     margin:auto;
  324. }
  325. #top-nav-container {
  326.     width:878px;
  327.     height:60px;
  328.     margin:auto;
  329. }
  330. #top-nav-background {
  331.     float:left;
  332.     width:686px;
  333.     height:40px;
  334.     background-image:url("images/top-nav-background.gif" );
  335.     background-repeat:no-repeat;   
  336.     padding:20px 0 0 15px;   
  337. }
  338. #top-nav-background a {
  339.     font-size:11px;
  340.     font-weight:bold;
  341.     color:#717171;
  342.     background-image:url("images/grey-arrows.gif" );
  343.     background-repeat:no-repeat;   
  344.     padding:0 0 0 20px;
  345.     margin:0 20px 0 0;
  346.     vertical-align:middle;
  347. }
  348. #top-nav-background ul {
  349.     list-style-image:none;
  350.     list-style-type:none;   
  351.     margin:0;
  352. }
  353. #top-nav-background li {
  354.     display:inline;
  355.     list-style-type:none;
  356. }
  357. #date-background {
  358.     float:right;
  359.     width:177px;
  360.     height:60px;
  361.     font-size:11px;
  362.     color:#fff;
  363.     font-weight:bold;
  364.     background-image:url("images/date-background.gif" );
  365.     background-repeat:no-repeat;   
  366.     text-align:center;
  367.     line-height:32px;
  368. }
  369. #main-area {
  370.     width:876px;
  371.     background-color:#fff;
  372.     background-image:url("images/main-gradient.gif" );
  373.     background-repeat:repeat-x;       
  374.     padding:0 1px 0 1px;
  375.     margin:auto;
  376. }
  377. #sidebar {
  378.     float:right;
  379.     width:196px;
  380.     margin:0 10px 0 0;
  381. }
  382. .nav-header {
  383.     width:186px;
  384.     height:33px;
  385.     font-weight:bold;   
  386.     color:#fff;
  387.     background-image:url("images/nav-header.gif" );
  388.     background-repeat:no-repeat;   
  389.     padding:0 10px 0 0;
  390.     margin:0 0 10px 0;
  391.     text-align:right;
  392.     line-height:33px;
  393. }
  394. .nav-header a {
  395.     color:#fff;
  396. }
  397. .nav-content {
  398.     width:186px;
  399.     font-size:11px;
  400.     background-color:#f0f0f0;
  401.     list-style:none;
  402. }
  403. .nav-content ul {
  404.     list-style:none;
  405.     padding:0 10px 0 10px;
  406.     margin:0;
  407. }
  408. .nav-content li {
  409.     background-image: url("images/green-arrows.gif" );
  410.     background-repeat:no-repeat;
  411.     border-bottom:1px dotted #858585;
  412.     padding:2px 0 2px 0;
  413.     margin:0;
  414. }
  415. .nav-content a {
  416.     margin:0 0 0 15px;
  417. }
  418. .nav-footer {
  419.     width:186px;
  420.     height:20px;
  421.     background-image:url("images/nav-footer.gif" );
  422.     background-repeat:no-repeat;       
  423.     margin:0 0 10px 0;
  424. }
  425. #main-content {
  426.     float:left;
  427.     width:610px;
  428.     background-image:url("images/main-content-background.gif" );
  429.     background-repeat:no-repeat;
  430.     padding:30px 20px 20px 30px;
  431.     margin:0 10px 0 0;
  432. }
  433. #data-header{
  434.     width:838px;
  435.     height:20px;
  436.     background-image:url("images/data-header.gif" );
  437.     background-repeat:no-repeat;       
  438.     margin:auto;   
  439. }
  440. #footer-content {
  441.     width:798px;
  442.     font-size:11px;
  443.     background-color:#444444;
  444.     padding:0 20px 0 20px;
  445.     margin:auto;
  446. }
  447. #footer-links {
  448.     float:left;
  449.     width:256px;
  450.     margin:0 15px 0 0;
  451. }
  452. #footer-pages {
  453.     float:left;
  454.     width:256px;
  455.     margin:0 15px 0 0;
  456. }
  457. #footer-posts {
  458.     float:left;
  459.     width:256px;
  460. }
  461. .footer-headers {
  462.     font-size:18px;
  463.     color:#fff;
  464. }
  465. #footer-content ul {
  466.     list-style:none;
  467.     padding:5px 10px 0 10px;
  468. }
  469. #footer-content li {
  470.     background-image: url("images/green-arrows.gif" );
  471.     background-repeat:no-repeat;
  472.     border-bottom:1px dotted #858585;
  473.     padding:2px 0 2px 0;
  474.     margin:0;
  475. }
  476. #footer-content a {
  477.     color:#ccc;
  478.     margin:0 0 0 15px;
  479. }
  480. #data-footer {
  481.     width:878px;
  482.     height:40px;
  483.     background-image:url("images/data-footer.gif" );
  484.     background-repeat:no-repeat;       
  485.     margin:auto;   
  486. }
  487. #copyright {
  488.     width:878px;
  489.     height:50px;
  490.     font-size:11px;
  491.     color:#fff;
  492.     background-image:url("images/copyright.gif" );
  493.     background-repeat:no-repeat;       
  494.     margin:10px auto 0 auto;
  495.     line-height:50px;
  496. }
  497. #sponsor-text {
  498.     float:left;
  499.     padding:0 0 0 20px;
  500. }
  501. #sponsor-text a {
  502.     color:#fff;
  503. }
  504. #copyright-text {
  505.     float:right;
  506.     padding:0 55px 0 0;
  507. }
  508. .post-wrap {
  509.     width:610px;
  510. }
  511. .post-content-wrap {
  512.     float:left;
  513.     width:516px;
  514. }
  515. .post-content-wrap a {
  516.     color:#333;
  517. }
  518. .post-date {
  519.     float:right;
  520.     width:65px;
  521.     height:93px;
  522.     background-repeat:no-repeat;   
  523.     padding:11px 0 0 0;
  524.     margin:0 0 0 20px;
  525.     text-align:center;
  526. }
  527. .post-title a {
  528.     font-size:22px;
  529.     color:#757575;
  530.     line-height:27px;
  531. }
  532. .date-month {
  533.     font-size:12px;
  534.     font-weight:bold;
  535.     color:#fff;   
  536. }
  537. .date-day {
  538.     display:block;
  539.     font-size:25px;
  540.     font-weight:bold;
  541.     color:#fff;   
  542. }
  543. .entry {
  544.     clear:both;
  545.     display:block;
  546. }
  547. .post-info {
  548.     float:left;
  549.     width:532px;
  550.     font-size:11px;
  551.     color:#b2b2b2;
  552.     background-color:#f4f4f4;
  553.     border:1px solid #dedede;
  554.     padding:5px;
  555.     margin:15px 0 25px 0;
  556. }
  557. .post-info a {
  558.     color:#b4b4b4;
  559. }
  560. .post-info-icon {
  561.     vertical-align:middle;
  562.     margin:0 15px 0 15px;
  563. }
  564. .pagination a {
  565.     display:block;
  566.     float:left;
  567.     width:101px;
  568.     height:31px;
  569.     font-size:11px;
  570.     font-weight:bold;
  571.     color:#fff;
  572.     background-image:url("images/button.gif" );
  573.     background-repeat:no-repeat;   
  574.     margin:0 2px 0 0;
  575.     text-align:center;
  576.     line-height:31px;
  577. }
  578. .comment-meta-data {
  579.     font-size:11px;
  580.     color:#006538;   
  581. }
  582. .comment-meta-data a {
  583.     color:#757575;
  584. }
  585. .comment-1 {
  586.     background-color:#f0f0f0;
  587.     padding:10px 15px 10px 15px;   
  588. }
  589. .comment-2 {
  590.     background-color:#fff;
  591.     padding:10px 15px 10px 15px;   
  592. }
  593. #comment-submit {
  594.     width:101px;
  595.     height:31px;
  596.     font-size:11px;
  597.     font-weight:bold;
  598.     color:#fff;
  599.     background-image:url("images/button.gif" );
  600.     background-repeat:no-repeat;   
  601.     border:0;
  602.     padding:0;
  603.     text-align:center;
  604.     line-height:31px;   
  605. }




Il s'agit tout simplement du template AccesGlobes pour Freebloges que j'aimerais utiliser avec joomla.

Un aperçu du template sur www.mecaindex.fr : toute la partie droite 'Annuaire d'entreprises et fournisseurs en usinage' est décalée sous le menu et à priori je ne vois pas pourquoi .

Il y a aussi un défaut d'allignement de la page qui est à gauche au lieu d'être centrée.

Une idée ? :)

Merci,

Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.
Tom's Guide > Forum > Programmation > [CSS] Différence d'alignement entre IE et FX
Aller à :

Il y a 273 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens