Bloquer dimensions d'une colonne !

Petit nouveau ! | 8 Messages

09 juin 2005, 16:03

Bonjour,

J'ai un petit souci sur mon site.

J'ai créé celui-ci avec Dreamweaver MX à partir d'un tableau.
Le problème est que je n'arrive pas à fixer les dimensions de mon menu pour que celui-ci ait toujours la même dimension. En effet, il s'aggrandit en fonction de la longueur de la page.

Voici la taille d'origine : http://www.actudlrp.com/concours.php
Et le menu qui s'aggrandit : http://www.actudlrp.com

Connaissez-vous une solution ?

En vous en remerciant pas avance.

ViPHP
pjl
ViPHP | 2119 Messages

09 juin 2005, 16:06

1. c'est un problème d'HTML

2. c'est quiand même plus pratique quand le code qui pose problème est posté.

Petit nouveau ! | 8 Messages

09 juin 2005, 16:08

Oh... Excusez-moi. C'est que j'y connais pas grand chose en php, html, etc.

Voici le code qui pose problème :

Code : Tout sélectionner

<td width="201" valign="top" bordercolor="#000000" background="/Images/menu.jpg"><div align="center" class="Style2"> <div align="left"><br> <font face="Verdana" size="2"><strong>Actualit&eacute; </strong><br> &curren; <a href="news.php">News</a> <br> &curren; <a href="Forum/index.php" target="_blank">Forum</a> <br> &curren; <a href="concours.php">Concours</a> <br> <br> <strong>Guide Complet </strong><br> &curren; <a href="dlp.php">Disneyland Park</a> <br> &curren; <a href="wds.php">Walt Disney Studios</a> <br> &curren; <a href="dv.php">Disney Village</a> <br> &curren; <a href="hotels.php">H&ocirc;tels Disney</a> <br> <br> <strong>Divers </strong><br> &curren; <a href="histoire.php">Histoire</a> <br> &curren; <a href="rehabs.php">R&eacute;habilitations</a> <br> &curren; <a href="panel.php">Panel ActuDLRP.com</a> <br> &curren; <a href="pass.php">Pass. Annuels + r&eacute;duc'</a> <br> &curren; <a href="pratique.php">Pratique</a> <br> <br> <strong>Services </strong><br> &curren; <a href="soutien.php">Soutien</a> <br> &curren; <a href="newsletter.php">Newsletter</a> <br> &curren; <a href="contact.php">Contact</a> <br> &curren; <a href="boutique.php">Boutique</a> <br> &curren; <a href="partenaires.php">Partenaires</a> <br> &curren; <a href="equipe.php">Equipe</a></font><br> <br> </div> </div></td>

Mammouth du PHP | 1776 Messages

09 juin 2005, 16:11

Ce serait pas un peu le cafouillage dans tes tables? :?
Car si tu l'as bien realisé tu saurais comment corriger ce petit bug...
ma méthode serait différente:
un <table> special pour le menu de gauche, et un pour la droite. Aussi, tu redimensionne séparémment chaque cellule en n'étant pas dans l'obligation de deformer l'autre côté...
Je sais pas si c'est clair. :roll:
En tout cas j'incluerais des <table> dans les cellules en refaisant manuellement les <table>

Enjoy !

Mammouth du PHP | 1776 Messages

09 juin 2005, 16:12

Oh... Excusez-moi. C'est que j'y connais pas grand chose en php, html, etc.

Voici le code qui pose problème :

Code : Tout sélectionner

<td width="201" valign="top" bordercolor="#000000" background="/Images/menu.jpg"><div align="center" class="Style2"> <div align="left"><br> <font face="Verdana" size="2"><strong>Actualit&eacute; </strong><br> &curren; <a href="news.php">News</a> <br> &curren; <a href="Forum/index.php" target="_blank">Forum</a> <br> &curren; <a href="concours.php">Concours</a> <br> <br> <strong>Guide Complet </strong><br> &curren; <a href="dlp.php">Disneyland Park</a> <br> &curren; <a href="wds.php">Walt Disney Studios</a> <br> &curren; <a href="dv.php">Disney Village</a> <br> &curren; <a href="hotels.php">H&ocirc;tels Disney</a> <br> <br> <strong>Divers </strong><br> &curren; <a href="histoire.php">Histoire</a> <br> &curren; <a href="rehabs.php">R&eacute;habilitations</a> <br> &curren; <a href="panel.php">Panel ActuDLRP.com</a> <br> &curren; <a href="pass.php">Pass. Annuels + r&eacute;duc'</a> <br> &curren; <a href="pratique.php">Pratique</a> <br> <br> <strong>Services </strong><br> &curren; <a href="soutien.php">Soutien</a> <br> &curren; <a href="newsletter.php">Newsletter</a> <br> &curren; <a href="contact.php">Contact</a> <br> &curren; <a href="boutique.php">Boutique</a> <br> &curren; <a href="partenaires.php">Partenaires</a> <br> &curren; <a href="equipe.php">Equipe</a></font><br> <br> </div> </div></td>
c'est bien gentil mais tu nous donne seulement la cellule de ton menu alors que c'est l'ensemble qui fait foirer...

