thopunk Posted June 3, 2005 Share Posted June 3, 2005 I was wondering how I could add a class to the stylesheet. I wanted to add a background to the side boxes (categories, shopping cart, whats new, etc..) and when I add the code to the .infoBox class it also changes the background of the middle portion with the "new products" on the main page and the area on the actual product page because it references the same class. I wanted to add a .sideBox class or figure out how to change those few other that reference the same class. I tried to just add a class to the stylesheet and rerference it, but that doesn't work because of the boxes.php code in the classes folder. Any help would be appreciated, thanks!!! Link to comment Share on other sites More sharing options...
Dada1 Posted June 3, 2005 Share Posted June 3, 2005 Take a look at this. I know it says headings but it is the same concept to create a CSS. Just change the code to reflect the box your using. I.E. replace categories to the box your using. http://www.oscommerce.info/kb/osCommerce_D...g_Area/Boxes/44 Link to comment Share on other sites More sharing options...
thopunk Posted June 3, 2005 Author Share Posted June 3, 2005 YES! THANK YOU!!!!!!!!!!! Link to comment Share on other sites More sharing options...
AverageJoe Posted June 3, 2005 Share Posted June 3, 2005 Thanks Kip, that was very helpful :) Link to comment Share on other sites More sharing options...
rotarypot Posted June 3, 2005 Share Posted June 3, 2005 hi all : i am trying to do what i think is the same thing, basically, the search box to have a diferent css class, i tried to follow the example given in the knowledge base but needless to say it's a little confusing.. i mean , what exactly does a "class" do in oscommerce... :huh: so, if anyone can please, please, please, pretty please give us a little tutorial on this . :) Link to comment Share on other sites More sharing options...
Dada1 Posted June 4, 2005 Share Posted June 4, 2005 I don't really know what to tell you, that's pretty explanatory above. Not for this to be rude, but from the sounds of it you need to learn the terms and what they mean. You're asking what a class does in osc, which is a php thing and not just a osc things. So I think you might be looking for a php tutorial. That might make more sense that way and help you with what your trying to do if you understand the terms a little better...:) Link to comment Share on other sites More sharing options...
Wendy James Posted June 4, 2005 Share Posted June 4, 2005 There is a contribution that allows each box to have a different look. You could use that or see if there is one that will just change the one box. and psstt... classes are not just a php thing, actually it really has nothing to do with php other than the fact you can use a class to effect how part of a php code appears. It's a CSS thing, and there are many helpful sites online. =) Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.