8

I am using HTML's <pre></pre> to render my text as is with \n and spaces in a block. But bootstrap's default behaviour puts a <pre> block in a bordered box with a grey background. I don't want that. I want it to displayed as plain text.

How to disable that styling behavior for pre?

Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
MohitC
  • 4,541
  • 2
  • 34
  • 55

1 Answers1

12

You can just do this:

pre {border: 0; background-color: transparent;}

Check this Vanilla CSS Un-Reset for default values of other properties.

Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252