CSS for https urls

Posted by Vincent on Stack Overflow See other posts from Stack Overflow or by Vincent
Published on 2010-04-09T15:39:39Z Indexed on 2010/04/09 15:43 UTC
Read the original article Hit count: 448

Filed under:
|
|
|

Hello,

looking for some help with images referenced within the stylesheet. I have no problems with these from non secure locations within the site but only from https. The stylesheet loads fine and displays everything correctly except for the images.

example:

body {
margin: 0;
padding: 0;
background: url(/img/background_tile.gif) top left repeat-x;
text-align: center;
background-color: #fff;
}

All my css files and other image paths inside the code use relative urls to images. How can I make sure they all work fine without hard coding my image paths with https or http? I want the code to work fine with http and https.

Thanks

© Stack Overflow or respective owner

Related posts about css

Related posts about html