[ic] css background command
mark at eros-shop.co.uk
Fri Aug 12 03:52:24 EDT 2005
At 08:26 12/08/2005, you wrote:
>The first four paragraphs are just a little set up which hopefully will
>enable somebody to understand enough about my situation to guide me down the
>All product images and normal catalog images display fine regardless of the
>two httpd.conf configurations shown below. The only image in question which
>is adversely affected is the one I defined as a background image in the CSS
>I also understand (from trial in error) that absolute URLs to images within
>interchange will result in secure pages complaining about the nonsecure
>images. Eg. In the fly page, the standard abbreviated interchange URL is:
><IMG SRC="items/[item-field image]" this works on secure and nonsecure
>but if I were to use an absolute URL like
><IMG SRC="http://www.testsite.com/items/[item-field image]"
>this would result in a question asking the user if they want to display the
>nonsecure items on the secure page.
>When I use the background command in the css file as the example below
>illustrates, it works fine when you access the catalog with the normal URL
>The background image defined the CSS file does not show up on a secure page
>whereas all the product images and other catalog template images display
>just fine weather in secure mode or nonsecure mode.
>Here's a snippet of the CSS file with the background command.
> background-color: #E0D2A1;
> font-family: Verdana;
> font-size: 10px;
> margin-left: 0px;
> margin-right: 0px;
> margin-top: 0px;
> margin-bottom: 0px;
> background-image: url(blueyellow/catbar2.jpg);
>Also, when I changed the httpd.conf file to show the catalog from the main
>URL by commenting out the standard directory index and adding the one shown
>below... DirectoryIndex cgi-bin/testsite/
>After this change I no longer see the background image which is defined in
>the CSS file from the start page www.testsite.com
>With the altered httpd.conf The background displays just fine for all other
>aspects of the site except on secure pages and the start page
>Here is the Apache config example with the original directory index
>commented out and the new one defined just below the original directory
><VirtualHost 00.00.00.00 126.96.36.199>
> ServerSignature email
># DirectoryIndex index.html index.htm index.php index.shtml
> DirectoryIndex cgi-bin/testsite/
> ServerSignature email
> LogLevel warn
> HostNameLookups off
>If I change the css file to reflect the entire url to the image
>then it displays but when you go to a secure page it gives you a warning
>asking if you want to display the non secure items on the secure page. If
>you select no, then the background image defined in the CSS file does not
>display. If you click yes then of course it does display.
>It appears when I change the directory index, somehow interchange doesn't
>know about the abbreviated URL. Even if this is the case it still doesn't
>explain why the background image won't work on secure pages but works fine
>on nonsecure pages.
>I hope this is enough info.
>Please go easy on me. Although I've come a long way I still have a hard time
>understanding the cryptic talk the experienced interchange developers seem
>to naturally understand :-)
have you tried putting a leading / on the background-image item in your CSS?
Without it, the URL is relative to the page being called and not an
absolute one (I think).
Hope this helps
vwe internet ltd
PO BOX 1067
Shop - http://www.eros-shop.co.uk
EMail - info at eros-shop.co.uk
Tel - 0870 284 3369
Fax - 0870 284 4469
More information about the interchange-users