SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: How to remove newline after h1
-
Dec 30, 2002, 04:21 #1
- Join Date
- Jun 2002
- Posts
- 28
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to remove newline after h1
How can I remove the newline after text in a h1 tag? The text is in a table cell all by itself and there is a huge space under the h1 text that I want to remove. How can this be done?
-
Dec 30, 2002, 05:29 #2
- Join Date
- Jun 2001
- Location
- Adelaide, Australia
- Posts
- 6,441
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
In your CSS file, try...
Code:h1 { padding: 0px; margin: 0px; }
Although just to throw another idea into the potHave you considered applying it to the cell/table itself? Rather than around the text.
-
Dec 30, 2002, 09:01 #3
Re: How to remove newline after h1
Originally posted by keithd
How can I remove the newline after text in a h1 tag? The text is in a table cell all by itself and there is a huge space under the h1 text that I want to remove. How can this be done?Code:<style type="text/css"> h1 { display:inline; } </style>
--Vinnie
-
Dec 30, 2002, 14:59 #4
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Re: Re: How to remove newline after h1
Originally posted by vgarcia
I'd put your inline text within a <span> styled a certain way rather than in an h1 tag. It has more semantic meaning that way.
~~Ian
-
Dec 30, 2002, 15:03 #5
Re: Re: Re: How to remove newline after h1
Originally posted by Ian Glass
Not if Keith's actually using <h1> to designate the main headline. <span> doesn't really have any meaning at all. :-)
~~Ian
--Vinnie
Bookmarks