Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Transparent corners in header


scissorbabe

Recommended Posts

I have a PNG logo with rounded corners & a transparent background.

 

I want the floral background to appear behind the corners but I get the green page background instead. How do I make the background of the header transparent?

 

Here's my test site:

 

http://sigil.nl/webstore/

You need to change the background of TD.HeaderInfo to the same image as your store background.

TD.headerInfo {
 font-family:  Times New Roman, serif ;
 font-size: 14px;
 background-image: url(http://www.sigil.nl/plant_repeating_tile.jpg);
 color: #ffffff;
 font-weight: bold;
 text-align: center;
}

 

Keep the background: #00ff00; handy in case I am wrong.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Thanks for the reply. Unfortunately it made no visible difference & the olive green corners are still there.

 

TR.headerInfo {
 background: #00ff00;
}

TD.headerInfo {
 font-family:  Times New Roman, serif ;
 font-size: 14px;
 background-image: url(http://www.sigil.nl/plant_repeating_tile.jpg);

 font-weight: bold;
 text-align: center;
}

Link to comment
Share on other sites

Thanks for the reply. Unfortunately it made no visible difference & the olive green corners are still there.

 

TR.headerInfo {
 background: #00ff00;
}

TD.headerInfo {
 font-family:  Times New Roman, serif ;
 font-size: 14px;
 background-image: url(http://www.sigil.nl/plant_repeating_tile.jpg);

 font-weight: bold;
 text-align: center;
}

It's not good practice to put http links to images in the stylesheet.

 

If and when you implement SSL it'll cause "unsecure items" popup in IE.

:blush:

 

You are "barking up the wrong tree" in the stylesheet.

 

Look at the HTML source and you'll see what I mean.

 

TD.InformationBoxHeading {
 font-family: Times New Roman, serif ;
 font-size: 14px;
 font-weight: bold;
 background: #586d4e;
 color: #ffffff;
 background-image: url(/new_bg.jpg);
}

TD.CategoriesBoxHeading {
 font-family: Times New Roman, serif ;
 font-size: 14px;
 font-weight: bold;
 background: #586d4e;
 color: #ffffff;
 background-image: url(/new_bg.jpg);

}

TD.SearchBoxHeading {
 font-family: Times New Roman, serif ;
 font-size: 14px;
 font-weight: bold;
 background: #586d4e;
 color: #ffffff;
 background-image: url(/new_bg.jpg);
}

Give those a try in the stylesheet.

 

I think that is the look you are after.

 

Sometimes after changing the stylesheet in order to see any change you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet.

 

This works with IE and Firefox.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...