Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
| Search | Today's Posts | Mark Forums Read
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2005, 01:19 AM
MW_ MW_ is offline
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MW_
Default Problem with background images in CSS & Tomcat

Hi,

I have problems displaying background images using CSS through the tomcat server.

I basically have a html file which links to a css file which has the background style. An example of one of the styles is

.centeractivetab
{
    background-image : url(../images/Tabs/centeractivetab.png);
    background-repeat : repeat;
    text-align:left;
    border-bottom:none;
    font-family : verdana,arial,sans-serif ;
    font-size:.8em;
    text-decoration: none;
    cursor: default;
}

The background image appears when I load the html file directly through IE. However, when I load it through the tomcat server, the background image is not there.

I am currently using Tomcat 5.0.

Any idea why is this happening?

 
Old April 12th, 2005, 01:39 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can it be a case sensitivity issue? Make sure the folder and file name are exactly the same in CSS as they are on disk....

Imar
 
Old April 12th, 2005, 02:05 AM
MW_ MW_ is offline
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MW_
Default

I have checked that already and I am sure they are correct. Other than that, I am very sure the path to the css file is correct as I can change the attributes... ie if I change the cursor attribute from

cursor: default;

TO

cursor: pointer;

the changes are reflected.

 
Old April 12th, 2005, 02:07 AM
MW_ MW_ is offline
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MW_
Default

I am really sure its because of Tomcat cause I tried another servlet, IIS, and it worked there.

 
Old April 12th, 2005, 02:41 AM
MW_ MW_ is offline
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MW_
Default

Opps...I am really sorry...the extension was .PNG and not .png. Just noticed that. Thanks a lot!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS HELP:! CSS EXPANDIBLE BACKGROUND FOR TITLE phpuser2000 CSS Cascading Style Sheets 2 December 19th, 2007 12:36 AM
background image width through CSS problem inOpera iamrakesh22 CSS Cascading Style Sheets 0 May 31st, 2007 06:09 AM
[resolved] Trinidad & Tomcat Problem with examples pouet Apache Tomcat 1 May 11th, 2007 09:27 AM
CSS Background images not loading in ASP.NET 2.0 vinyel23 ASP.NET 2.0 Basics 0 January 5th, 2007 12:54 PM
Problem with background images in CSS & Tomcat MW_ Apache Tomcat 2 April 18th, 2005 08:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.