[Cartoweb-users] css, template, mainmap

Simon Georget simon.georget at gmail.com
Mon Mar 10 03:12:37 EDT 2008

Hi Guillaume,

Your form is a block element but the map is an image, so an inline element.

to center an inline element you should use 'text-align:center;'

More explanation here : http://dorward.me.uk/www/centre/

It should work ....
bye, simon

On 3/10/08, guillaume champlong <goutosig at yahoo.fr> wrote:
> Hi all,
> I am using cw3.4 on win XP pro.
> I have a project in which I would like the table containing the form and the
> map to be centered at any time. For this purpose, I added an id to this
> table (id=total) and in cartoweb.css I wrote
> #total{
>  margin-left:auto;
>  margin-right:auto;
> }
> Unfortunately with this code, when the windows size changes, the table is
> re-centered
> but the generated image map is not. As a consequence, an offset appears
> between the map and the rest of the table.
> Does anyone know how to fix this?
> thanks
> G.
>  ________________________________
>  Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente.
> _______________________________________________
>  Cartoweb-users mailing list
>  Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users

More information about the Cartoweb-users mailing list