html - If you set a style for a pre or div once, do you need to set again? -


for example, if do:

pre style="white-space:pre-wrap;" 

at beginning of first pre block, apply pre blocks? doesn't seem have effect want.

no, if define style directly inside <pre> tag, applied element.

define css properties in <style> block, , applied <pre> elements:

<style> pre {     white-space: pre-wrap; } </style> 

simply place block inside <head> of html document.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -