RE: propose a code change in box structure

burt <[email protected]>
Newsgroups gmane.comp.web.oscommerce.suggestions
Message-ID <526c05af4518624c2a857e667e789f80@osCommerce-Forums>
This message was sent from: Suggestions and Proposals
http://forums.oscommerce.com/viewtopic.php?p=192810#192810
----------------------------------------------------------------

[quote="cannuck1964"]It seems that any users when changing the box layout (template) would need to have a new css file made up[/quote]Why?  You only need 1 .css file : stylesheet.css in which all the .css are defined.

[quote]can a different file containing the css box info be used used for this?  And have the call for the file put into the columns files?[/quote]There is no need to do this.  

[quote]As well, you have solid colours in the heading, can this be changed with ease to use images instead?[/quote]Yes.[quote]Can the css hold php code?[/quote]Yes.[quote]If so, then to put the dynamics of the change in layouts might be achieved by putting in variables in the css definition of the box.[/quote]Yes, this is how my style switcher works - the surfer presses a button to change a piece of php which then does some stuff in the .css file.

[quote]Or use various info box definitions in the css file, all with different names (ie osc_info_box, bright_info_box ...etc).  By doing this, then the columns file could contain the dynamics to make the info boxes change with ease....[/quote]No need.  Judicious use of php can easily solve this.

[quote]The class structures do allow for dynamics that I am not sure the css does allows for, in css every box layout needs to be defined in a new css file/class, while in the osc class way of doing it, only the image file needs to be updated.  [/quote]No, .css is a million times more flexible than the present classes.

From what you've written, you are going to deep, everything that you want to do can be done using .css - no need for modules, extra calls, classes and so on.

http://www.w3schools.com/css/default.asp is a very good site for learning the basics of what .css can do.  

hth
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.