image, map, css: incompatible?

Discussion in 'HTML' started by Herbert Plass, Jul 20, 2006.

  1. Hi,

    For a mapped image I tried to set some parameters via linked stylesheet.

    ..zone {
    width: 600px;
    margin-left: auto;
    }

    <img class="zone" src="images/pict0387.jpg" usemap="#map" />
    <map name="map" >
    <area ..... />
    </map>

    Unfortunately this does not work: the links given in the map are inactive
    (no cursor-change, no reaction). When I remove the class, the map works as
    expected. Entering the parameters "conventional as width="600" ... the map
    is still alive.

    Hence my question:
    Did I miss some information (please give me a hint) or is it not
    possible to combine css and mapped images.

    Thanks for helping
    Herbert
     
    Herbert Plass, Jul 20, 2006
    #1
    1. Advertising

  2. Herbert Plass

    Els Guest

    Herbert Plass wrote:

    > Hi,
    >
    > For a mapped image I tried to set some parameters via linked stylesheet.
    >
    > .zone {
    > width: 600px;
    > margin-left: auto;
    > }
    >
    > <img class="zone" src="images/pict0387.jpg" usemap="#map" />
    > <map name="map" >
    > <area ..... />
    > </map>
    >
    > Unfortunately this does not work: the links given in the map are inactive
    > (no cursor-change, no reaction). When I remove the class, the map works as
    > expected. Entering the parameters "conventional as width="600" ... the map
    > is still alive.
    >
    > Hence my question:
    > Did I miss some information (please give me a hint) or is it not
    > possible to combine css and mapped images.


    Do you have a URL of the CSS version so people can examine it?

    --
    Els http://locusmeus.com/
     
    Els, Jul 20, 2006
    #2
    1. Advertising

  3. Herbert Plass

    mbstevens Guest

    On Thu, 20 Jul 2006 23:54:04 +0200, Herbert Plass wrote:

    > Hence my question:
    > Did I miss some information (please give me a hint) or is it not
    > possible to combine css and mapped images.
    >
    > Thanks for helping
    > Herbert


    This doesn't answer your question _exactly_, but I think you should
    have a read here:
    http://www.alistapart.com/articles/imagemap/
     
    mbstevens, Jul 20, 2006
    #3
  4. Herbert Plass

    Guest

    mbstevens schrieb:

    > On Thu, 20 Jul 2006 23:54:04 +0200, Herbert Plass wrote:
    >
    > > Hence my question:
    > > Did I miss some information (please give me a hint) or is it not
    > > possible to combine css and mapped images.
    > >
    > > Thanks for helping
    > > Herbert

    >
    > This doesn't answer your question _exactly_, but I think you should
    > have a read here:
    > http://www.alistapart.com/articles/imagemap/


    Thanks for the link!

    I really missed something: The image and its map were designed with a
    width of 900, within the html-code the width was set to 600. As a
    consequence the map did not match anymore. Unfortunately both
    test-areas were outside the reduced image so when I removed the style,
    the image had a width of 900, the map did as expected, when I added the
    style the image was reduced to 600 and ... see above.

    Sorry for bothering with my problem which was simply a faulty code.

    Thanks
    Herbert
     
    , Jul 21, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe
    Replies:
    0
    Views:
    689
  2. Luigi Donatello Asero

    Image map in CSS.

    Luigi Donatello Asero, Sep 1, 2003, in forum: HTML
    Replies:
    1
    Views:
    608
    David Dorward
    Sep 1, 2003
  3. OAM
    Replies:
    1
    Views:
    509
    Breklin
    Oct 24, 2006
  4. John Doe

    image map > css

    John Doe, Jun 7, 2007, in forum: HTML
    Replies:
    3
    Views:
    632
    Jukka K. Korpela
    Jun 7, 2007
  5. Ryan Sullivan

    Javascript Image Viewer from Image Map

    Ryan Sullivan, Feb 29, 2004, in forum: Javascript
    Replies:
    3
    Views:
    261
Loading...

Share This Page