John Travolta
John Travolta

Reputation: 604

<br/> doesn't break lines in all browsers

I know this seems odd, but on my websites <br> tags do not work normally. Consider this url http://barchick.com/most-wanted/camper-english. The content (WHERE DO YOU LIVE?San Francisco, California....) contains <br/> tags but browser skip that.

WHERE DO YOU LIVE?<br/><br/>San Francisco, California, USA.<br/><br/>

in browser I see jst WHERE DO YOU LIVE?San Francisco, California

What is the reason of that?

Upvotes: 0

Views: 138

Answers (2)

Felix Kling
Felix Kling

Reputation: 817208

In your main.css file, line 3913:

#wanted-single .text BR{
  display: none;
}

If you remove that rule you will see line breaks as expected.

Upvotes: 6

John Conde
John Conde

Reputation: 219934

Depending on your doctype and/or browser <br/> isn't valid HTML. You need a space before the / to allow older browsers to understand the <br> tag properly: <br />

Upvotes: 2

Related Questions