Comrade Posted March 24, 2008 Posted March 24, 2008 Why one and the same parameter (background color) in oscommerce CSS implemented by two different ways, via 'background' and 'background-image'? Usually, images just makes pages loading longer and does not give any advantages. TD.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #336699; background-image: url("images/box_header.gif"); color: #ffffff; font-weight : bold; } TD.footer { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #336699; background-image: url("images/box_header.gif"); color: #ffffff; font-weight: bold; } TD.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; background: #336699; background-image: url("images/box_header.gif"); color: #ffffff; }
FIMBLE Posted March 24, 2008 Posted March 24, 2008 The images are added and not standard OSC code. You can comment them out if you like or delete them as long as they are not in use TD.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #336699; /*background-image: url("images/box_header.gif");*/ color: #ffffff; font-weight : bold; } Like so Regards Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted March 24, 2008 Posted March 24, 2008 I have a question also. I changed the header, footer and boxes for the header backgrounds but the rounded corners of boxes did not change. Where is that defined on the style sheet? Look here, I tried to get rid of the Grey and go with teal, but I still have Grey corners The store I did not see that Grey number defined any where else. When it first loads it's all green then the grey jumps back on the corners.
FIMBLE Posted March 24, 2008 Posted March 24, 2008 That due to them being images! You can find them in the images folder then infobox. You can change the colours using your favorite image editing prog. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted March 25, 2008 Posted March 25, 2008 I found them here: catalog/images/infobox/ corner_right.gif corner_left.gif corner_right_left.gif I made anew box in corel the same color as the header color I chose and the exported it to 11px wide and 14 px high and replaced these files. In case anyone else is looking for the same problem.
Comrade Posted March 26, 2008 Author Posted March 26, 2008 Also, probably, more correctly will be background-color: #336699; not just background: #336699;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.