Pictures in Database "view list" via CSS template

Pictures in Database "view list" via CSS template

by E Max -
Number of replies: 2

Hallo I would like to add an picture in the database "view list"

 

I add a div Tag in to the "list template" like this: 

<div class="comment">Nice to see you again</div>

and add this lines in to the "CSS template" of database: 

div.comment {
background: gray;
    font-weight: bolder;
    background-image: url (http://mysite.com/theme/image.php?theme=maxstandard&image=icon&component=page);
}
 
The parts "background and font-weight work fine. 
But not the "background-image" part.. 
How can I ad pictures to the CSS Template?
 
Thank you. 
Best Regards
Max
Average of ratings: -
In reply to E Max

Re: Pictures in Database "view list" via CSS template

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Try this link

http://docs.moodle.org/dev/Themes_2.0_How_to_use_images_within_your_theme

I presume that as the other parts of the rule worked, you have theme designer mode enabled or have purged caches.

Richard