Welcome to WebmasterWorld Guest from 54.196.208.6

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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 25, 2002
posts:2605
votes: 0


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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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

Nick

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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)

Full Member

10+ Year Member

joined:Dec 13, 2002
posts:307
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 12, 2002
posts:885
votes: 0


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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 12, 2002
posts:885
votes: 0



<!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;
}