ViPHP
pjl
ViPHP | 2119 Messages

09 juin 2005, 16:14

il suffit de fixer sa hauteur dans le div ou mieux encore dans le style2.

D'ailleurs, ca sert à quoi les 2 divs qui se suivent ?

Code : Tout sélectionner

<div align="center" class="Style2"> <div align="left">

Petit nouveau ! | 8 Messages

09 juin 2005, 16:16

Vous voulez toute la page ? Comme vous voulez.

En fait, il faudrait que la partie gauche reste fixe même si la partie droite s'allonge...

Code : Tout sélectionner

<body> <div align="center"> <table width="800" border="0" bordercolor="#FFFFFF"> <tr> <td colspan="3"><div align="center"><img src="/Images/header.jpg" width="800" height="225"></div></td> </tr> <tr bordercolor="#000000" bgcolor="#CCCCCC"> <td colspan="3"><div align="left"><span class="Style2"><a href="/index.php">Accueil</a></span></div></td> </tr> <tr> <td width="201" valign="top" bordercolor="#000000" background="/Images/menu.jpg"><div align="center" class="Style2"> <div align="left"><br> <font face="Verdana" size="2"><strong>Actualit&eacute; </strong><br> &curren; <a href="news.php">News</a> <br> &curren; <a href="Forum/index.php" target="_blank">Forum</a> <br> &curren; <a href="concours.php">Concours</a> <br> <br> <strong>Guide Complet </strong><br> &curren; <a href="dlp.php">Disneyland Park</a> <br> &curren; <a href="wds.php">Walt Disney Studios</a> <br> &curren; <a href="dv.php">Disney Village</a> <br> &curren; <a href="hotels.php">H&ocirc;tels Disney</a> <br> <br> <strong>Divers </strong><br> &curren; <a href="histoire.php">Histoire</a> <br> &curren; <a href="rehabs.php">R&eacute;habilitations</a> <br> &curren; <a href="panel.php">Panel ActuDLRP.com</a> <br> &curren; <a href="pass.php">Pass. Annuels + r&eacute;duc'</a> <br> &curren; <a href="pratique.php">Pratique</a> <br> <br> <strong>Services </strong><br> &curren; <a href="soutien.php">Soutien</a> <br> &curren; <a href="newsletter.php">Newsletter</a> <br> &curren; <a href="contact.php">Contact</a> <br> &curren; <a href="boutique.php">Boutique</a> <br> &curren; <a href="partenaires.php">Partenaires</a> <br> &curren; <a href="equipe.php">Equipe</a></font><br> <br> </div> </div></td> <td width="1" rowspan="4">&nbsp;</td> <td width="589" rowspan="4" valign="top" bordercolor="#000000" bgcolor="#FFFF99"> <div align="left"> <table width="589" height="100%" border="0" align="center"> <tr> <td colspan="2"><div align="center"><script LANGUAGE="JavaScript" SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&r=20&t=0"></script> <noscript><a href="http://adserver.click-fr.com/click.htm?l=2582&s=2659&b=auto&nbre=123" target="_blank"><img border=0 width=468 height=60 SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&nbre=123&t=4" alt="*** Visitez notre Sponsor ! ***"></a></noscript></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2" bgcolor="#CCCCCC"><div align="left"><br> <u><span class="Style3">ActuDLRP.com - Les 5 derni&egrave;res news<br> </span></u><span class="Style2"><br> <?php $chemin = "News"; $what_aff = "petit_format"; include ("$chemin/aff_news.php"); ?> <br> </span><br> </div></td> </tr> <tr> <td colspan="2"><div align="center"></div></td> </tr> <tr> <td width="288"><div align="center"></div></td> <td width="288" bgcolor="#FBCB5D"><div align="center"><span class="Style4"><u>M&eacute;t&eacute;o du jour</u> </span><br> <br> <script language="JavaScript" src="http://www.meteodirect.com/vignette/meteo1.js"></script> <br> <br><a href="http://www.maxiservices.net/topsite/redirecte.php?id=1403" target="_blank"><img src="http://disneyweb.free.fr/disneyweb.gif" width="150" height="60" border=0 align="middle"></a><br> <br><a href="http://www.root-top.com/topsite/palpatine/in.php?ID=7" target="_blank"><img src="http://img219.echo.cx/img219/2223/parcs9sy.jpg" width="150" height="60" border="0"></a> <br> <br> </div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"><a href="http://www.xiti.com/xiti.asp?s=176818" title="Mesurez votre audience" target="_blank"><img src="http://logv26.xiti.com/hit.xiti?s=176818&p=" alt="Analyse d'audience" width="39" height="25" border="0" align="middle" /></a></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"></div> <div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-5939824186690370"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_page_url = document.location; google_color_border = "CCCCCC"; google_color_bg = "FFFFFF"; google_color_link = "000000"; google_color_url = "666666"; google_color_text = "333333"; google_language = 'fr'; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div></td> </tr> <tr> <td colspan="2"><div align="center"><IFRAME SRC="http://www.allosponsor.com/cgi-bin/iframe_sponsor.eur?num_site_aff=15104" FRAMEBORDER="0" width="467" height="60" SCROLLING="no"></IFRAME></div></td> </tr> </table> </div> </td> </tr> <tr> <td width="201" valign="top"><div align="center"></div></td> </tr> <tr> <td width="201" valign="top"><div align="center"> <?php unset($id_rubrique_apoll2, $id_poll_apoll2, $voter_apoll2); $id_rubrique_apoll2 = 1; $chem_script_apoll2 = "Sondage/"; include($chem_script_apoll2."poll.php"); ?> </div> <div align="center"></div> <div align="center"></div></td> </tr> <tr> <td width="201" valign="bottom"><div align="center"></div></td> </tr> <tr> <td colspan="3"><div align="center"><img src="/Images/footer.jpg" width="800" height="175" border="0"></div></td> </tr> </table> </div> </body>

