473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Why is my list-style-image not displaying?

Be kind to me, I'm a CSS newbie...

I've been playing with drupal, building a web site (hyc-test.org). I
started with the "sky" theme, but didn't like the way it rendered list
items in menus.

Spcifically, it started with:

list-style-image: url(../../misc/menu-expanded.png);

in one of the early style sheets, and then overridden with

list-style-image:none

I went into this later style sheet and got rid of the list-style-image
attributes, assuming the earlier list-style-image specification would get
inherited.

The problem is, the images still don't get rendered. You can see this if
you go to http://hyc-test.org/. I tried both Firefox and Safari, with the
same result.

The real mystery is that if I examine the list item with Firefox's DOM
Inspector, under the Computed Style page, it shows list-style-image as
"url(http://hyc-test.org/misc/menu-leaf.png)". If I watch with a packet
sniffer while the page loads, I can see the browser do a GET for that URL,
and can see the "200 OK" response come back. Clearing the browser cache
has no effect; still no image gets rendered for the list items.

I'm stumped. What's going on here?
Nov 27 '07 #1
5 9822
In article <ro***********************@news.panix.com>,
Roy Smith <ro*@panix.comwrote:
Be kind to me, I'm a CSS newbie...

I've been playing with drupal, building a web site (hyc-test.org). I
started with the "sky" theme, but didn't like the way it rendered list
items in menus.

Spcifically, it started with:

list-style-image: url(../../misc/menu-expanded.png);

in one of the early style sheets, and then overridden with

list-style-image:none

I went into this later style sheet and got rid of the list-style-image
attributes, assuming the earlier list-style-image specification would get
inherited.

The problem is, the images still don't get rendered. You can see this if
you go to http://hyc-test.org/. I tried both Firefox and Safari, with the
same result.

The real mystery is that if I examine the list item with Firefox's DOM
Inspector, under the Computed Style page, it shows list-style-image as
"url(http://hyc-test.org/misc/menu-leaf.png)". If I watch with a packet
sniffer while the page loads, I can see the browser do a GET for that URL,
and can see the "200 OK" response come back. Clearing the browser cache
has no effect; still no image gets rendered for the list items.

I'm stumped. What's going on here?
It would be so nice if more urls that were put up here at least
validated, neither the html nor the css do. At least you provided
a url!

Have you seen the leaf bullet image that it is you will be
getting if you can make it fetch it? It does not look to me much
different to the available circle in standard CSS. You can start
tracking down the specific trouble by getting rid of all your css
and putting in the list items an inline style calling for that
leaf image... but convince me it is worth it?

--
dorayme
Nov 27 '07 #2
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
In article <ro***********************@news.panix.com>,
Roy Smith <ro*@panix.comwrote:
Be kind to me, I'm a CSS newbie...

I've been playing with drupal, building a web site (hyc-test.org). I
started with the "sky" theme, but didn't like the way it rendered list
items in menus.

Spcifically, it started with:

list-style-image: url(../../misc/menu-expanded.png);

in one of the early style sheets, and then overridden with

list-style-image:none

I went into this later style sheet and got rid of the list-style-image
attributes, assuming the earlier list-style-image specification would get
inherited.

The problem is, the images still don't get rendered. You can see this if
you go to http://hyc-test.org/. I tried both Firefox and Safari, with the
same result.

The real mystery is that if I examine the list item with Firefox's DOM
Inspector, under the Computed Style page, it shows list-style-image as
"url(http://hyc-test.org/misc/menu-leaf.png)". If I watch with a packet
sniffer while the page loads, I can see the browser do a GET for that URL,
and can see the "200 OK" response come back. Clearing the browser cache
has no effect; still no image gets rendered for the list items.

I'm stumped. What's going on here?

It would be so nice if more urls that were put up here at least
validated, neither the html nor the css do. At least you provided
a url!
You're right. Sorry. I fixed up all the HTML botches I could and got it
to validate except for one HTML issue I can't do anything about, but which
couldn't possible be the cause of this. Still no images :-(
Have you seen the leaf bullet image that it is you will be
getting if you can make it fetch it? It does not look to me much
different to the available circle in standard CSS. You can start
tracking down the specific trouble by getting rid of all your css
and putting in the list items an inline style calling for that
leaf image... but convince me it is worth it?
Is what worth it? Is having the specific images worth it vs. having the
default ones? Yes. The leaf image (circle) isn't so different from the
stock one, but the expanded and collapsed (left and down pointing arrows)
images are.

