osmium Posted April 13, 2005 Posted April 13, 2005 hey all I am wanting to use a simple pattern as my background instead of a solid colour. I have seen it done before and one of the Live Shops listed here does it http://www.oscommerce.com/shops/goto,10794 I understand the gif is very narrow (1 or 2 pixels) and repeats so ow do I change the code in TR/header to accept a Gif rather than a solid colour? Thanks all
boxtel Posted April 13, 2005 Posted April 13, 2005 hey all I am wanting to use a simple pattern as my background instead of a solid colour. I have seen it done before and one of the Live Shops listed here does it http://www.oscommerce.com/shops/goto,10794 I understand the gif is very narrow (1 or 2 pixels) and repeats so ow do I change the code in TR/header to accept a Gif rather than a solid colour? Thanks all <{POST_SNAPBACK}> in your stylesheet, as example : .headerNavigation { color: #ffffff; font-size: 12px; background-image: url(../../images/apple_header_bar_bg.gif);} Treasurer MFC
241 Posted April 13, 2005 Posted April 13, 2005 you can also add background-repeat: no-repeat; for no repeat background-repeat: repeat-x; only repeat horizontal background-repeat: repeat-y; only repeat vertical No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
osmium Posted July 19, 2008 Author Posted July 19, 2008 Hi. I've updated to OsC 2.2 RC2 and the above edit doesn't seem to work anymore below is the code from my stylesheet which was working fine but doesn't seem to work with my new install, any ideas? thanks is advance TR.header { background-image: url(../images/heading_background.gif); } TR.headerNavigation { background: #0000ff;
Guest Posted July 19, 2008 Posted July 19, 2008 You din't close out the Tr.headerNavigation. Should be TR.headerNavigation { background: #0000ff; }
osmium Posted July 19, 2008 Author Posted July 19, 2008 You din't close out the Tr.headerNavigation. Should be TR.headerNavigation { background: #0000ff; } Hi, sorry, I was just cutting and pasting and missed it out when I posted here, the actual code has it, here is a fuller section of the code (everything else on the site seems to work fine) FORM { display: inline; } TR.header { background-image: url(/images/heading_background.gif); } TR.headerNavigation { background: #0000ff; } TD.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #cc0000; color: #ffffff; font-weight : bold; }
Jack_mcs Posted July 19, 2008 Posted July 19, 2008 Try TR.header { background-image: url(images/heading_background.gif); } Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
osmium Posted July 20, 2008 Author Posted July 20, 2008 Awesome, that fixed it thank you very much Jack, much appreciated
Recommended Posts
Archived
This topic is now archived and is closed to further replies.