TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Easily migrate inlined CSS to a separate CSS file (8 hour project)

3 pointsby sinaimanabout 14 years ago

1 comment

sinaimanabout 14 years ago
It's mostly explained in the "about", but I have a habit of making most of my CSS changes inline in my HTML, so I use a lot of style attributes. This is usually "bad form", and I always tell myself I'll just move it all over to an external document later, but it's really annoying to do that manually.<p>So I made this tool last night that takes an HTML document and extracts all the inlined CSS style attributes and puts them into their own classes and then removes the style attributes from the HTML and replaces them with neat little classes.<p>Definitely a <i>ton</i> more this tool could do to streamline the process (also I could just learn to do all my CSS in an external file to begin with), but, whatever, I'm definitely going to use this. It's a start at least!
评论 #2387963 未加载