I’m realy newbie here, and starts learning about webflow few hours ago.
How i remove the spaces between the images? I tried so hard to remove this, changing the project on the templates (CMS collection Pages) but nothing goes right. The padding and margins around the image are zero.
I see that you are utilising the CMS for those elements.
Looking at the structure of your ‘Projects’ collection, you are using the Rich Text Block element to display your images. Within the Rich Text Block, each image also has space to input text for a ‘caption’ for the image.
That’s where the extra space between images is coming from.
You may need to change the structure of the collection to use the Image element instead of the Rich Text Block element.
Hope that makes sense.
Here’s an image of the settings:
@knk is right, if you’re just using the Rich Text element for pictures, you could add image fields and style these instead.
However, you may want to add more images than you have fields available so the Rich Text is ideal in this scenario. You can style the images in the Rich Text to have no spacing as follows:
Add a new Rich Text Element above your Dynamic Rich Text Element
Give it the same class name as your CMS Rich Text Element Project Body Copy
You’re adding a negative top margin of -10 which brings all the images in your CMS Rich Text element together without spacing.
NOTE: As you have styled all images by doing this, any time you add an image to your project, the default image without class will inherit this negative margin, until you add a class and style it otherwise.