datOverflow
datOverflow

Reputation: 36

BlockQuote Tag Only Produces One Line

I'm trying to add code to my website with block-quotes, but it seems like I'm the only one having this problem. I simply put:

blah
{
    blghta
}

But it comes out on the site: blah{blghta}

How can I add inputs and newlines without manually going through each line and adding a break and whatever is used for indents?

Edit: Even on this website, it turns out bad. Is it something with my browser? I have Windows XP and Google Chrome(latest version).

http://gyazo.com/e9e00996819a2bfb018582e65352a85a.png

Upvotes: 0

Views: 228

Answers (1)

Chad
Chad

Reputation: 5408

Try using the <pre> tag instead. That should show up correctly. Also, an easy one to google.

How to quote in HTML (not blockquote)?

Edit: My bad. You don't have to use the <pre> tag, just emulate it. Try:

blockquote {
    white-space: pre;
}

Upvotes: 1

Related Questions