Welcome to WebmasterWorld Guest from 54.167.213.22

Forum Moderators: not2easy

Message Too Old, No Replies

Background Image - Won't Show on Secure Server?

Can't get a CSS bg image to show on an https..

     
9:54 am on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hi all,

For the life of me I just can't work out why my background image won't show on an https?

I've tried relative and abslute url's (the image works fine on the normal server) to no avail. The image is stored on the secure server.

Does anyone have any insight as to what may be causing this?

Many thanks...

<added>Works on an internal sheet but, not on an external</added>

Nick

ann

11:41 am on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member ann is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I store mine in the same secure folder with the forms I use and use a relative path...never had any problems with it.
3:11 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thanks ann, I never worked out why but the external just won't work. Well, an internal does just fine though...

Nick

3:14 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nick, where is the external sheet located?
3:15 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



On the secure server. shows the style/layout fine. No bg image though...

Nick

3:15 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nick, where is the external sheet located? Does the rest of the stylesheet work and just the background image not show?

OOOOOPS!

4:09 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm dumbfounded as usual ;)

It's either got to be a server glitch or somehow the path isn't right.

did you try to call the image from the webpage(not as a background)?

4:17 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Works just fine as a bg image from an internal sheet. and other calls to images are fine also...

Nick

5:19 pm on Jan 6, 2003 (gmt 0)

10+ Year Member



Perhaps the secure server reading the html file reading the css file reading the image isn't happy about having to ferret around to figure out whether its allowed? I don't know, I'm guessing. I'm going home!

(Also, much of that sentence seems like grammatical hammer horror)

5:44 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For what it's worth, I've got one that's working just fine. I'll sticky you the URL if you want to look at the code, but there's nothing in it that wouldn't be immediately obvious to you.
5:47 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thanks dingman, just post it here, (ommiting any references of course!) -- Would like to compare..

Nick

7:15 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>@import demo</title>
<!-- Works whether you <link> or @import the style sheet. -->
<!-- <link rel="stylesheet" type="text/css" href="test.css" /> -->
<style type="text/css">
@import url(test.css);
</style>
</head>
<body>
<p>
Hi, Nick. This uses SSL for everything. :)
</p>
<p>
It doesn't seem to matter whether I @import or &lt;link&gt; the style sheet.

</p>
</body>
</html>



body {
background-image: url(https://my.server.tld/photos/2002/Gerth-Dingman.jpg);
font-weight: bold;
font-size: 2em;
color: blue;
}
 

Featured Threads

Hot Threads This Week

Hot Threads This Month