Forum Moderators: phranque
These css pages are gonna be very small, I wouldn't be concerned about the disk space. I'm more concerned about all the calls to the SQL server.
Any ideas?
I always try and go for a consistant approach, so everything on the site works in the same way. Having to remember special cases is going to cause problems when you forget.
One of the beuties of CSS is that fron one page an unlimited number of other pages can be styled. If you have as little CSS as it sounds, you're probibly not using CSS to it's full potential (even considering the limitations of most modern browsers).
Static Pages have advantages most importantly: Lower processing overhead.
I have always been a strong beliver in keeping data seperate from code, therefore database everything possible.
SQL calls are relatively fast, so my general rule of thumb is: If you had to change it more than once, it should be in a database.
My general concept for big and small sites alike should be: Keep Data, Server Processing Code, and Presentation Code Seperate. It takes a bit more time to serve up the first page, but in the long run it will take less time to serve up successive pages if you designed a good site. The more seperation of datatypes the easier it is to organize, modify, locate, and add content. This means seperate:
ASP/CGI/PHP/JAVA/etc. Files for server processing.
external Oracle/MySQL/MSSQL/ect. Database
external *.xml configuration files
segmented *.xml RSS feeds
external *.css sytle sheets
external *.js javascript modules
with a very small *.html bow to tie all the code together.
You will get slammed by the harsh realities of web development if you don't do it right from the get go, regaurdless of the site size.
Be clever, plan carefully, embed the minimum amount of code possible at all times.