Może ktoś mi wytłumaczy różnicę w działaniu ::before, a :before, bo jak uzyje w css takiego kodu
Cytat
<style>
h1{ color: blue; }
h1::before{
content: "abc";
color: red;
}
LUB
h1:before{
content: "abc";
color: red;
}
</style>
<h1>niebieski</h1>
h1{ color: blue; }
h1::before{
content: "abc";
color: red;
}
LUB
h1:before{
content: "abc";
color: red;
}
</style>
<h1>niebieski</h1>
Rezultat ten sam, napis abc bedzie niebieski i przed wlasciwym contentem h1 (czerwony). Wiec po co ten podwojny dwukropek?