Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

More Corporation Questions: How to adjust margins between grids

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi Paul -

at sabina100.cloudaccess.host/100th.html

I want to remove the margin between the Zen Tools image grids in the grid 5 and grid 6 position just below the main menu. What is the best way to do this? Add CSS to "zero" out the margins between the grids or put both zen image grids in the same module?

I did this before using the Revision T3 template over a year ago. Can I use the same technique with Zen Grid 4 templates?

Thanks
Sharon
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
There is margin on grid6

image-spacing.png


But the bulk of the space is space not filled by the images (as marked in the arrows)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
thanks. i forgot I had changed the width of the template. I will still want the images to be flush. Should that work if I set the margins to zero?

Sharon
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
Hi Sharon,

It's hard to be exact without seeing it but think you would need this media query and perhaps more

@media screen and (min-width: 787px) {
#grid6.zg-col-6 {margin-left: 0%;}
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Great Thanks - That seems to work
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
ah cool :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Does it work alright on smaller breakpoints e.g mobile?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I realize it doesn't quite work at widescreen and have yet to check mobile.

Sharon
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
and i will check my image size settings.
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
Looks better now. I adjusted the "scaffolding" width down to 990 pixels and now i have the margins working on widescreens. I haven't finished checking the mobile widths but so far they look good too.
  • ssartjb's Avatar
  • ssartjb
  • 12 Month Developer
  • 343 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
Ah sounds good :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers