Hello,

I've been having trouble setting up text where I want it to be. Another KB article says we need to use the custom html object to add text to maps. This works okay in the middle of the map, but not for text at the top of the screen.

I have to set up a title at the very top of the map. With the html object, it seems impossible as the text I entered in the "html before" section gets placed below the object's box when it is at it's minimum height of 40px. Because of this, there is always a bar of unused space at the top of the screen that could be used for better placement of the other objects on the map.

This is a problem in all our many maps. How can this be fixed ?

Thank you


Article Comments

Do you mean the gap covered by the red line?

image

Or is yours placed even lower?


May, 2016 - Permalink

It seem you are able to do what I want. Mine is placed a lot lower.

When I place text as a title in the map editor, it gets placed below the object box.

Here is an example : the title "Réseau Hiddenhausen" should be inside the box. Because it isn't and because I can't reduce the object any further, a 40px space on top is wasted.

example

Since it is a title, it need to be large. I did a research on how to do that in html and I found that <p style="font-size:"> is what I need.

This space is much larger in my editor and maps than in your example, I don't know why.


May, 2016 - Permalink

I think you're using the wrong map object - are you using [Custom HTML] > [Custom HTML Object]? And could you also try to use span instead of p?


May, 2016 - Permalink

That was it !

I am indeed using the [Custom HTML] > [Custom HTML Object], but the span instead of p replaced the text inside the object's box. example-fixed

Good to know for all the HTML newbies like myself !

Thank you very much


May, 2016 - Permalink

Ha :) It almost escaped me as well ;)


May, 2016 - Permalink