|
Posted by asdf on 01/09/08 05:07
"richard" <I.dont.care@do.you> wrote in message
news:trk8o3hd8td5aha5liabtj65kn99smp6ou@4ax.com...
>
> <center><h1>sample</h1></center>
> <center><h2>text</h2><h3>line 2</h3></center>
> <center><h3>line 3</h3></center>
> <center>
> blah blah<br>
> yada yada<br>
> </center>
>
>
> Given this short example of code, how does one go about eliminating
> the extraneous space left between the <h(n)> 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.
Navigation:
[Reply to this message]
|