How do I add background images in a JSF application using richfaces and CSS?

前端 未结 5 2102
一生所求
一生所求 2020-12-13 16:18

I\'m making a website Using JSF and richfaces, but I need to do some background images on the drop down menu labels. I saw you can use the style attribute by doing

5条回答
  •  不思量自难忘°
    2020-12-13 16:51

    My folder structure is as follows:

    web pages->resources->css //css pages

    web pages->resources->pics //images

    web pages //xhtml files

    Try the below:

    background-image :url("../pics/logo.gif");
    

    .. moves you up one folder level /pics moves you into the pics directory /logo.gif gives you the file

    Hope this helps.

提交回复
热议问题