[Cartoweb-users] css, template, mainmap

guillaume champlong goutosig at yahoo.fr
Mon Mar 10 05:33:36 EDT 2008


thanks, I'll try.
bye, @+

----- Message d'origine ----
De : Simon Georget <simon.georget at gmail.com>
À : carto web <cartoweb-users at lists.maptools.org>
Envoyé le : Lundi, 10 Mars 2008, 14h26mn 48s
Objet : Re: [Cartoweb-users] css, template, mainmap

Pity, indeed..

Well, one solution would be to calculate the size of the window and
positionning the map dynamically on each resize.



On 3/10/08, Oliver Christen <oliver.christen at camptocamp.com> wrote:
> it should works but it wont, sadely.
>  because the map image is positionned absolutly by the dhtml, based on the
>  initial relative position of the map container element.
>  this is a limitation of the actual template design.
>
>  regards
>
> Oliver
>
>
>  > 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
>  >>
>  >>
>  >
>  > _______________________________________________
>  > Cartoweb-users mailing list
>  > Cartoweb-users at lists.maptools.org
>  > http://lists.maptools.org/mailman/listinfo/cartoweb-users
>  >
>
>

_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users






      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080310/9692ba02/attachment-0001.html


More information about the Cartoweb-users mailing list