I think I should fix this in time so that it can be done in a
consistent manner in my style sheet. Which definition would be best?
I sometimes want to increase or
decrease the vertical distance between some paragraph-like units
of text. For example, I'd like to specify a vertical distance
between an "h2" element and a directly following "p" element.
To achieve this, I could either specify the size of the vertical
space below the "h2" element or the size of the vertical space
above the "p" element, or both, for the case of this combination.
I think I should fix this in time so that it can be done in a
consistent manner in my style sheet. Which definition would be best?
using 'Semantic' elements
No. I think you're confusing the allocation of classes to HTML elements with
<p class="ugy pugy fugy">Example</p>
The above, for example, is a paragraph of type "p" with the class
"ugy", which is directly preceded by an element of the class
"ugy" and directly followed by an element of the class "ugy".
It even works in a browser published more than ten years ago and
in an HTML-to-PDF converter.
Here's a current draft HTML resource that shows the complete
stylesheet I use for formatting paragraphs. This is intended
to become the basis for my future web site. (In the real web
site, the stylesheet will be extern.)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (3 / 13) |
Uptime: | 101:41:59 |
Calls: | 9,682 |
Calls today: | 3 |
Files: | 13,725 |
Messages: | 6,174,993 |