1
I’m in doubt of applying some effects to css. I tried with the following css selectors:
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
margin: 0 0 0.75em 0;
}
h1~p, h2~p, h3~p, h4~p, h5~p, h6~p {
margin: 0 0 0.75em 0;
}
h1>p, h2>p, h3>p, h4>p, h5>p, h6>p {
margin: 0 0 0.75em 0;
}
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
margin: 0 0 0.75em 0;
}
The idea is that after typing the TAG <h6></h6>
apply a space to enter the TAG <p></p>
, within a text structure <div></div>
for example;
Because I already use the space between TAG’s <p></p>
and only need to <h1><h6>
.
Can you explain better ? How so space to type a paragraph tag ?
– Edilson
Well after I typed, he automatically made room for the paragraph:
<h6>Subtitulo</h6>
-Space-<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugiat dolorum non, ab quisquam consequatur ullam necessitatibus in sit placeat aperiam!</p>
– iLeonardo Carvalho
They are both tags with spacing after content, the only difference is that tags
h
define headers and tagp
define paragraphs, at least you would have to remove tag spacingh6
usingmargin:0;
and then useh6+p { margin:.75em 0 0 0; }
.– Edilson