0
Basically, I’m giving a margin-top on the first content after the header, according to the header size.
The problem is that each page of the site has different elements after the main (div or Section). How can I select the 'child element' of the main even though it is different on each page.
('main > div') and ('main > Section') work, but the margin is applied in both, the correct one would only be in the block below the header...
The site has many pages, I need only one script if possible, or if you have some css solution also accepted.
@No, this would select any element that is "1 level" below main. While the way @Genos responded
main > *:first-child
works correctly as it selects only the first.– Gabplay