Re: CSS for each section
The best way to clean it up would be to rewrite it all entirely. The safest way to clean it up is to break it up as you've specified but have a core style sheet for common styles. So you'd end up with:
common.css (layout)
product.css
cart.css
category.css
etc.
Each page would have 2 css files (common + supporting file) containing CSS that is actually used.
main.css is the func.php of x-cart verions < 4.0 in terms of bloat.
|