Forum Moderators: not2easy

Message Too Old, No Replies

Fix the width of a tpl page in a smarty framework using css

I am stuck in cul de sac :/

         

tomajacar

6:36 pm on Jan 27, 2007 (gmt 0)

10+ Year Member



Hello there,

I am working on a tpl page (let's call it home.tpl) with a fixed width (760px).
In that page, I have an empty div (that i call specific) for which I apply a fixed width too (300px).
That specific div is in a « main » div with a fixed width of 600px.

Using a smarty framework via a drop down, I display a new page (let's say toto.tpl) in that specific div.
When I do that, the new page in the specific div appears to be 600px wide instead of the 300px that I set in the div.

All widths are defined via css.
It seems that toto.tpl defaults to a 100% width instead of being restricted to the width of toto.tpl (300px)

Would anyone know how I can set the width of toto.tpl to 300px?

Any help would br greatly appreciated!

Thank you,
.t

Robin_reala

10:40 pm on Feb 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think we’re going to need a little more info here. How are you applying your widths in the first place? Can you give us some sample HTML and CSS code for what you’re attempting to do?