WebSite X5Help Center

 
M. H.
M. H.
User

Missing space after hyphen  en

Автор: M. H.
Просмотрено 2594, Подписчики 2, Размещенный 0  
Тэги: hyphen,space

Hi,

If I put a hyphen in front a word (space between), the space between the hyphen and the word disappears after I upload the site. Why is that?

Размещено
9 Ответы - 1 Корректно
Incomedia
Michele C.
Incomedia

Hello Michal,

could you please give a detailed example of the steps you take? what object are you using? thank you

Читать больше
Размещено От Michele C.
M. H.
M. H.
User
Автор

Hi, 

It's a text-object. If I write "- test" in the object the space will disappear on the website ("-test"). I have also attached a screenshot.

Читать больше
Размещено От M. H.
Marcus Vinicius Rocha Da Silva
Marcus Vinicius Rocha Da Silva
User

Enable the HTML code in the page and after the hyphen insert the code "&nbsp" to each space you want to add (without the quotation marks!).  Wink

Читать больше
Размещено От Marcus Vinicius Rocha Da Silva
M. H.
M. H.
User
Автор

Thanks Marcus, it worked. But why does this happend? Why doesn't the text-object make a space automatic after a hyphen?

Читать больше
Размещено От M. H.
Andre E
Andre E
Moderator
Лучший пользователь месяца EN

This is part of the HTML code. From the beginning it needed codes (tags) and ignored all spaces. To get a space you need to enter a code like above to say hey i want a space on this spot. This is only at start or end from text blocks needed.

Browse the net for some information about HTML

Читать больше
Размещено От Andre E
M. H.
M. H.
User
Автор

Yes, but why do I need to put a HTML code to add a space after a hyphen? I don't need that between two words, is just after a hyphen... ;)

Читать больше
Размещено От M. H.
Incomedia
Michele C.
Incomedia

Hello Mickey,

I tried and I didn't get the problem, please try with a new project with only a text object and let me know, thank you

Читать больше
Размещено От Michele C.
M. H.
M. H.
User
Автор

Hello Michele,

Sorry for late answer. I created a new object as you said, with only a text object in it, and I still get the same problem. This only occur after I export the website on the web, not in the preview.

Читать больше
Размещено От M. H.
Incomedia
Michele C.
Incomedia

Hello Michael,

sorry but i can't reproduce the issue, it seems to work well for me. What browser do you use to view your site once online?

Читать больше
Размещено От Michele C.