I’m not too sure that would work – as these change dynamically, and a change in margin or padding would once again change the layout causing the classes to change and so on.
Does fit_width=’true’ help?
What’s your shortcode and can you send me a link to a demo page?
Cheers
B
Yes, I can sre the problems with that to. But it was been firured out sice I can see it on some places.
Now as a workaround of some kind, I just made the page container for masonry wider so that the bricks will end up on the correct places.
you can check it out on http://www.archie.se/kategori-test password: testingtesting
But it only work when I have the width=’100%’ in the shortcode and it also makes that the images won’t scale down to fit betten on smaller screens. My shortcode:
[cactus-masonry width=’auto’ max_width=’396px’ display_post_titles=’true’ display_post_excerpts=’true’ fit_width=’true’ horizontal_spacing=’58px’ soft_gutter=’0′ vertical_spacing=’20’]
Thank you for the updates!
Hi Murklan,
Sorry for the lateness of my reply. Another option may be to set negative left and right margins on the CM_AREA object equal to 50% of your horizontal spacing, e.g. margin-left: -29px; margin-right: -29px;
If you want the pictures to scale down with the screen size – you can set the images to a percentage size in the shortcode – which will force a number of columns. This will also greatly improve efficiency and remove the need for the inefficient fit_width='true' parameter.
You could also specify img.masonry_brick_img min-width in CSS to limit the scaling on smaller screens or make each image 100% using a CSS @media query for smaller screens.
Just an idea – I hope it helps.