Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1550 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Problème de mise en page css html IE/firefox

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème de mise en page css html IE/firefox

n°1171612
fabcool
serieux ? naaaan...
Posté le 07-08-2005 à 13:21:45  profilanswer
 

Bonjour à tous,
 
mon problème est le suivant en allant sur le site via IE sur  
 
http://www.alainguy.org/article.php3?id_article=10
 
le cadre le plus clair descend en bas jusqu'au bout du texte alors que sous firefox
 
le cadre ne descend que là ou j'ai spécifié en px donc à la moitié du texte.
 
j'ai tenté de mettre 100% mais je suis limité par la bordure gauche de rubrique
 
#container {  /* sorry, we are using a container because ie badly support body tag*/
 margin: 2px auto;
 min-height: 100%;
 width: 750px;
 
 
Autrement dit c'est moche et pas du tout bon :( pourtant je souhaite avoir le même résultat obtenu avec IE sous firefox.
Que faire ? merci d'avance
 
voici le script css original (la ligne 11 est je pense celle qui joue dans la mise en page globale)
 

Code :
  1. /* Main tags ------------------------------------*/
  2. html, body {
  3.   margin: 0;
  4.   padding:0;
  5.   background:#D2B48C;/*#DEB887; /*#FFF8DC;/*#84CA66; /*#94CD7C;  #75C254;*/
  6.   font:x-small  Arial, Verdana, sans-serif; 
  7.   text-align: center; /* IE5 doesnt support margin auto */
  8. }
  9. #container {  /* sorry, we are using a container because ie badly support body tag*/
  10. margin: 2px auto;
  11. min-height: 750px;
  12. width: 750px;
  13. text-align: left;
  14. background:#F5DEB3; /*#FFEFD5;*/
  15. padding: 8px 8px 0 8px;
  16. font-size: 14px;
  17. line-height: 120%;
  18. }
  19. a {
  20. margin: 3px 0;
  21. color: #f60;
  22. }
  23. a:hover {
  24. color: #f30;
  25. }
  26. img { border: 0 }
  27. h3 span{
  28. display:none;
  29. }
  30. /* structure ------------------------------------*/
  31. #header {
  32. /*background: transparent url(../interface/banner_brest.png) no-repeat;*/
  33. width:  750px;
  34. height: 113px;
  35. }
  36. #headerprint {display:none;}
  37. #main {
  38. /*background: yellow;*/
  39. float: right;
  40. width: 73%;
  41. padding: 5px;
  42. text-align: justify;
  43. }
  44. #menu {
  45. /*background: blue;*/
  46. width: 21%;
  47. float: left;
  48. padding: 0;
  49. font-size: 12px;
  50. }
  51. #footer {
  52. clear: both;
  53. border: 0;
  54. border-top: 1px solid #ddd;
  55. color: #666;
  56. padding: 5px;
  57. margin: 20px 10% 0 10%;
  58. text-align: center;
  59. font-size: 11px;
  60. line-height: 90%;
  61. }
  62. #footerprint {display:none;}
  63. /* elements -------------------------------------- */
  64. #menumain {
  65. margin: 10px 0 0 0;
  66. background: transparent url(../interface/menu_pop_sommaire.png) no-repeat 3px 0;
  67. width: 170px;
  68. padding: 23px 5px 0 4px;
  69. line-height: 136%;
  70. }
  71. /* IE too buggy
  72. #menumain ul {
  73. display:inline;
  74. margin:0;
  75. padding:0;
  76. }
  77. #menumain ul li{
  78.     list-style-type: none;
  79. margin:0;
  80. padding:0;  
  81. border:1px solid white;  
  82. background-image: url(../interface/menu_puce.png);
  83. background-repeat: no-repeat;
  84. background-position: 3% 52%;
  85. padding-left: 0;
  86. }
  87. */
  88. #menumain a {
  89. display: block;
  90. text-decoration: none;
  91. color: #224314;
  92. }
  93. #menumain a:hover {
  94. color: #96A68F;
  95. }
  96. /* icone bref, syndication ... */
  97. h3.breve, h3.rubrique, h3.web, h3.link, h3.keyword, h3.tools {
  98. margin:  0;
  99. padding: 0;
  100. min-width: 160px;
  101. height: 36px;
  102. }
  103. h3.breve    { background: transparent url(../interface/menu_pop_breve.png) no-repeat bottom left;}
  104. h3.rubrique { background: transparent url(../interface/menu_pop_rubrique.png) no-repeat bottom left;}
  105. h3.web      { background: transparent url(../interface/menu_pop_web.png) no-repeat bottom left;}
  106. h3.link     { background: transparent url(../interface/menu_pop_link.png) no-repeat bottom left;}
  107. h3.keyword  { background: transparent url(../interface/menu_pop_keyword.png) no-repeat bottom left;}
  108. h3.tools    { background: transparent url(../interface/menu_pop_tool.png) no-repeat bottom left;
  109.    margin-bottom: 3px;
  110. }
  111. .item {
  112. margin: 2px 0 8px 0;
  113. }
  114. .item a{
  115. text-decoration: none;
  116. color: #626262;
  117. }
  118. .date {
  119. margin: 0 4px 0 0;
  120. font-size: 90%;
  121. }
  122. /* footer -------------------------------------- */
  123. #footer a, #footer a:active, #footer a:link {
  124. color: #5c5c5c;
  125. text-decoration: none;
  126. margin: 0 3px;
  127. }
  128. #footer a:hover {color: #000;}
  129. #footerprint { display: none;}
  130. /* spip article typo -------------------------------------- */
  131. .surtitre  {
  132. font-weight: bold;
  133. margin: 5px 0;
  134. }
  135. h1, h1 a {
  136. color:  #009;
  137. font-size: 22px;
  138. margin:  9px 0 4px 0;
  139. padding: 0;
  140. text-decoration: none;
  141. line-height: 22px;
  142. }
  143. h1 a:hover {
  144. text-decoration: none;
  145. }
  146. h2 {
  147. font-size: 18px;
  148. font-weight: normal;
  149. margin: 5px 0;
  150. }
  151. h4 {
  152. font-size: 16px;
  153. margin: 18px 0 0 0;
  154. }
  155. h4 a {
  156. text-decoration: none
  157. }
  158. .date2 {
  159. color: #777;
  160. text-align: right;
  161. margin: 0 7px;
  162. font-size: 12px;
  163. }
  164. .logo {
  165. float:right;
  166. margin: 20px 0 0 10px;
  167. }
  168. .logo2 {
  169. float:left;
  170. margin: 20px 0 0 10px;
  171. }
  172. .auteur {
  173. text-align: right;
  174. margin: 3px 7px;
  175. }
  176. .soustitre {
  177. margin-top: 10px;
  178. font-style: italic;
  179. }
  180. .chapo     {
  181. padding:   8px 30px 8px 60px;
  182. margin: 5px 0;
  183. line-height: 100%;
  184. }
  185. .texte {}
  186. .hyperlink {}
  187. .ps {
  188. border-top: 1px solid #ccc;
  189. margin-top: 5px;
  190. }
  191. .note {
  192. margin: 5px 0;
  193. font-size: 12px;
  194. }
  195. .doc-item { font-weight: bold;}
  196. .doc-legend { color: #666;}
  197. .doc-descro {}
  198. .metarub {
  199. color: #999;
  200. font-size: 12px;
  201. }
  202. .keywords {
  203. color: #999;
  204. font-size: 12px;
  205. }
  206. /* rubrique *************************************/
  207. .sousrubrique a {
  208. color:  #009;
  209. text-decoration: none;
  210. font-weight: bold;
  211. font-size: 16px;
  212. }
  213. .preview a{
  214. color: #224314;
  215. text-decoration: none;
  216. }
  217. .preview a:hover{
  218. color: #778A6F;
  219. }
  220. .spacer {
  221. clear: both;
  222. }
  223. #pagination {
  224. font-size: 12px;
  225. margin: 15px 0 0 0;
  226. }
  227. #pagination a, #pagination a:hover{
  228. text-decoration: none;
  229. }
  230. /* misc elements *************************************/
  231. #path {
  232. margin: 0;
  233. padding: 6px 0;
  234. font-family:Courrier, Verdana, Arial, sans-serif;
  235. font-size: 12px;
  236. font-weight: bold;
  237. color:  #aaa;
  238. line-height: 100%;
  239. }
  240. #path a {
  241. color: #666;
  242. text-decoration: none;
  243. }
  244. #path a:hover {
  245. color: black;
  246. text-decoration: none;
  247. }
  248. /* spip main class -------------------------------------- */
  249. b.spip  {font-weight: bold;}
  250. p.spip  {padding-left: 3px;}
  251. hr, hr.spip {
  252. display:block;
  253. height: 0;
  254. color: white;
  255. border-style:solid;
  256. border-color: #ccc;
  257. border-width:0px 0px 1px 0px;
  258. }
  259. .spip_encadrer {
  260. margin: 10px 30px 0 30px;
  261. font-size: 12px;
  262. padding: 0;
  263. }
  264. .spip_encadrer b{
  265. display: block;
  266. background: #eee;
  267. padding: 4px;
  268. font-weight: bold;
  269. border-bottom: 1px solid #ccc;
  270. border-top: 1px solid #ccc;
  271. }
  272. a.spip_in, a.spip_out {
  273. color: #f60;
  274. text-decoration: none;
  275. }
  276. a.spip_in:hover,  a.spip_out:hover{
  277. color: red;
  278. text-decoration: none;
  279. }
  280. .spip-admin {
  281. position:absolute;
  282. display:inline;
  283. top: 2px;
  284. left:2px;
  285. }
  286. /* forum -------------------------------------- */
  287. #forumreply{
  288. background: #777;
  289. color: #fff;
  290. margin:  15px 0 0 0;
  291. padding: 1px 5px;
  292. border: 1px solid #000;
  293. }
  294. .forumbg {
  295. background: #eee;
  296. margin: 0;
  297. padding: 7px 10px;
  298. text-align: right;
  299. }
  300. .forum {
  301. margin: 0;
  302. padding: 10px;
  303. background: #eee;
  304. }
  305. .forumtitle {
  306. display: block;
  307. padding: 4px;
  308. font-weight: bold;
  309. background: #eee;
  310. }
  311. .forummeta {
  312. color: #666;
  313. padding-left: 20px;
  314. background: #eee;
  315. }
  316. .forumbody {
  317. color: black;
  318. padding: 4px;
  319. background: #eee;
  320. }
  321. .forumps  {
  322. padding: 4px;
  323. background: #eee;
  324. color: #666;
  325. }
  326. .forumthread {
  327. padding-left:60px;
  328. background: #eee;
  329. }
  330. .forumblink {
  331. padding: 10px;
  332. margin-left: 20px;
  333. background: #eee;
  334. }
  335. /* plan site -------------------------------------------- */
  336. .plan ul {
  337. margin: 2px 0 0 20px;
  338. padding: 2px;
  339. }
  340. .plan li {
  341. line-height: 110%;
  342. list-style-type: none;
  343. padding: 2px;
  344. margin: 0;
  345. }
  346. ul li a.plan,  ul li a.plan:hover{
  347. text-decoration: none;
  348. /*padding-left: 10px;*/
  349. color: #224314;
  350. }
  351. ul li a.plan:hover{
  352. color: #96A68F;
  353. }
  354. ul li a.planrubrique{
  355. text-decoration: none;
  356. font-weight: bold;
  357. color: #009;
  358. }
  359. ul li a.planrubrique:hover{
  360. text-decoration: none;
  361. }
  362.  
  363. /* form elements -------------------------------------- */
  364. form {
  365. margin: 0;
  366. padding: 2px 0;
  367. }
  368. input, textarea, select {
  369. border: 1px solid #ccc;
  370. margin: 1px;
  371. padding: 1px;
  372. font-size: 11px;
  373. }
  374. input.buttonwhite {
  375. border: 1px solid #FFF;
  376. }
  377. .radiobut {
  378. border: 0px solid white;
  379. }
  380. /* rss elements -------------------------------------- */
  381. .rss {
  382. /*width: 45%;*/
  383. border: 1px solid #bbb;
  384. margin: 5px 0;
  385. font-size: 12px;
  386. padding: 0 4px 5px 12px;
  387. text-align: left;
  388. }
  389. .rss h1 a{
  390. color:  #009;
  391. text-decoration: none;
  392. font-weight: bold;
  393. font-size: 16px;
  394. }
  395. .rss h1 a:hover{text-decoration: none;}
  396. /* misc elements -------------------------------------- */
  397. a.special {
  398. text-decoration:none;
  399. color:#009;
  400. }
  401. a.special:hover {
  402. text-decoration:none;
  403. color:#666;
  404. }
  405. .red { color: #f00;}
  406. .green {color: #0a0;}
  407. td { font-size: 11px}


 
edit: balise code :p


Message édité par fabcool le 07-08-2005 à 13:33:19
mood
Publicité
Posté le 07-08-2005 à 13:21:45  profilanswer
 

n°1171617
KangOl
Profil : pointeur
Posté le 07-08-2005 à 13:24:45  profilanswer
 

balise [code] stp :o


---------------
Nos estans firs di nosse pitite patreye...
n°1171628
fabcool
serieux ? naaaan...
Posté le 07-08-2005 à 13:33:41  profilanswer
 

edité :p desolé j'ignorais la balise code  :p

n°1171636
KangOl
Profil : pointeur
Posté le 07-08-2005 à 13:45:42  profilanswer
 

:jap:


---------------
Nos estans firs di nosse pitite patreye...
n°1171640
KangOl
Profil : pointeur
Posté le 07-08-2005 à 13:50:57  profilanswer
 

dans #container, ajoute

overflow : auto;


---------------
Nos estans firs di nosse pitite patreye...
n°1171710
fabcool
serieux ? naaaan...
Posté le 07-08-2005 à 15:36:00  profilanswer
 

hé bien ecoute je te remercie cela semble fonctionner :)

n°1171712
KangOl
Profil : pointeur
Posté le 07-08-2005 à 15:40:43  profilanswer
 

de rien...


---------------
Nos estans firs di nosse pitite patreye...

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Problème de mise en page css html IE/firefox

 

Sujets relatifs
Problème de sérialisationAjout Musiqsur page web en arriere plan
Page précédente au bout de 5 secFonction login pour éditer la page d'un site ?
Problème de lancement de script java en asp :([résolu] [PHP] Problème d'espaces
savoir si popup bloquées sur IE et Firefox[resolu] ouvrir une page html
[php] probleme de synthaxe compteur 
Plus de sujets relatifs à : Problème de mise en page css html IE/firefox


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR