CMS Development

DOchieng5
参加者

Any ideas??

解決
 

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 いいね!
2件の承認済みベストアンサー
LMeert
解決策
ガイド役 | Platinum Partner
ガイド役 | Platinum Partner

Any ideas??

解決

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 !

元の投稿で解決策を見る

wlacteo
解決策
メンバー

Any ideas??

解決

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 いいね!
3件の返信
wlacteo
解決策
メンバー

Any ideas??

解決

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 いいね!
TitiCuisset
コミュニティーマネージャー
コミュニティーマネージャー

Any ideas??

解決

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
解決策
ガイド役 | Platinum Partner
ガイド役 | Platinum Partner

Any ideas??

解決

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 !