File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Closing Line Space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Closing Line Space" Watch "Closing Line Space" New topic

Closing Line Space

William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
I�m trying to write a series of header description in my CSS file for my HTML file to use. The characteristic that I am not able to do is to place text flush against a header title without there being a large gap between the two lines. If you run the below HTML you see a large space between each line and I need to remove the large line space.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<h1>Header 1</h1>
normal text
<h2>Header 2</h2>
normal text
<h3>Header 3</h3>
normal text
<h4>Header 4</h4>
normal text
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Play with CSS line-height and padding

William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
Thanks! I was able to manipulate the head lines.
I agree. Here's the link:
subject: Closing Line Space