Whenever I try to adjust the margin top (mt-5
) of a h1
heading tag in my HTML using an @media query, it seems that the other conditions are working fine except for the margin. Despite having my CSS sheet linked after the Bootstrap one.
I attempted adding a class to the h1 and targeting all h1
s within that ID without success.
Check out the Codepen here: Codepen link
Here is the snippet of HTML:
<h1 class="mt-5 wcu-title">
Why Choose Your Computer Assistant Ltd?
</h1>
And this is the MEDIA QUERY section of the CSS:
#showcase-wcu h1
{
margin-top: 10px;
font-size: 30px;
width: 60%;
}