Forum Moderators: not2easy
They've now said that doing that will create extra "white space" between the headline and the text. They're unhappy with this because they say they'll have to do this on every single page, so they look the same.
I'm no designer, but is this really a problem, and is there a solution?
Avoiding "white space" usnder H tags [webmasterworld.com]
Nick
I'm thinking that if the h1 is left-justified because that's the default, and you have it flowing into the text of the following paragraph, it might just force that following paragraph to be left-justified as well. It's just a theory, though. I'll fiddle with it while I wait for my boss to give me something better to do.
If you use a <p> following or enclosing the <h1>, then the <h1> will be on a line by itself, and left-justified even if the <h1> is supposed to be centered. If, however, you place both the <h1> and the associated text within a <div> together and don't use another container for the text, you can have a page that both validates and has centered text with the headers running into the main text.
This is probably not correct content-based markup for large blocks of text, since <div>s are a more generic container than a <p>, and therefore should probably not propperly be used in their place. Sometimes text isn't really a paragraph, though, in which case I don't see a problem with leaving off the <p>. And the validator is going to have a hard time catching you if you use <div> instead of <p> where you should really use <p>
Personally, I think this means I need to double check that my content-based markup is OK where I'm using inline headers. I know two places I have it, it is. Not sure about the rest without looking.