[Cartoweb-users] css, template, mainmap

Oliver Christen oliver.christen at camptocamp.com
Mon Mar 10 04:40:35 EDT 2008


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
> 



More information about the Cartoweb-users mailing list