Anthony Baker wrote:

> In a site design I'm presently working on, I'm trying to keep
> the coding as semantic and simple as possible, so for content
> elements I'm trying to stick to formats like this:
>
> <div id="block_content">
>    <h4>INTRO LINE</h4>
>    <h1>HEADLINE</h1>
>    <p>Body copy</p>
> </div>
>
> Now, I may be off, but what I'm finding is that on their own,
> heading elements seem to contain their own line spacing or
> padding. Even when I've set the MARGIN and PADDING values for
> heading elements to 0, there's still a fair amount of space.

Can you show this in an online example? I find that if I set all
margins and paddings to 0, there is no space other than the
line-height (which would be there in a div as well).

> Without changing these heading elements to DIVs, is there any
> good way to tighten things further?

Setting the line-height.

> On a whim, I checked to
> see the source code for the NY Times and see how they're
> handling this with their headlines, and they seem to be using
> DIVs for their heading and subheadings more so than heading
> elements.
>
> Or, rather, they'll do something like this:
>
> <div id="block_content">
>    <div class="intro">INTRO LINE</div>
>    <h1>HEADLINE</h1>
>    <p>Body copy</p>
> </div>

Which is not quite the same as using divs for (sub)headings. An
intro line is hardly a heading imho.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to