Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.computer > #10636
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Newsgroups | alt.computer |
| Subject | Re: HTML coding help? |
| References | (1 earlier) <1mp9a5iurgrz0.7t6zuzgegp2m$.dlg@40tude.net> <oa0YB.66088$nX4.2259@fx06.iad> <ey412axgct4v$.5vym4kpqs9yb$.dlg@40tude.net> <NPkYB.2$mG5.1@fx10.iad> <ytr7vqxd2hkm$.13fbph51ng2e9$.dlg@40tude.net> |
| Message-ID | <EJCYB.974$gy4.570@fx35.iad> (permalink) |
| Date | 2017-12-14 14:14 -0800 |
JJ wrote:
> On Wed, 13 Dec 2017 17:52:45 -0800, Robert Baer wrote:
>> When i changed to Relative, i had to increase the offset by 50.
>> Other than that, the new code acted in the same only-one marker way.
>>
>> <style>
>> .mapHolder { position: relative; height: 600px; width: 800; top:
>> -200px; left: -2px }
>> .map { height: 768px; width: 1024px; }
>> .marker201 { position: relative; left: 943px; top: 592px;
>> .marker202 { position: relative; left: 241px; top: 402px;
>> }
>> </style>
>>
>> <div class="mapHolder"> <!-- "alt" used primarily for map location
>> comment.-->
>> <img class="marker201" src="SPOT.gif" alt="Alexandria NSW 2015
>> Australia.gif" />
>> <img class="marker202" src="SPOT.gif" alt="ANGLETON TX 77515.gif" />
>> <img class="map" src="WorldMap.gif" />
>> </div>
>>
>> Any other ideas?
>> Thanks.
>
> You've changed too many from the initial code. Element ordering, and
> positioning styles affect heavily on the rendered layout.
>
> Use below code as a base. And don't change any which may affect the above
> mentioned.
>
> <style>
> .mapHolder { position: relative; }
> .map { height: 768px; width: 1024px; }
> .marker201 { position: absolute; left: 490px; top: 110px; }
> .marker202 { position: absolute; left: 670px; top: 380px; }
> </style>
>
> <div class="mapHolder"> <!-- "alt" used primarily for map location
> comment.-->
> <!-- insert any additional marker(s) here -->
> <img class="marker201"
> src="https://www.smiley-lol.com/smiley/expressifs/yeux/panachy.gif"
> alt="Alexandria NSW 2015
> Australia.gif" />
> <!-- insert any additional marker(s) here -->
> <img class="marker202"
> src="https://www.smiley-lol.com/smiley/expressifs/yeux/panachy.gif"
> alt="ANGLETON TX 77515.gif" />
> <!-- insert any additional marker(s) here -->
> <img class="map" src="http://geology.com/world/europe-map.gif" />
> <!-- don't insert any marker here -->
> </div>
>
> If you want to adjust the map holder element position, wrap it with another
> element (as a parent element), then move the wrapper element. Don't move the
> map holder element, because it has a relative positioning.
>
> For the above code, the dimension of the map element defines the height of
> the map holder element. Currently, the map holder element's width spans to
> the current maximum available layout space. If you don't want this (i.e.
> make its width the same as map element's width), apply `display:
> inline-block` style to the map holder element.
>
That helped a lot!
I found that the map source MUST be a URL for more tha none marker to
work.
Results so far:
<!-- NOTES
note ordering
mapHolder height, width values are ignored.
map Actual size of map image is used.
Vertical offset changed by 150px due to mapHolder offset and comments
not allowed in style declaration.
map class src MUST be via the web; else multiple marker overlays DO
NOT work.
-->
<style>
.mapHolder { position: relative; }
.map { height: 768px; width: 1024px; }
.marker201 { position: absolute; left: 943px; top: 592px; }
.marker202 { position: absolute; left: 241px; top: 402px; }
.marker203 { position: absolute; left: 236px; top: 249px; }
.marker204 { position: absolute; left: 239px; top: 229px; }
.marker205 { position: absolute; left: 236px; top: 257px; }
.marker206 { position: absolute; left: 347px; top: 443px; }
.marker207 { position: absolute; left: 347px; top: 444px; }
.marker208 { position: absolute; left: 583px; top: 122px; }
</style>
<div id=div101 style="position: relative; top: -150px; left: -8px; " >
<div class="mapHolder"> <!-- "alt" used primarily for map
location comment.-->
<img class="marker201" src="SPOT.gif" alt="Alexandria NSW 2015
Australia.gif" />
<img class="marker202" src="SPOT.gif" alt="ANGLETON TX 77515.gif" />
<img class="marker203" src="SPOT.gif" alt="Austin TX 78578.gif" />
<img class="marker204" src="SPOT.gif" alt="Broken Arrow OK
74012.gif" />
<img class="marker205" src="SPOT.gif" alt="Corpus Christi TX
78408.gif" />
<img class="marker206" src="SPOT.gif" alt="Esmeralda 1072 CABA
Argentina.gif" />
<img class="marker207" src="SPOT.gif" alt="Esmeralda 1080 Buenos
Aries, Argentina.gif" />
<img class="marker208" src="SPOT.gif" alt="FI-02151 ESPOO
Finland.GIF" />
<img class="map" src="https://oil4lessllc.com/images/WorldMap.gif" />
<!-- don't insert any marker here -->
</div>
</div>
BUT,,,
Only he first 2 markers are vertically placed properly.
Does not make sense to me.
So i guess i must fudge the numbers accordingly.
Thanks.
Back to alt.computer | Previous | Next — Previous in thread | Find similar | Unroll thread
HTML coding help? Robert Baer <robertbaer@localnet.com> - 2017-12-12 01:51 -0800
Re: HTML coding help? JJ <jj4public@vfemail.net> - 2017-12-13 06:56 +0700
Re: HTML coding help? Robert Baer <robertbaer@localnet.com> - 2017-12-12 18:23 -0800
Re: HTML coding help? JJ <jj4public@vfemail.net> - 2017-12-13 20:15 +0700
Re: HTML coding help? Robert Baer <robertbaer@localnet.com> - 2017-12-13 17:52 -0800
Re: HTML coding help? JJ <jj4public@vfemail.net> - 2017-12-15 00:29 +0700
Re: HTML coding help? Robert Baer <robertbaer@localnet.com> - 2017-12-14 14:14 -0800
csiph-web