<h1> spacing

<h1> spacing

am 09.01.2008 06:01:39 von unknown

Post removed (X-No-Archive: yes)

Re: <h1> spacing

am 09.01.2008 06:07:57 von 23s

"richard" wrote in message
news:trk8o3hd8td5aha5liabtj65kn99smp6ou@4ax.com...
>
>

sample


>

text

line 2


>

line 3


>

> blah blah

> yada yada

>

>
>
> Given this short example of code, how does one go about eliminating
> the extraneous space left between the tags?
> So that "line 2" would appear directly under "text" as any natural
> line would.

css:

h1, h2, h3, h4, h5, h6 {
padding: 0;
margin: 0;
}

Of course, one wouldn't do this if one was following the credo of semantic
markup.

Headings have nothing to do with appearance, and everything to do with
logical document structure.

Re: <h1> spacing

am 09.01.2008 06:12:41 von dorayme

In article ,
richard wrote:

>

sample


>

text

line 2


>

line 3


>

> blah blah

> yada yada

>

>
>
> Given this short example of code, how does one go about eliminating
> the extraneous space left between the tags?
> So that "line 2" would appear directly under "text" as any natural
> line would.

You would not use center because you would control the problem
you are concerned with by specifying padding and margins for your
heading elements, especially the top and bottom margins, and
while at it would do the job of centering the headings (if they
are short headings, text-align: center will do).

--
dorayme

Re: <h1> spacing

am 09.01.2008 06:20:19 von unknown

Post removed (X-No-Archive: yes)