WebSite X5Help Center

 
ANASTASIA M.
ANASTASIA M.
User

How to properly insert an image map?  en

Autor: ANASTASIA M.
Besucht 2059, Followers 1, Geteilt 0  

Hello,

We want to add an <img> <map> inside a text-element or html-element. The problem is that

everytime we try insert it, the height of the element (page cell) adds 650 empty pixels at

the bottom of the cell.

This is the code we use...

<img id="testmap" src="images/test.jpg" alt="" usemap="#testtop" />
<map name="testtop" id="testtop">
<area alt="" href="blog/index.php" shape="rect" coords="3,3,296,189" />
more <area> here...
...
</map>

if we add on the <img .... height="400px"> then the empty pixel disappear but on responsive design the image can't change height. So it appears streached.

Have anyone faced this problem?

X

Gepostet am
4 ANTWORTEN - 1 NüTZLICH - 1 KORREKT
Andre E
Andre E
Moderator
Nutzer des Monats EN

I am not sure if you tested this, but i did not check your code, but check these settings:

The min. height is set in your template style, main template structure, page contents.

Also -if you use a HTML object- there are height adjustments and scrollbars setting in the below left corner in x5.

Together you should be able to get a good page.

Mehr lesen
Gepostet am von Andre E
ANASTASIA M.
ANASTASIA M.
User
Autor

I will might try the min.height but as far we have more problems appear with the image map. It's very hard to handle the coordinates in responsive design. So we will try another approrach by using image sprites and not image maps. Sprites seems easier to handle on responsive design.

Thank you very much Andre

Mehr lesen
Gepostet am von ANASTASIA M.
Andre E
Andre E
Moderator
Nutzer des Monats EN

I can imagine it's difficult in responsive. Hope you succeed.

Mehr lesen
Gepostet am von Andre E