Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design How to remove multiples of the same class in one css file

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #276588
    cleverquestion
    Participant

    I am combining about 15 pages of css. Each page has about 250 lines of css which isnt bad, but when I try to combine them its over 4000 lines. For the most part, they’re all the same. The problem I am running into now is I have 15 “body {margin:0; color:#6a6a6a}” scattered about and I don’t need 15 versions of this tag, I only need one. Same thing with about 40 other classes.

    I am trying to find a way that I can run a script or find a website that I can drop my code in and it will take out the extra classes that are the same. I’ve tired a few css optimization sites, but it’s not what I’m looking for. Does anyone have any suggestions on how to do this other than going line by line?

    Thanks!

Viewing 1 post (of 1 total)
  • The forum ‘Design’ is closed to new topics and replies.