You can add in CSS, but that's not what the + symbol is doing here. That's the sibling selector. h1 + h2 will match an <h2> element that comes right after an <h1> element, such as:
<h1>Title</h1>
<h2>Subtitle</h2>
<div>Text</div>
Math (including addition) can be done within values using calc, such as:
View all comments
Show parent comment
2
u/Lithl Jan 31 '26
You can add in CSS, but that's not what the
+symbol is doing here. That's the sibling selector.h1 + h2will match an <h2> element that comes right after an <h1> element, such as:Math (including addition) can be done within values using
calc, such as: