I'm currently reimplementing corporate style for our documentation (HTML + CSS + PrinceXML = PDF
) and can't quite fix one thing. What I need are handing section numbers, i.e. headers themselves are left-aligned vertically with the text but section numbers are "hanging" in the left column. Probably the best example to illustrate this is browser's rendering of numbered lists:
Heading 1
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Heading 2
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Essentially, I want to implement the same for headings, for all levels. Is there any sane way to do this in CSS?