If I have a header tag <h1 class="hc-reform">title</h1>
h1.hc-reform{
float:left;
font-size:30px;
color:#0e73bb;
font-weight:bold;
margin:10px 0px;
}
and after that I have a paragraph <p>stuff here</p>
.
How can I ensure using CSS that every <p>
tag that follows the h1.hc-reform
to use: clear:both;
would that be:
h1.hc-reform > p{
clear:both;
}
for some reason that's not working.
p
that comes just afterh1.hc-reform
. Then again it might be the only one that theclear: both
needs to be applied on for it to work since it simply clears theh1
float, so it's still a valid answer. – Threesquare