Old 18-08-2008, 16:08   #1 (permalink)
pringshia
Registered User
 
pringshia's Avatar
 
Join Date: May 2008
Posts: 20
css optimization

Hey guys, my boss just told me to "clean up" the CSS for a website. I am new to this job (only about a month) and the CSS is a COMPLETE mess. A lot of the styles make little to no sense. I don't think there is any possible way to clean up the code in its current state unless the website went through a complete redesign and I had to start from scratch. Additionally the website is horribly coded. It doesn't follow the ideal MVC approach, so changing the CSS would require in many cases to alter HTML and PHP. On top of that, website is run amok with inline styles and tables >.<

Do you guys have any ideas/tips on what I can do to at least even fool my boss into thinking that something has been optimized?
  Reply With Quote
Old 18-08-2008, 16:10   #2 (permalink)
Soup Of The Day
Non Stop Pop
 
Soup Of The Day's Avatar
 
Join Date: Dec 2007
Location: Winnipeg, Canada
Posts: 1,023
Send a message via MSN to Soup Of The Day
  Reply With Quote
Old 18-08-2008, 16:11   #3 (permalink)
seen.to
unusual suspect ™
 
seen.to's Avatar
 
Join Date: Jul 2004
Location: DE, USA
Posts: 3,896
Yes. Do your fucking job and tell him how long it will take then get on with it.
__________________
  Reply With Quote
Old 18-08-2008, 16:15   #4 (permalink)
freelancr
Grumpy old git
 
freelancr's Avatar
 
Join Date: Oct 2006
Location: United Kingdom Status: Arguing the Toss
Posts: 3,134
Send a message via MSN to freelancr
Sounds like it would be quicker to redevelop the website from scratch. So propose that idea to your boss.
  Reply With Quote
Old 18-08-2008, 16:19   #5 (permalink)
fasterthanlight
FUNKTION GALLERY
 
fasterthanlight's Avatar
 
Join Date: Jun 2008
Location: Toronto
Posts: 2,279
Not really the entire site, but thats assuming you have a solid HTML structure to work from, if the HTML is as fucked as the CSS is, you're better to redevelop completely, or you could spend weeks trying to molest a piece of crap into a diamond-studded piece of crap.

Try deleting all the CSS first, and just recoding at least the CSS from scratch....
  Reply With Quote
Old 19-08-2008, 12:29   #6 (permalink)
Soup Of The Day
Non Stop Pop
 
Soup Of The Day's Avatar
 
Join Date: Dec 2007
Location: Winnipeg, Canada
Posts: 1,023
Send a message via MSN to Soup Of The Day
Here's another good article all about CSS optimization I just found today:

7 Principles Of Clean And Optimized CSS Code | CSS | Smashing Magazine
  Reply With Quote
Old 19-08-2008, 13:07   #7 (permalink)
fasterthanlight
FUNKTION GALLERY
 
fasterthanlight's Avatar
 
Join Date: Jun 2008
Location: Toronto
Posts: 2,279
Nice link, some of that is/SHOULD be common knowledge though :P
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet