|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tomajacar Smarty n00b
Joined: 27 Jan 2007 Posts: 3
|
Posted: Sun Jan 28, 2007 9:41 am Post subject: fixer la largeur d'une page tpl dans une fonction smarty |
|
|
Bonjour,
Je travaille sur une page tpl (appelons la home.tpl) avec une largeur fixe (ex 760px).
Dans cette page j’ai un div (appelons le specific) vide auquel j’applique une largeur fixe elle aussi (exemple 300px)
Specific se trouve dans un div (appelons le main) qui a une largeur fixe de 600px
Par une fonction smarty, par le biais d’un menu déroulant, je fais apparaître une autre page tpl (appelons la toto.tpl) dans ce fameux div specific
.
Quand je fais cela, la page le div specific passe à 600px au lieu de rester à 300px
Toutes les dimensions sont fixées par css
J’ai l’impression que toto.tpl a pour largeur par defaut 100% et dans ce cas ignore totalement les dimensions de specific et va prendre la largeur du niveau supérieur 760px
Quelqu’un aurait il une idée pour fixer la largeur de toto.tpl à 300px ?
Merci beaucoup !
.t |
|
Back to top |
|
bibine Smarty n00b
Joined: 27 Oct 2006 Posts: 4
|
Posted: Sun Jan 28, 2007 2:01 pm Post subject: |
|
|
Bonjour,
Est-il possible de voir un début de code ?
Mais bon, je pense que le probléme doit venir du css.
C'est possible qu'il y a :
- soit un probléme de position absolute ou relative d'un des bloc
- ou essaye un "overflow : auto " pour le div specific
Espérant t'avoir aider !! |
|
Back to top |
|
tomajacar Smarty n00b
Joined: 27 Jan 2007 Posts: 3
|
Posted: Sun Jan 28, 2007 6:44 pm Post subject: |
|
|
Merci bcp !!! le overflow a marché !
Un grand service que vous m'avez rendu haha
bonne soirée
.t |
|
Back to top |
|
bibine Smarty n00b
Joined: 27 Oct 2006 Posts: 4
|
Posted: Mon Jan 29, 2007 5:24 am Post subject: |
|
|
De rien ! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|