1 reply [Last post]
Benja
Benja's picture
Offline
newbie
Last seen: 2 weeks 5 days ago
Timezone: GMT+2
Joined: 2020-03-18
Posts: 2
Points: 4

Hi,

I'm new to CSS and have a hard time finding the correct selectors and classes.

On this blogpost: https://www.a-c-d.net/colorful-space-cowboy-illustrations-by-dalek2020/

I have a wordpress theme and use gutenberg image gallery (wordpress).

I want to add a space between each image except the last one.

I gave the gallery Additional CSS Class: space_gallery

I tried different classes and selectors without luck.

Thanks

Ben

AlainPre
AlainPre's picture
Offline
newbie
OULLINS
Last seen: 2 weeks 13 hours ago
OULLINS
Timezone: GMT+2
Joined: 2019-11-22
Posts: 5
Points: 5

To select all images but the

To select all images but the last, try this :
:not(:last-child)