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

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: 17 weeks 1 day ago
OULLINS
Timezone: GMT+2
Joined: 2019-11-22
Posts: 3
Points: 3

To select all images but the

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