hauteur auto d'une box ?

webisa75
4 Posts
webisa75 posted this 2 days ago
Ask a Question

Est ce possible d'avoir une hauteur automatique d'une boite ?
si j'ai un texte d'une hauteur variable, j'aimerais que la box qui contient ce texte s'ajuste.
J'utilise nicepage pour faire mes templates de site en php et non comme site seul...
je ne m'y connais pas trop en css. est ce que le css pourrait regler ce probleme ?

Last edited 2 days ago by webisa75

Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 2 days ago

Hello Isabelle,

Yes, the Box element will automatically expand in height based on the amount of text if the Height value or set it to Auto.
You just need to avoid placing the text inside the elements with fixed height.

Additionally, you can add CSSto handle the resizing.
Since you mentioned you embed Nicepage HTML/CSS into PHP templates:
Just make sure the container div is not locked with inline styles like: style="height:300px" . Remove or replace with: style="height:auto".
...................................................
Sincerely,
Anna.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

webisa75
4 Posts
webisa75 posted this 2 days ago

Thanks Anna, i will try

Support Team
Support Team posted this 2 days ago

Hello Isabelle,

You are welcome.

Please reach out if you need any assistance or have further questions.

...................................................
Sincerely,
Anna.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

webisa75
4 Posts
webisa75 posted this yesterday

Hi Anna
j'ai essayé (modifier le css pour les differentes sections ordinateur, ipag, mobile) mais cela modifie totalement la page en mode ipad ou mobile...

You must log in or register to leave comments