Removing unnecessary white space on WordPress website – SitePoint

HI
I’m developing a website for a local museum in WordPress – see www.eastsurreymuseum.com.
I’m having problems getting some spacing right. For example, or both the “home”, and “visit” pages, I’d like to reduce the space between the green header section and the first image/text by about 1cm.
WordPress’s “Happiness Engineers” haven’t been much help, glibly telling me to change the theme to 2024 or similar, which will completely change the layout of the website, so I suppose I need some CSS.
I struggle with CSS – I haven’t really done much coding since my days as a COBOL programmer in the last century – but I have already managed to write some CSS code which has improved the website’s appearance: I’ve added this to the foot of this post
Could anyone help me?
Thanks!
My CSS:
One clue: if you look at the pages which start with images or columns containing images (e.g. Home, Visit, Events) they all have too much space between the green header and the first image, but some other pages which are purely text (e.g. “Our collections”) do not.
The margins are controlled with the following rule which defaults to 8rem and 6rem for smaller screens.
You can change it like so.
Thanks Paul – much appreciated!
Powered by Discourse, best viewed with JavaScript enabled

source

Leave a Reply

Your email address will not be published. Required fields are marked *