As Craig has suggested, save a few base CSS layouts and when you save the article in the database, also save the layout style and then use your PHP code to select which of the layout stylesheets you include.
I'd suggest having a single sheet for the base layout and the article stylesheets with identical classes but in seperate files, this way the common page styles will be cached by the browser and you only have to pull back a small amount of styling data when you select a new layout. |