WebSite X5Help Center

 
Nigel P.
Nigel P.
User

Page Menu Alignment V12 Pro  en

Автор: Nigel P.
Просмотрено 1738, Подписчики 1, Размещенный 0  

I have a website that the customer requires that the menu titles are centralised in the Menu Bar, the menu wraps around over 2 lines which breaks and centres nicely in V10 & V11. In V12 the settings are ignored and default to the left.

How to show fault.

1)      Create New Project in V12 , I am using the ‘Pro’ version

2)      {1} Select General Settings -> Template Style -> ‘Main Template Structure’ -> Horizontal – Menu below the header -> ‘Page Section’ – select ‘Menu’ -> Content properties – Set alignment to ‘Centre’ -> then ‘Preview’. You may need to apply background colour to see the positioning, but you will see the menu centred between the Right and Left margins.

3)      {2} Map Creation – Add  4 new pages to the Map (don’t need to enter any details) -> then ‘Preview’. The Menu will now appear in 2 lines but justified to the left even though the settings are set to centre.

This worked OK in V10 and V11 but not in V12

Размещено
4 Ответы
Incomedia
Claudio D.
Incomedia

Hello Nigel,

The behaviour is correct since now the menu is no longer composed by images but it uses a text and since the menu is wide as the menu bar it moves only a few pixel and any change could bring issues to the responsive menu.

Many thanks!

Читать больше
Размещено От Claudio D.
John S.
John S.
User

Hello Nigel

You could perhaps in template costumisation, insert html code.

The html-code could look something like :

<style>

#imMnMn{position:fixed; top: 0px; height: 40px; width: 100%; z-index: 1000;}

</style>

The "fixed" makes the menu always be visible when scrolling on a page.

Hope this is helpful.

You can of course style it Your own way.

Kind regards

Schwartz

Читать больше
Размещено От John S.
John S.
John S.
User

Hello Nigel

Forgot : You set the html code in the header.

Читать больше
Размещено От John S.
Nigel P.
Nigel P.
User
Автор

Will check it out later as I'm on holiday at the moment and my wife doesnt want me working. 

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