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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -