DEV Community

Discussion on: If you could start over from scratch, how would CSS work?

Collapse
 
itsjzt profile image
Saurabh Sharma

For me, I think inline styles can be a little more powerful.

Collapse
 
justynclark profile image
Justyn Clark

Never inline styles!

Collapse
 
itsjzt profile image
Saurabh Sharma

if you are writing a typical website then sure another file for CSS makes sense, but for web apps where each component will be independent then Inline styles are good too.

Thread Thread
 
justynclark profile image
Justyn Clark

True. Like React ;)

Collapse
 
booligoosh profile image
Ethan

I think now my only use for inline styles is styling stuff through JavaScript, which goes to the inline style