Help with css syntax please / reduce top margin
-
(Sorry, no public site at present, I can add screen shots if needed)
With the plain Twenty Twenty-five theme, there is a fair bit of white space below the header bar and above the site title. If when Inspecting the site (F12 in Firefox) and selecting the <main … /main> content block :
<main id=”wp–skip-link–target” class=”wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained” style=”margin-top:var(–wp–preset–spacing–60);”>
and if I add a tick (to disable it) to :
[tick] element {
margin-top: var(–wp–preset–spacing–60);
}then the margin reduces (not as much as I’d like, but I’ll take it for now). The box model shows the box top margin reducing from 70px to 19.2 (presumably the 19.2 is set elsewhere)
I am fairly sure I need to add custom css to the theme Content Block under Appearance/Editor/Templates/[the page in use], however, I am very new to this theme, to Gutenberg and to css and as yet have not got the syntax right!
Can anyone give the correct syntax? Thanks.
The topic ‘Help with css syntax please / reduce top margin’ is closed to new replies.
