To lock div "body" size

Julien_Pautret / 2014-06-07 12:23:15   

Hi everyone,

on my website I worked in % because I wanted it to be able to adjust to each screen size. It works well but I would like to know if there is a mean to lock in a minimum size (in px and not in %) the div "body".
Or at least to add a new div (index.php) that will be the biggest frame in witch everything else is.

I hope my question is clear.

Thank you
julienpautret.fr/index.php/territoire/o-le-hameau-nouveau/

Vaska A / 2014-06-07 12:32:56   

min-width

It's a CSS property - probably should look it up before you use it.

Julien_Pautret / 2014-06-08 17:31:49   

Hi Vaska,
Thank you for your answer.
Of course" min-width" seems to be the perfect property. I alrady use it in % on my other div.
My question is more about to apply it on my div "body" in css.
When I code
body {
min-width :1500px;
}
It has no effect.

Is it possible to add a new div (index.php) that will be the biggest frame in witch everything else is and that I can manage with my css.
Like this for example:


{{obj_itop}}


{{obj_ibot}}










Thank you

Vaska A / 2014-06-08 18:00:41   

You can't do that with body.

I think what you want is to control the width of #exhibit or even #exhibit .container.

Or, wrap all the html in a new #wrapper div...

This thread has been closed, thank you.