Is there a way to make the content
property in CSS span multiple lines with hard returns? This is just a matter of preference but I'm curious because I try to avoid longer lines of code for readability. JavaScript has the backslash method to span a string multiple lines. Is there a CSS equivalent?
/*/ / / / / / / / / / / / / / / / / / 80 CHARS / / / / / / / / / / / / / / /*/
html:before {
content: 'I generally like to keep my lines of code below 80 characters in length';
}
html:before {
content: 'I generally like to keep my lines of code
below 80 characters in length.';
}
The last CSS rule doesn't work because I broke up the string into multiple lines. Is there a way to keep the formatting with hard returns but have it work as intended?
EDIT : To be clear, I'm not asking how to enter a line break in the HTML output. This question is about formatting my raw CSS code.