Scalable text using css

  • Started
  • Last post
  • 2 Responses
  • Gordy22

    Having huge issues getting a site to have scaleable text. it's a legacy site and there are hundreds of different classes - some fonts are in pts, others px and a few in em.

    Anyone any ideas on how I can go about changing it - need to know what 1em is equal to in pt or px...

    Thankin' you.

  • Terminal270

    CSS can be a nasty beast, and even more so when you have so many classes as you have said.

    Honestly, I think that the best way to do it, is take a copy of the style sheet. Rename the original and keep it nice and safe. Then go through the new one, removing all instances of font-size: until you only have one left. Make that one a % and then go through the site looking for text that's the wrong size and slowly add back in the font-size's where it is needed.

    I know that this sounds like a lot of work, but in my experience, its always faster than trying to understand what some one else did.

    Good luck

  • System-Idle0

    could you set up yr new classes.
    back up yr files like Termial says,
    and then use DW find and replace to change to old classes to new?