471,073 Members | 1,115 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

blank line under <h3> tag

Is there a way I can get rid of a blank like under an <h3></h3> tag?
without using css

Thanks in advance
Jul 20 '05 #1
2 2617
Danny wrote:
Is there a way I can get rid of a blank like under an <h3></h3> tag?
without using css


I don't know. But such things are so easy with CSS, so why try? (Is there a
technical reason for not using CSS in this case?)

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #2
Tim
On Thu, 01 Apr 2004 10:21:36 GMT,
"Danny" <da********@hotmail.com> posted:
Is there a way I can get rid of a blank like under an <h3></h3> tag?
without using css


Can't be done. Unless you've actually typed in a blank line (e.g.
<p>&nbsp;</p>) under the heading, which you could remove.

What you (normally) have is some blank spacing between the heading and the
following content, you can use CSS to adjust the spacing. I suppose the
question is do you want to avoid using CSS completely, or just don't want
to use yet another file with the page?

Depending on the circumstances you'd want to change the padding and/or
margins along the bottom of that H3 element, and possibly also the padding
and/or margins along the top of the next element after it.

You can remove the spacing under the H3 simply like this:
<h3 style="padding-bottom: 0; margin-bottom: 0;">example</h3>
And something similar for the top margin/padding for whatever's after it,
if you need to.

That's just one example. You can link to a separate CSS file, or you can
put a set of CSS rules into the HTML head (to cover more than just one
instance of restyling elements on the page).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Harlan Messinger | last post: by
1 post views Thread by John Rowe | last post: by
1 post views Thread by Jim Storey | last post: by
4 posts views Thread by Alan Silver | last post: by
4 posts views Thread by Christofer Dutz | last post: by
10 posts views Thread by Michael7 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.