CMS Development

DOchieng5
Participant

Any ideas??

Résolue
 

I have just become familiar with the repeater items in hubspot and set up a page with some custom modules using this functionality. My issue is that how can i ensure it is responsive. I would like to have 4 modules side by side when viewing on a desktop and then reduce to 2 module across when viewing on smaller screen. 

 

Thank you for your help!

 

0 Votes
2 Solutions acceptées
LMeert
Solution
Guide | Partenaire solutions Platinum
Guide | Partenaire solutions Platinum

Any ideas??

Résolue

Hi @TitiCuisset@DOchieng5  ( et bonne année/happy new year 😊),

To ensure your modules do display by 4 on desktop and 2 on tablet and below you'll have to use CSS as this is not something you can solve using HubL.

The best way to do that is to use the css property flexbox on the container, define a desktop width for each child and then use a media query to change the width under a certain breakpoint.

Have a look at this stackoverflow thread, it's got the right code for you !

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

 

Best,

Ludwig

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

Voir la solution dans l'envoi d'origine

wlacteo
Solution
Membre

Any ideas??

Résolue

Hi there! Regarding your concern on making your custom modules responsive, you can try using media queries in your CSS code to adjust the layout of your modules based on the device screen size. You can set a breakpoint where the layout will change from four modules side by side to two modules across. Good luck with your Poquoson Idea  project!

 

Voir la solution dans l'envoi d'origine

0 Votes
3 Réponses
wlacteo
Solution
Membre

Any ideas??

Résolue

Hi there! Regarding your concern on making your custom modules responsive, you can try using media queries in your CSS code to adjust the layout of your modules based on the device screen size. You can set a breakpoint where the layout will change from four modules side by side to two modules across. Good luck with your Poquoson Idea  project!

 
0 Votes
TitiCuisset
Gestionnaire de communauté
Gestionnaire de communauté

Any ideas??

Résolue

Hi @DOchieng5 

 

Thank you for reaching out.

 

I want to tag some of our experts here - @Anton @LMeert @JBeatty do you have any thoughts for @DOchieng5 on this? 

 

Thank you!

Best

Tiphaine


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


LMeert
Solution
Guide | Partenaire solutions Platinum
Guide | Partenaire solutions Platinum

Any ideas??

Résolue

Hi @TitiCuisset@DOchieng5  ( et bonne année/happy new year 😊),

To ensure your modules do display by 4 on desktop and 2 on tablet and below you'll have to use CSS as this is not something you can solve using HubL.

The best way to do that is to use the css property flexbox on the container, define a desktop width for each child and then use a media query to change the width under a certain breakpoint.

Have a look at this stackoverflow thread, it's got the right code for you !

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

 

Best,

Ludwig

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !