Forum Moderators: not2easy
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
<!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 <link> 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;
}