Reputation: 155
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
Reputation: 237
its actually do in img tag
code: image that show you multiline inline styling
result: image that show you result with unwanted special character added to the style
Upvotes: 0
Reputation: 219834
It's fine. White space doesn't affect the browsers interpretation of that CSS or rendering of that element.
Upvotes: 10