homepage Welcome to WebmasterWorld Guest from 54.197.15.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

CSS Forum

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

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



 
Msg#: 491 posted 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

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



 
Msg#: 491 posted 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

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



 
Msg#: 491 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 491 posted 3:14 pm on Jan 6, 2003 (gmt 0)

Nick, where is the external sheet located?

Nick_W

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



 
Msg#: 491 posted 3:15 pm on Jan 6, 2003 (gmt 0)

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

Nick

Birdman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 491 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 491 posted 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

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



 
Msg#: 491 posted 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

10+ Year Member



 
Msg#: 491 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 491 posted 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

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



 
Msg#: 491 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 491 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved