4 replies [Last post]
frake
Offline
newbie
Last seen: 18 years 24 weeks ago
Joined: 2004-01-21
Posts: 3
Points: 0

Hi,
Online editors put a double break in the HTML-code when an empty line is requested by the user. When a lettsr-spacing statement is in the style of the text that doesn't work.
When you put THREE break-statements in the code it works.
Does anyone know why letter-spacing bocks te <br><br> in the code?
What's more: does anyone know a work-around?

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 18 years 33 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

letter-spacing versus &lt;br&gt;&lt;br&gt;

I do not understand your question.

But - the following all works correctly-

<html>
<head>

<style type="text/css">
h1 {letter-spacing: -3px}
p {letter-spacing: 0.5cm}
</style>

</head>

<body>
<h1>This is header 1</h1>
<p>This is a paragraph split by 2 line breaks, even if I do not agree with it.<br>
<br>
testing</p>

</body>
</html>

Can you provide a better explanation as well as some examples of the code.

Regards
Day

Edited,

OK I now get it. The 2 <br> tags only move the text down to the next line but it should be 2 lines down from the last text. Looks like a bug in IE, as it works correctly in FireBird.

I am not sure there is a workaround if this is an online editor. I mean you could end the text, go down 2 lines and start it again!

Regards
Day

The only way to learn is to do it yourself

frake
Offline
newbie
Last seen: 18 years 24 weeks ago
Joined: 2004-01-21
Posts: 3
Points: 0

letter-spacing versus &lt;br&gt;&lt;br&gt;

Hi,
Found out it's a bug in IE.
this style:

P {
letter-spacing : 1px;
}

is correctly displayed in this HTML:
<p>
text text text <br><br>text text text
</p>

It just does not display an emply line, which it should. It ignores the second <br>. When I put in a third <br> the empty rule is there.

Other browsers do display the empty line correctly.

If I want an empty rule in this text I type here, I hit the return-key twice, that's where the two breaks come from, in input-area's users do not type a <p>.

but thanks anyhow Sad

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 18 years 33 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

letter-spacing versus &lt;br&gt;&lt;br&gt;

frake wrote:
It ignores the second <br>.

I would have thought it was the 1st <br /> that was being ignored.

Regards
Day

The only way to learn is to do it yourself

Mikomi
Mikomi's picture
Offline
newbie
Last seen: 13 years 10 weeks ago
Joined: 2009-04-24
Posts: 1
Points: 0

the fix

just ad this to your css :

br {*letter-spacing:0px !important;}