<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT size=2>it's a bit complicated so I had a try myself,</FONT></DIV>
<DIV>this should do the trick</DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><body onResize="repos();"></DIV>
<DIV> </DIV>
<DIV>...</DIV>
<DIV> </DIV>
<DIV>function repos() {<BR> var mapelm = $('map');<BR> var posx =
xPageX(mapelm);<BR> var posy = xPageY(mapelm);<BR> var rootLayer =
mainmap.getDisplay('map').rootDisplayLayer;<BR> xMoveTo(rootLayer, posx,
posy);<BR> var map = mainmap.getDisplay('map');<BR> map._posx =
posx;<BR> map._posx = posx;<BR> <BR> if (typeof(AjaxPlugins)
!= 'undefined'){<BR>
AjaxPlugins.Location.Actions.Pan.mapRootLayerTop =
$('map_rootLayer').style.top;<BR>
AjaxPlugins.Location.Actions.Pan.mapRootLayerLeft =
$('map_rootLayer').style.left;<BR> }<BR>}</DIV>
<DIV> </DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume
champlong</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 10, 2008 10:33
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re : [Cartoweb-users] css,
template, mainmap</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">thanks,
I'll try.<BR>bye, @+<BR><BR>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">-----
Message d'origine ----<BR>De : Simon Georget <<A
href="mailto:simon.georget@gmail.com">simon.georget@gmail.com</A>><BR>À :
carto web <<A
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>><BR>Envoyé
le : Lundi, 10 Mars 2008, 14h26mn 48s<BR>Objet : Re: [Cartoweb-users]
css, template, mainmap<BR><BR>Pity, indeed..<BR><BR>Well, one solution would
be to calculate the size of the window and<BR>positionning the map dynamically
on each resize.<BR><BR><BR><BR>On 3/10/08, Oliver Christen <<A
href="mailto:oliver.christen@camptocamp.com"
ymailto="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>>
wrote:<BR>> it should works but it wont, sadely.<BR>> because the
map image is positionned absolutly by the dhtml, based on the<BR>>
initial relative position of the map container element.<BR>> this is
a limitation of the actual template design.<BR>><BR>>
regards<BR>><BR>> Oliver<BR>><BR>><BR>> > Hi
Guillaume,<BR>> ><BR>> > Your form is a block element
but the map is an image, so an inline<BR>> >
element.<BR>> ><BR>> > to center an inline element you
should use 'text-align:center;'<BR>> ><BR>> > More
explanation here : <A href="http://dorward.me.uk/www/centre/"
target=_blank>http://dorward.me.uk/www/centre/</A><BR>>
><BR>> > It should work ....<BR>> > bye,
simon<BR>> ><BR>> ><BR>> ><BR>>
> On 3/10/08, guillaume champlong <<A href="mailto:goutosig@yahoo.fr"
ymailto="mailto:goutosig@yahoo.fr">goutosig@yahoo.fr</A>>
wrote:<BR>> >><BR>> >> Hi all,<BR>>
>><BR>> >> I am using cw3.4 on win XP pro.<BR>>
>> I have a project in which I would like the table containing the form
and<BR>> >> the<BR>> >> map to be centered at
any time. For this purpose, I added an id to this<BR>> >> table
(id=total) and in cartoweb.css I wrote<BR>> >>
#total{<BR>> >> margin-left:auto;<BR>>
>> margin-right:auto;<BR>> >> }<BR>>
>><BR>> >><BR>> >> Unfortunately with this
code, when the windows size changes, the table is<BR>> >>
re-centered<BR>> >> but the generated image map is not. As a
consequence, an offset appears<BR>> >> between the map and the
rest of the table.<BR>> >><BR>> >> Does anyone
know how to fix this?<BR>> >> thanks<BR>> >>
G.<BR>> >><BR>> >>
________________________________<BR>> >> Envoyé avec
Yahoo! Mail.<BR>> >> Une boite mail plus
intelligente.<BR>> >>
_______________________________________________<BR>> >>
Cartoweb-users mailing list<BR>> >> <A
href="mailto:Cartoweb-users@lists.maptools.org"
ymailto="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR>>
>> <A href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>>
>><BR>> >><BR>> ><BR>> >
_______________________________________________<BR>> >
Cartoweb-users mailing list<BR>> > <A
href="mailto:Cartoweb-users@lists.maptools.org"
ymailto="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR>>
> <A href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>>
><BR>><BR>><BR><BR>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A href="mailto:Cartoweb-users@lists.maptools.org"
ymailto="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></DIV><BR></DIV></DIV><BR>
<HR SIZE=1>
Envoyé avec <A
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo!
Mail</A>.<BR>Une boite mail plus intelligente. </A>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>