473,414 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 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 2685
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Harlan Messinger | last post by:
Different pages on a web site can vary in the level of header to which they descend. One short page may have only <h1>, or <h1> and <h2>. Another, detailed page, might get all the way down to <h6>....
2
by: Ethan | last post by:
I'm trying to set up a page with a header and 2 columns. I would like to use <div>s rather than tables. The page is here... http://64.142.13.246/style_testing_site/style_model2.htm In both IE...
1
by: John Rowe | last post by:
I run the web site for a University department. A few of my authors will carefully write: <h3>Title</h3> <p>Some text here.</p> <p>Second paragraph.</p> Most of us can't be bothered(!): ...
1
by: Jim Storey | last post by:
Hi, I'm trying to compress my text vertically. After every <H3> there is a double line space before my <UL> begins. I want the <UL> right below the <H3>. My output text looks like: <H3> <UL> ...
4
by: Alan Silver | last post by:
Hello, Please pardon what is probably a dumb question, but if I have HTML like this... <div> <h3>Ferrets</h3> </div> and CSS like this...
4
by: Christofer Dutz | last post by:
Hi, I am having a small problem, that is driving me nuts. My application reads some Xml and runs 2 Xsl Transformations to generate HTML. As soon as my second XSL introduces some <br/tags, the...
14
by: Linda Jimerson | last post by:
Hi - I'm using xhtml 1.0 and css 2.0 to code my website. I've run into an odd problem. I have a simple <h3> element (centered) under my photo, but as you can see Iin FIREFOX, Opera and Netscape)...
1
by: poojak | last post by:
Hello Everyone, In my css I have defined h3 tag as h3 { font-size:23px; } This works fine in IE and Mozila but in Opera whereevr I used <h3> a gray background color is coming and text is...
10
by: Michael7 | last post by:
Hi everyone, With all the trouble I have concerning simple things with CSS (still learning), I think I am getting it now, but have stumbled upon a relatively NOT simple problem. I've looked all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.