targetting query

Author Posts

jassheridan

Hi Sebastian . I’m using Microthemer to style this page https://solidrecruitment.co.uk/current-vacancies/
The short_description needs some padding because if one of the top 3 items wraps to another row then it doesn’t align properly at the top. So, I’ve put in 30px padding, but this is now adding to the top of each paragraph. Can you help me work out how I should be doing this differently?
Thanks millions


Sebastian

Hey,

You could change the selector from this:

.short_description p

To this:

.short_description p:first-child

That way only the first paragraph inside the .short_description div will have top padding.

You can change the selector’s targeting by clicking it’s name in the top toolbar.

Cheers,
Sebastian


jassheridan

Whoop thanks for quick response. All done. Feeling a bit stupid at how obvious it was. Thanks

You must login or register to reply to this topic.