homepage Welcome to WebmasterWorld Guest from 184.73.87.85
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
Background Image - Won't Show on Secure Server?
Can't get a CSS bg image to show on an https..
Nick_W




msg:1183996
 9:54 am on Jan 6, 2003 (gmt 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




msg:1183997
 11:41 am on Jan 6, 2003 (gmt 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.

Nick_W




msg:1183998
 3:11 pm on Jan 6, 2003 (gmt 0)

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

Nick

Birdman




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

Nick, where is the external sheet located?

Nick_W




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

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

Nick

Birdman




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

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

OOOOOPS!

Birdman




msg:1184002
 4:09 pm on Jan 6, 2003 (gmt 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)?

Nick_W




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

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

Nick

WibbleWobble




msg:1184004
 5:19 pm on Jan 6, 2003 (gmt 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)

dingman




msg:1184005
 5:44 pm on Jan 6, 2003 (gmt 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.

Nick_W




msg:1184006
 5:47 pm on Jan 6, 2003 (gmt 0)

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

Nick

dingman




msg:1184007
 7:15 pm on Jan 6, 2003 (gmt 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;
}

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved