reifier
reifier

Reputation: 155

does breaking inline styling into multiple lines affect anything?

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

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

and then I decide to make it more readable like this:

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

Does this affect the functionality or is it okay to break it into multiple lines like this?

Upvotes: 13

Views: 4215

Answers (2)

John Conde
John Conde

Reputation: 219834

It's fine. White space doesn't affect the browsers interpretation of that CSS or rendering of that element.

Upvotes: 10

Related Questions