But, at this point, I'm beyond the practical issues of what the actual
images are. I'm trying to understand *why* this is not working. I don't
like things I don't understand.
Nov 27 '07 #3
In article <ro***********************@news.panix.com>,
Roy Smith <ro*@panix.comwrote:
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
In article <ro***********************@news.panix.com>,
Roy Smith <ro*@panix.comwrote:
Be kind to me, I'm a CSS newbie...
>
I've been playing with drupal, building a web site (hyc-test.org). I
started with the "sky" theme, but didn't like the way it rendered list
items in menus.
>
Spcifically, it started with:
>
list-style-image: url(../../misc/menu-expanded.png);
>
in one of the early style sheets, and then overridden with
>
list-style-image:none
>
I went into this later style sheet and got rid of the list-style-image
attributes, assuming the earlier list-style-image specification would get
inherited.
>
The problem is, the images still don't get rendered. You can see this if
you go to http://hyc-test.org/. I tried both Firefox and Safari, with
the
same result.
>
The real mystery is that if I examine the list item with Firefox's DOM
Inspector, under the Computed Style page, it shows list-style-image as
"url(http://hyc-test.org/misc/menu-leaf.png)". If I watch with a packet
sniffer while the page loads, I can see the browser do a GET for that
URL,
and can see the "200 OK" response come back. Clearing the browser cache
has no effect; still no image gets rendered for the list items.
>
I'm stumped. What's going on here?
It would be so nice if more urls that were put up here at least
validated, neither the html nor the css do. At least you provided
a url!

You're right. Sorry. I fixed up all the HTML botches I could and got it
to validate except for one HTML issue I can't do anything about, but which
couldn't possible be the cause of this. Still no images :-(
Have you seen the leaf bullet image that it is you will be
getting if you can make it fetch it? It does not look to me much
different to the available circle in standard CSS. You can start
tracking down the specific trouble by getting rid of all your css
and putting in the list items an inline style calling for that
leaf image... but convince me it is worth it?

Is what worth it? Is having the specific images worth it vs. having the
default ones? Yes. The leaf image (circle) isn't so different from the
stock one, but the expanded and collapsed (left and down pointing arrows)
images are.

But, at this point, I'm beyond the practical issues of what the actual
images are. I'm trying to understand *why* this is not working. I don't
like things I don't understand.
Fair enough, I do understand. But if you did track it down (it
might be as simple as something over ruling the list style or -
something always to watch for with bullets - are they off to the
left where you cannot see them because you have zeroed the
margins (look at your own adjustments, especially your dangerous
"* {margin: 0;}".

I really cannot see how you can live with, troubleshoot and
maintain such a complicated set of css sheets. It is easy to
bypass all and get your "leaf" bullets. But that is not what you
want. Perhaps someone will sort through your markup and css?

Have you tried this, turn all the css off. The whole lot. And put
in a bit of styling to see for yourself the special images?

--
dorayme
Nov 27 '07 #4
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
Fair enough, I do understand. But if you did track it down (it
might be as simple as something over ruling the list style or -
something always to watch for with bullets - are they off to the
left where you cannot see them because you have zeroed the
margins (look at your own adjustments, especially your dangerous
"* {margin: 0;}".
Hmmm. It would appear this is indeed the problem. I don't fully
understand how margins work, but I've got another guy here who also
suspected the same thing, and when he over-rode the margins, the images did
show up. Now I just need to study up on exactly how margins work. Thanks
for getting me going in the right direction.
I really cannot see how you can live with, troubleshoot and
maintain such a complicated set of css sheets.
I inherited the style sheet. I'm just trying to tweak it.

Thanks again!
Nov 27 '07 #5
rf

"Roy Smith" <ro*@panix.comwrote in message
news:ro***********************@news.panix.com...
In article
I inherited the style sheet. I'm just trying to tweak it.
Unlucky.

I had a quick glance at your source and suddenly found something more
interesting elsewhere.

However, consider the relative path you are using to get to the images. The
path you specify in an external css file is relative to *that* css file, not
the html file that includes that css file. Get rid of all the drupal stuff
and cut it down to three or four line css and html files. That is, start
from the simplest you can, just to prove you can obtain the image.

Doesn't explain the 200 though, should be a 404.

--
Richard.
Nov 27 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: massimo | last post by:
Hey, I wrote this program which should take the numbers entered and sort them out. It doesnąt matter what order, if decreasing or increasing. I guess I'm confused in the sorting part. Anyone...
10
by: Kent | last post by:
Hi! I want to store data (of enemys in a game) as a linked list, each node will look something like the following: struct node { double x,y; // x and y position coordinates struct enemy...
24
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and...
4
by: JS | last post by:
I have a file called test.c. There I create a pointer to a pcb struct: struct pcb {   void *(*start_routine) (void *);   void *arg;   jmp_buf state;   int    stack; }; ...
3
by: chellappa | last post by:
hi this simple sorting , but it not running...please correect error for sorting using pointer or linked list sorting , i did value sorting in linkedlist please correct error #include<stdio.h>...
0
by: drewy2k12 | last post by:
Heres the story, I have to create a doubly linked list for class, and i have no clue on how to do it, i can barely create a single linked list. It has to have both a head and a tail pointer, and...
10
by: AZRebelCowgirl73 | last post by:
This is what I have so far: My program! import java.util.*; import java.lang.*; import java.io.*; import ch06.lists.*; public class UIandDB {
0
by: Atos | last post by:
SINGLE-LINKED LIST Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be...
12
by: kalyan | last post by:
Hi, I am using Linux + SysV Shared memory (sorry, but my question is all about offset + pointers and not about linux/IPC) and hence use offset's instead on pointers to store the linked list in...
7
by: QiongZ | last post by:
Hi, I just recently started studying C++ and basically copied an example in the textbook into VS2008, but it doesn't compile. I tried to modify the code by eliminating all the templates then it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.