Re: <BR> in html
| From: | Chris Hayes | Date: | Tue, 09 Jan 2001 10:47:48 +0000 |
| Subject: | Re: <BR> in html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33582@lists.php.net to get a copy of this message | ||
> Anyways, I want a new line but when I use the <BR> to do it makes a gap
> between the last line. does anyone know how to make the <BR> or any new line
> in html for that matter to only make a small gap?
<BR> should just make a new line with the current font size.
First check the output HTML:
Are you in a <PRE> part? This also breaks at new lines in the source.
Did you just have a <H1> (or <H2..3..4..5..6>) that includes a blank line?
Are you using a large font size and the browser thinks you;re still using
that?
If the line is in a TABLE come back here.
I was going to suggest the stylesheet line-height but i see Netscape 4.5
shows it totally different than IE 5.
Heck, I'll give it anyway, maybe you can get further with it....
<html>
<head>
<style type="text/css">
<!--
.thin_line_break { font-family: sans-serif; font-size: 18px;
line-height:14px}
-->
<!--!--! remove the email's new line in the part between the {}'s !--!-->
</style>
</head>
<body>
<p class="thin_line_break">This is a line<br>
This is the next line</p>
</body>
</html>
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------