CMS Development

borkacer
Miembro

Centering Flexible Columns within a module group

resolver

Hi Community,

 

I am having trouble vertically centering flexible columns within a module group. Here is how it looks now in CMS hub :

borkacer_4-1636112944039.png

 

This is the layout in the Design manager:

borkacer_1-1636112430880.png

 

Each flexible column has a width: 15% assigned in the "inline styling". 

The columns are under a module group with a CSS class ".container-equal-columns":

borkacer_2-1636112564064.png

 

There is also another module group "5 columns" with a CSS class ".columns-service-page":

borkacer_3-1636112721132.png

 

Can anybody help me to distribute those columns evenly and center vertically? I would like the width of the whole group module to stay 95% of the page and width of each flexible column 15%.

 

Thank you

 

 

0 Me gusta
1 Soluciones aceptada
Oezcan
Solución
Colaborador líder | Partner nivel Diamond
Colaborador líder | Partner nivel Diamond

Centering Flexible Columns within a module group

resolver

Hey  @borkacer , 

i tried another variant and i'm more satisfied with it:

 

.container-equal-columns {
width: 80% !important;
}
 
and your .row-fluid: 
 
.row-fluid {
display: flex;
justify-content: center;
}
 
Oezcan_0-1636120141416.png

 

please excuse my other solution beforehand if it did not help.
 
 

best regards
 
Özcan
Oezcan Eser Signature

Ver la solución en mensaje original publicado

7 Respuestas 7
Oezcan
Colaborador líder | Partner nivel Diamond
Colaborador líder | Partner nivel Diamond

Centering Flexible Columns within a module group

resolver

Hello @borkacer ,

 

did my suggestion help you? Were you able to center the modules? If not here is another solution:

 

.container-equal-columns .row-fluid {
width: 95%;
margin: 0 auto;
}

 

Please let me know if we can help you.

 

Best regards,

Özcan

Oezcan Eser Signature
0 Me gusta
webdew
Guía | Partner nivel Platinum
Guía | Partner nivel Platinum

Centering Flexible Columns within a module group

resolver

Hi @borkacer ,

Please try this CSS:

if not shareme LIVE Url i will check and send you code

.container-equal-columns .row-fluid {
display: flex;
justify-content: center
}

.columns-service-page{
display: flex;
justify-content: center
}


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 Me gusta
Oezcan
Solución
Colaborador líder | Partner nivel Diamond
Colaborador líder | Partner nivel Diamond

Centering Flexible Columns within a module group

resolver

Hey  @borkacer , 

i tried another variant and i'm more satisfied with it:

 

.container-equal-columns {
width: 80% !important;
}
 
and your .row-fluid: 
 
.row-fluid {
display: flex;
justify-content: center;
}
 
Oezcan_0-1636120141416.png

 

please excuse my other solution beforehand if it did not help.
 
 

best regards
 
Özcan
Oezcan Eser Signature
Oezcan
Colaborador líder | Partner nivel Diamond
Colaborador líder | Partner nivel Diamond

Centering Flexible Columns within a module group

resolver

Hey @borkacer ,

 

i tried with

 

.container-equal-columns {

margin: 0 auto;

}

 

.container-equal-columns .row-fluid {

display: flex;

justify-content: center

}

 

Oezcan_0-1636117825845.png

 

Oezcan_1-1636117881071.png

 

Maybe it will work that way for you too

 

best regards,

 

Özcan

Oezcan Eser Signature
Teun
Experto reconocido | Partner nivel Elite
Experto reconocido | Partner nivel Elite

Centering Flexible Columns within a module group

resolver

Hi @borkacer ,

 

Can you share the page? Might be able to help out!



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Oezcan
Colaborador líder | Partner nivel Diamond
Colaborador líder | Partner nivel Diamond

Centering Flexible Columns within a module group

resolver

Hi @borkacer ,

 

did you try display: flex and justify-content:  center

or justify-content: space-between/around/evenly for container-equal-columns?

 

Maybe display: grid can also help.

 

Here are one guide for display flex and here for display grid!

 

Best regards,

 

Özcan

 

Oezcan Eser Signature
borkacer
Miembro

Centering Flexible Columns within a module group

resolver

Hey @Oezcan ,

 

I have tried all of that, in different combinations as well 😀 and with "margin: 0 auto !important" and still nothing. All the columns are still aligned to the left

0 Me gusta