By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,246 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,246 IT Pros & Developers. It's quick & easy.

blank line under <h3> tag

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.