I am trying to find out the PREFERRED method to display a header <h1> followed by a paragraph <p> where the paragraph starts on the next line. As shown.
HEADER TEXT
Paragraph text
Not:
HEADER TEXT
Paragraph text
This is the code that I think should work, but the <p> causes a line break before the paragraph. I don't want to have to have omit the <p> of 1st paragraph after a header.
[tt][blue]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title>Inline Test</title>
<style type="text/css">
h1 {display: inline;}
</style>
</head>
<body>
<h1>Header</h1>
<p>Line 1</p>
</body>
</html>
[/blue]
[/tt]
Is there any way to use the HTML as is, but change the CSS to accomplish my goal?
BTW, I know I can futz around by doing an h1 display: inline, followed by a <br>, followed by plain text (no <p>) but that seems like such a hack.
I also tried display: compact and run-in, but it didn't help.
HEADER TEXT
Paragraph text
Not:
HEADER TEXT
Paragraph text
This is the code that I think should work, but the <p> causes a line break before the paragraph. I don't want to have to have omit the <p> of 1st paragraph after a header.
[tt][blue]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title>Inline Test</title>
<style type="text/css">
h1 {display: inline;}
</style>
</head>
<body>
<h1>Header</h1>
<p>Line 1</p>
</body>
</html>
[/blue]
[/tt]
Is there any way to use the HTML as is, but change the CSS to accomplish my goal?
BTW, I know I can futz around by doing an h1 display: inline, followed by a <br>, followed by plain text (no <p>) but that seems like such a hack.
I also tried display: compact and run-in, but it didn't help.