Petit nouveau ! | 8 Messages

09 juin 2005, 16:18

il suffit de fixer sa hauteur dans le div ou mieux encore dans le style2.

D'ailleurs, ca sert à quoi les 2 divs qui se suivent ?

Code : Tout sélectionner

<div align="center" class="Style2"> <div align="left">
Ok, mais quand je fixe une hauteur, ça ne change rien !

ViPHP
pjl
ViPHP | 2119 Messages

09 juin 2005, 16:19

ah et puis un nom un peu plus clair à tes styles, ca ne peux qu'aider.

Petit nouveau ! | 8 Messages

09 juin 2005, 16:23

Je vais voir si j'y arrive mais pour l'instant, je suis bloqué sur ce truc depuis 1 bonne heure !

J'ai fait une modification du code :

Code : Tout sélectionner

<body> <div align="center"> <table width="800" border="0" bordercolor="#FFFFFF"> <tr> <td colspan="3"><div align="center"><img src="/Images/header.jpg" width="800" height="225"></div></td> </tr> <tr bordercolor="#000000" bgcolor="#CCCCCC"> <td colspan="3"><div align="left"><span class="Style2"><a href="/index.php">Accueil</a></span></div></td> </tr> <tr> <td width="201" height="200" valign="top" bordercolor="#000000" background="/Images/menu.jpg"> <div align="left"><br> <font face="Verdana" size="2"><strong>Actualit&eacute; </strong><br> &curren; <a href="news.php">News</a> <br> &curren; <a href="Forum/index.php" target="_blank">Forum</a> <br> &curren; <a href="concours.php">Concours</a> <br> <br> <strong>Guide Complet </strong><br> &curren; <a href="dlp.php">Disneyland Park</a> <br> &curren; <a href="wds.php">Walt Disney Studios</a> <br> &curren; <a href="dv.php">Disney Village</a> <br> &curren; <a href="hotels.php">H&ocirc;tels Disney</a> <br> <br> <strong>Divers </strong><br> &curren; <a href="histoire.php">Histoire</a> <br> &curren; <a href="rehabs.php">R&eacute;habilitations</a> <br> &curren; <a href="panel.php">Panel ActuDLRP.com</a> <br> &curren; <a href="pass.php">Pass. Annuels + r&eacute;duc'</a> <br> &curren; <a href="pratique.php">Pratique</a> <br> <br> <strong>Services </strong><br> &curren; <a href="soutien.php">Soutien</a> <br> &curren; <a href="newsletter.php">Newsletter</a> <br> &curren; <a href="contact.php">Contact</a> <br> &curren; <a href="boutique.php">Boutique</a> <br> &curren; <a href="partenaires.php">Partenaires</a> <br> &curren; <a href="equipe.php">Equipe</a></font><br> <br> </div> </td> <td width="1" rowspan="4">&nbsp;</td> <td width="589" rowspan="4" valign="top" bordercolor="#000000" bgcolor="#FFFF99"> <div align="left"> <table width="589" height="100%" border="0" align="center"> <tr> <td colspan="2"><div align="center"><script LANGUAGE="JavaScript" SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&r=20&t=0"></script> <noscript><a href="http://adserver.click-fr.com/click.htm?l=2582&s=2659&b=auto&nbre=123" target="_blank"><img border=0 width=468 height=60 SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&nbre=123&t=4" alt="*** Visitez notre Sponsor ! ***"></a></noscript></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2" bgcolor="#CCCCCC"><div align="left"><br> <u><span class="Style3">ActuDLRP.com - Les 5 derni&egrave;res news<br> </span></u><span class="Style2"><br> <?php $chemin = "News"; $what_aff = "petit_format"; include ("$chemin/aff_news.php"); ?> <br> </span><br> </div></td> </tr> <tr> <td colspan="2"><div align="center"></div></td> </tr> <tr> <td width="288"><div align="center"></div></td> <td width="288" bgcolor="#FBCB5D"><div align="center"><span class="Style4"><u>M&eacute;t&eacute;o du jour</u> </span><br> <br> <script language="JavaScript" src="http://www.meteodirect.com/vignette/meteo1.js"></script> <br> <br><a href="http://www.maxiservices.net/topsite/redirecte.php?id=1403" target="_blank"><img src="http://disneyweb.free.fr/disneyweb.gif" width="150" height="60" border=0 align="middle"></a><br> <br><a href="http://www.root-top.com/topsite/palpatine/in.php?ID=7" target="_blank"><img src="http://img219.echo.cx/img219/2223/parcs9sy.jpg" width="150" height="60" border="0"></a> <br> <br> </div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"><a href="http://www.xiti.com/xiti.asp?s=176818" title="Mesurez votre audience" target="_blank"><img src="http://logv26.xiti.com/hit.xiti?s=176818&p=" alt="Analyse d'audience" width="39" height="25" border="0" align="middle" /></a></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"></div> <div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-5939824186690370"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_page_url = document.location; google_color_border = "CCCCCC"; google_color_bg = "FFFFFF"; google_color_link = "000000"; google_color_url = "666666"; google_color_text = "333333"; google_language = 'fr'; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div></td> </tr> <tr> <td colspan="2"><div align="center"><IFRAME SRC="http://www.allosponsor.com/cgi-bin/iframe_sponsor.eur?num_site_aff=15104" FRAMEBORDER="0" width="467" height="60" SCROLLING="no"></IFRAME></div></td> </tr> </table> </div> </td> </tr> <tr> <td width="201" valign="top"><div align="center"></div></td> </tr> <tr> <td width="201" valign="top"><div align="center"> <?php unset($id_rubrique_apoll2, $id_poll_apoll2, $voter_apoll2); $id_rubrique_apoll2 = 1; $chem_script_apoll2 = "Sondage/"; include($chem_script_apoll2."poll.php"); ?> </div> <div align="center"></div> <div align="center"></div></td> </tr> <tr> <td width="201" valign="bottom"><div align="center"></div></td> </tr> <tr> <td colspan="3"><div align="center"><img src="/Images/footer.jpg" width="800" height="175" border="0"></div></td> </tr> </table> </div> </body>
Il ne reste plus qu'un <div> dans le menu !

