My doubt is exactly the title of this topic, "How do I select the first element of a page ?" I have to select the first element of a page, because sometimes there is a element at the top of the page that have a big margin for example and I want to remove it.
<div>
<p> ... big text ... </p>
<h1 style="padding-top: 100px"> ... something ... </h1>
<div>
Every h1 that starts the page, I want to set padding-top: 0px.
Sorry if I could not find anything like this at forum.
<div>
<p> ... big text ... </p>
<h1 style="padding-top: 100px"> ... something ... </h1>
<div>
Every h1 that starts the page, I want to set padding-top: 0px.
Sorry if I could not find anything like this at forum.