Does embedding a style on multiple lines really affect anything?

let's say I have a very long line of inline style, for example:

<input type="radio" style="visibility: hidden; position: absolute; foo: bar; baz: foo; etcetera: etc; and: more;"> 

and then I decided to make it more readable as follows:

 <input type="radio" style="visibility: hidden; position: absolute; foo: bar; baz: foo; etcetera: etc; and: more;"> 

Does this affect functionality or is it okay to split across multiple lines?

+6
source share
1 answer

It's good. White space does not affect browser interpretation of this CSS or rendering of this element.

+5
source

Source: https://habr.com/ru/post/920349/


All Articles