Petit nouveau ! | 8 Messages

09 juin 2005, 19:50

Plus personne ?

ViPHP
fab
ViPHP | 2657 Messages

09 juin 2005, 21:00

La question est : est-ce que tu comprends le code source que tu viens de nous montrer ou pas ?

Petit nouveau ! | 8 Messages

09 juin 2005, 21:02

Il y a quelques trucs que je comprend mais c'est assez compliqué !

Mammouth du PHP | 1776 Messages

09 juin 2005, 23:53

C'est assez simple en regardant sous WISIWYG...
la colonne de gauche est dépendant de celle de droite...
Moi je serais toi je referais tout cela...car c'est le beau bordel avec pas mal de trucs inutiles à mon goût...

Mammouth du PHP | 1776 Messages

10 juin 2005, 00:05

Code revu et corrigé en vitesse

Code : Tout sélectionner

<html> <head> <title>Titre</title> </head> <body> <center> <table width="800" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><img src="Images/header.jpg" width="800" height="225"></td> </tr> <tr> <td colspan="2"><a href="index.php">Accueil</a></td> </tr> <tr> <td valign="top" width="201"> <table cellpadding="0" cellspacing="0" width="201"> <tr> <td width="201" valign="top" bordercolor="#000000" background="/Images/menu.jpg"> <br> <font face="Verdana" size="2"><strong>Actualit&eacute; </strong><br> &curren; <a href="news.php">News</a> <br> &curren; <a href="Forum/index.php" target="_blank">Forum</a> <br> &curren; <a href="concours.php">Concours</a> <br> <br> <strong>Guide Complet </strong><br> &curren; <a href="dlp.php">Disneyland Park</a> <br> &curren; <a href="wds.php">Walt Disney Studios</a> <br> &curren; <a href="dv.php">Disney Village</a> <br> &curren; <a href="hotels.php">H&ocirc;tels Disney</a> <br> <br> <strong>Divers </strong><br> &curren; <a href="histoire.php">Histoire</a> <br> &curren; <a href="rehabs.php">R&eacute;habilitations</a> <br> &curren; <a href="panel.php">Panel ActuDLRP.com</a> <br> &curren; <a href="pass.php">Pass. Annuels + r&eacute;duc'</a> <br> &curren; <a href="pratique.php">Pratique</a> <br> <br> <strong>Services </strong><br> &curren; <a href="soutien.php">Soutien</a> <br> &curren; <a href="newsletter.php">Newsletter</a> <br> &curren; <a href="contact.php">Contact</a> <br> &curren; <a href="boutique.php">Boutique</a> <br> &curren; <a href="partenaires.php">Partenaires</a> <br> &curren; <a href="equipe.php">Equipe</a></font><br> <br> </td> </tr> </table></td> <td width="599"> <table width="589" height="100%" border="0" align="center"> <tr> <td colspan="2"><div align="center"><script LANGUAGE="JavaScript" SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&r=20&t=0"></script> <noscript><a href="http://adserver.click-fr.com/click.htm?l=2582&s=2659&b=auto&nbre=123" target="_blank"><img border=0 width=468 height=60 SRC="http://adserver.click-fr.com/print.js?l=2582&s=2659&w=468&h=60&nbre=123&t=4" alt="*** Visitez notre Sponsor ! ***"></a></noscript></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2" bgcolor="#CCCCCC"><div align="left"><br> <u><span class="Style3">ActuDLRP.com - Les 5 derni&egrave;res news<br> </span></u><span class="Style2"><br> <?php $chemin = "News"; $what_aff = "petit_format"; include ("$chemin/aff_news.php"); ?> <br> </span><br> </div></td> </tr> <tr> <td colspan="2"><div align="center"></div></td> </tr> <tr> <td width="288"><div align="center"></div></td> <td width="288" bgcolor="#FBCB5D"><div align="center"><span class="Style4"><u>M&eacute;t&eacute;o du jour</u> </span><br> <br> <script language="JavaScript" src="http://www.meteodirect.com/vignette/meteo1.js"></script> <br> <br><a href="http://www.maxiservices.net/topsite/redirecte.php?id=1403" target="_blank"><img src="http://disneyweb.free.fr/disneyweb.gif" width="150" height="60" border=0 align="middle"></a><br> <br><a href="http://www.root-top.com/topsite/palpatine/in.php?ID=7" target="_blank"><img src="http://img219.echo.cx/img219/2223/parcs9sy.jpg" width="150" height="60" border="0"></a> <br> <br> </div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"><a href="http://www.xiti.com/xiti.asp?s=176818" title="Mesurez votre audience" target="_blank"><img src="http://logv26.xiti.com/hit.xiti?s=176818&p=" alt="Analyse d'audience" width="39" height="25" border="0" align="middle" /></a></div></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><div align="center"></div> <div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-5939824186690370"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_page_url = document.location; google_color_border = "CCCCCC"; google_color_bg = "FFFFFF"; google_color_link = "000000"; google_color_url = "666666"; google_color_text = "333333"; google_language = 'fr'; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div></td> </tr> <tr> <td colspan="2"><div align="center"><IFRAME SRC="http://www.allosponsor.com/cgi-bin/iframe_sponsor.eur?num_site_aff=15104" FRAMEBORDER="0" width="467" height="60" SCROLLING="no"></IFRAME></div></td> </tr> </table> </td> </tr> </table> </center> </body> </html>