WebSite X5Help Center

 
Tom G.
Tom G.
User

Responsive layout question/problem  en

Автор: Tom G.
Просмотрено 1290, Подписчики 2, Размещенный 0  

Here is my problem.

I have three objects in the line:

With resolution over 960px they are in the page center and look like this:

After inserting line breakes for resolution below 960px

the page looks like this:

The three elements are now aligned left.

How can I get them centered for resolution below 960px?

Thanks in advance for the advice!

Tom

Размещено
1 Ответы - 1 Корректно
Tom G.
Tom G.
User
Автор

I got the answer myself! cool

In "MAP / Propertirs... / Expert" area, I put the following code between <style>... </style> for resolution less than 960px:

Without "margin: auto;" the elements are not centered. They are positioned to the left and margin area all the way to the right. The highlighted line positions object in the center of the screen and makes symetrical margin areas on the left and right sides:

#imCellStyle_7 (and _8 and _9) information can be found by analyzing information in "Inspect Source".

I hope that someone will find it useful.

Tom

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