snkhan Posted November 21, 2003 Posted November 21, 2003 Hi lovely people, I want to change the colour of every single infoBox, so that every infobox is a different colour. I know that if I change the following it updates every infobox; TD.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; background: #bbc3d3; color: #ffffff; } I was thinking of making loads of differently named classes like so; TD.infoBoxWhatNew { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; background: #990000; color: #ffffff; } Just one example. I knopw that once I've done this I need to opne catalog/includes/boxes and then ammend the html there. However I read in a post somewhere that I also need this line in every boc page; new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART)); where infoBoxHeading needs to be the name of my new css class. I just want someone to confirm this before I actually do it. I remember reading a post, but after doing numerous searches still cannot find it. I have also read wiki documentation, but no answer found. Thanks, saj I didn't do it!
paulm2003 Posted November 21, 2003 Posted November 21, 2003 I was thinking of making loads of differently named classes like so; :blink: One class i.e. class="infoBox" for all boxes and one unique id i.e. id="infoBoxINFOBOXNAME" for each individual box is the way to go. Once you have done that, nobody can stop you from assigning(spelling?) styles to it. :) It looks like you are ready for a template structure, because changing the color of each box probably won't be the last change you want to make!? The BTS contribution is available now, and very soon there will be a new version which a.o. already includes the id's for these boxes. PM me if you want to beta test it. PaulM
Guest Posted November 21, 2003 Posted November 21, 2003 This should help http://www.oscommerce.com/community/contri...ons,1261/page,3 The_Bear
paulm2003 Posted November 21, 2003 Posted November 21, 2003 All these contributions............ If you learn some HTML and CSS, and most of it isn't really difficult, you would have total layout control, and in the end you would like it more than any contribution. The answer to to question in this thread would be quite easy if osC was designed for it. The only problem is that osC is not :( But the BTS contribution points in the right direction.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.