News for hackers. Stuff that matters.
Re:Nue: A React/Vue/Vite/Astro Alternative by seanwilson on Friday September 15, 2023 @08:27AM (#37521937)
> Separating the style into a stylesheet gives you global control over presentation

It doesn't though unless you're mostly dealing with traditional documents.

Most non-trivial styling requires you to edit the HTML as well because CSS alone isn't powerful enough e.g.

- you need to add tags to content you want to style only for presentation reasons

- to layout/align content it's often much easier or the only choice to reorganise the HTML

- lots of CSS problems require you to add extra tags because the styling you want to do cannot be done or isn't possible with a single tag.

I know about the Zen Garden demo, but this approach hasn't panned out in practice. Every website redesign I've ever seen involved large changes to the HTML, and it's not from lack of developer skill.

There are no comments on this comment yet.