# CSS and \<BR\> (carriage return) on text problem

**URL:** https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943
**Category:** programming
**Created:** [August 8, 2003, 2:52am UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943 "2003-08-08T02:52:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jtesp](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jtesp](https://forum.kirupa.com/u/jtesp)
#### Post date: [August 8, 2003, 2:52am UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/1 "2003-08-08T02:52:06Z")

</div>

Hello, I have a small problem with text…  
When i enlarge the text size in my browser (ctrl scroll mouse wheel) the space between lines gets bigger and smaller. How can I avoid this?  
Here’s what i’m talking about (check the links at the bottom of the page as you ctrl scroll the mouse wheel (to enlarge/shrink text)  
[http://www.illusioncm.com/agentindex/](http://www.illusioncm.com/agentindex/)  
I’m sure it’s very simple, but I’m stumped!  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 8, 2003, 2:52am UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/2 "2003-08-08T02:52:56Z")

</div>

ps, let me know what you think of the site design 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 8, 2003, 4:19pm UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/3 "2003-08-08T16:19:37Z")

</div>

When setting your font sizes use px instead of pt. For accessibility a pt (point) font will increase when you set the font size where a px (pixel) font will not. The relation in size between a px and a pt are about 2 pixels. So if you are say using 12pt Tahoma it will be a 14px Tahoma.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 8, 2003, 8:51pm UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/4 "2003-08-08T20:51:41Z")

</div>

Thanks, but actually I’m talking about the spaces between to lines. I got the font size thing down but how can I make the space between 2 lines static?  
Example:  
Line 1  
Line 2

INSTEAD OF

Line 1

Line 2

Do you get what I mean? I want the space between line 1 and line 2 to be the same.  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 8, 2003, 9:22pm UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/5 "2003-08-08T21:22:31Z")

</div>

voila!

Just adjust the number.

```php

<SPAN style="line-height:4px;">Hello<BR>My name is mud</SPAN>

```

\<SPAN style=“line-height:4px;”\>Hello\<BR\>My name is mud\</SPAN\>

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 8, 2003, 11:02pm UTC](https://forum.kirupa.com/t/css-and-br-carriage-return-on-text-problem/27943/6 "2003-08-08T23:02:10Z")

</div>

That’s almost working…I think it may have to do with the fact that it’s inside a table and it’s wanting to stretch the table. I don’t want the table to stretch! Grrr, this is annoying. Anyways, thanks for the help 🙂
