Thank you everyone for this.
So, if I understand this correctly, in an XHTML doc, the H1 is (or can be), nothing but hierarchy?
Quote:
Sometimes I think it is very unfortunate that browser have a built-in stylesheet for tags which creates this confusion
|
...that's exactly right. Even in
Sigil, once I apply an h1-4, there are preset formatting to these. Bold/larger size, etc. This is why I was a bit confused about Jellby's solution.
However, I tried this solution and my image, which used to be centered, now has aligned itself to the left. I assume this is because I had created a style for the img tag in the stylesheet:
Code:
img.center {
display: block;
margin-left: auto;
margin-right: auto;
but since I am not using the
img tag, but an H1, it no longer stays centered. Do I need to create a center "rule" for it to obey, or is there any other way to keep this image centered, and still use the h1 tag?