Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #10628

Re: HTML coding help?

From Robert Baer <robertbaer@localnet.com>
Newsgroups alt.computer
Subject Re: HTML coding help?
References <SENXB.16750$tN.13475@fx37.iad> <1mp9a5iurgrz0.7t6zuzgegp2m$.dlg@40tude.net> <oa0YB.66088$nX4.2259@fx06.iad> <ey412axgct4v$.5vym4kpqs9yb$.dlg@40tude.net>
Message-ID <NPkYB.2$mG5.1@fx10.iad> (permalink)
Date 2017-12-13 17:52 -0800

Show all headers | View raw


JJ wrote:
> On Tue, 12 Dec 2017 18:23:15 -0800, Robert Baer wrote:
>>     This has been of help; at least a marker can be placed wherever i
>> like (BIG advance), as follows:
>>
>>           <!-- NOTES
>>     mapHolder height, width values are ignored. Actual size of map image
>> is used in "map" line.
>>     Vertical offset changed by 150px due to mapHolder offset and comments
>> not allowed in style declaration.
>>            -->
>>     <style>
>>       .mapHolder { position: absolute; height: 600px; width: 800; top:
>> -150px; left: -2px }
>>       .map { height: 768px; width: 1024px; }
>>       .marker201 { position: absolute; left: 943px; top: 592px;
>>       .marker202 { position: absolute; left: 241px; top: 402px;
>>       }
>>     </style>
>>
>>     <div class="mapHolder">  <!--  "alt" used primarily for map location
>> comment.-->
>>       <img class="map" src="WorldMap.gif" />
>>       <img class="marker201" src="SPOT.gif" alt="Alexandria NSW 2015
>> Australia.gif" />
>>       <img class="marker202" src="SPOT.gif" alt="ANGLETON TX 77515.gif" />
>>     </div>
>>
>>     However, fiddling has shown that only the first marker is recognized.
>>
>>     Is there a trick to get a number of markers?
>>     Thanks.
>
> The `position: relative` style of the map holder is important.
>
> Place the marker elements *before* the map. There's a big difference between
> the two, which affect the placement of the following element.
>
> With your current code, the markers may be placed outside of the map holder
> element.
>
   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.

Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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