Unique Background Images for List Items in Content

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
vidya
New Member
New Member
Posts: 5
Joined: Tue Oct 07, 2008 7:52 pm

Unique Background Images for List Items in Content

Post by vidya »

I am running CMSMS  version 1.4.1 on the following server software:

Apache/1.3.34 (Debian) mod_gzip/1.3.26.1a AuthMySQL/4.3.9-2 PHP/5.2.0-8+etch10

I have set my main stylesheet to display a unique background image for all list items in the main content as follows:

#bodycopy ul li {
background: url(uploads/images/bullet.gif);
padding-left: 1.5em;
}

I have checked the path to the image, the id tag in the stylesheet matches the one set in the template, the CSS looks fine, but for whatever reason, the background image simply will not display on the page. You can view my test page here:
http://www.panhellenic-sa.org.php5-3.websitetestlink.com/index.php?page=test

I even created a basic XHTML page on my computer (not with the CMS, just a standard XHTML page) and it works just fine, the bullet images show up like they are supposed to.

I would appreciate any suggestions on what might be causing this; I'm not sure if it's a CMSMS deal since it works fine in a regular web page.

Many thanks!

Vidya
bojans

Re: Unique Background Images for List Items in Content

Post by bojans »

Hi,

I don't know if this will work but I think that you should have:

background-image: url(uploads/images/bullet.gif);

Bojan
vidya
New Member
New Member
Posts: 5
Joined: Tue Oct 07, 2008 7:52 pm

[Solved] Re: Unique Background Images for List Items in Content

Post by vidya »

Actually, the shorthand version I used works as well. In my case, the graphic designer had named the file with an extra space like this: bullet .gif. Renaming it did the trick. Thanks for the input!
Post Reply

Return to “Layout and Design (CSS & HTML)”