Msg#: 3200681 posted 9:57 am on Dec 27, 2006 (gmt 0)
I am working on an application in which i have to provide theme selection option to users, means they can select any theme from theme gallery, and particular theme will be applied to there profile.
I had implemented this on small level using CSS but in that case i am able to just change color theme of site not content arrangement. So can any body help me in finding logic that how to implement this in such way that i can provide them different design templates regardless of content arrangements, i think Template Engines can help me in this like smarty or similar to that.
Msg#: 3200681 posted 12:36 pm on Dec 27, 2006 (gmt 0)
Been there, Done that :) You will need to be very cautious on how each "Pure CSS" template will render its output/content Since you mentioned smarty I suppose that your content will be dynamic any CSS built works fine in a pre-defined environment but if a col get a larger/longer content that it had before then most layouts will break. So the trick is to be sure that you will use content that could be equivalent to height 100% and that if col B is longer that col A then col A will equal col B.
Msg#: 3200681 posted 12:59 pm on Dec 29, 2006 (gmt 0)
If you wish you could still go with pure CSS Here is what I will do Get a few CSS layouts Use some “loren ipson etc..” and check how they performed (with different content size loads) Figure if you are able to fix the “100%” requirement problems. If you can make it working then you are done Otherwise start as Michal suggests and plug all CCS directives in tables
What I do: Start with a pencil and paper Draw a rendering of the desired site overlook Think about the content How that content is going to be driven, how much space is dynamic content generated And how you may precisely govern content size and use pagination etc..
With those parameters worked out then you are ready to give it a shot and make an educated decision.