[All Adaptavist Apps]

Page tree

 I am including css through theme Builder but css is not able to show the image which i want to display through css . also i don't kwow where to put the image folder

.battonlinktext1 {
    color:#FFFFFF;
    text-align:center;
    padding-top:10px;
    background:url(../images/Home_btn1.gif);
}

This is my css which i included in my site but unable to display the images also where should i put the image folder ....please help me...

3 Comments

  1. Unknown User (gfraser)

    Your image path won't work - eg. rendering that CSS on this page the image URL would resolve to http://www.adaptaivst.com/display/Builder/Home_btn1.gif = not a valid URL on a Confluence wiki.

    If you're storing image as page attachments, the easiest way is to just grab the URL to the attachment by right-clicking the link to the file on the attachments screen.

    If you've put the image in to the /images folder on the server, then specify the path from root of the full URL to the image, eg. /confluence/images/Home_btn1.gif .

  2. Unknown User (bng_goldenboy)

    I'm having no luck trying to link to an image on a file share via CSS. Can you tell me the proper syntax for this:

    background-image: url(\\network-share\folder\file.png)

    I've tried url(file:///\\blahbla) but that didn't work either. When I use HTML to display images on a page, the first example works fine, but I can't get either to work via CSS. Suggestions? Thanks!

    1. Unknown User (bng_goldenboy)

      NM - discovered that this doesn't work in general (worked for some stuff in IE but nothing in firefox).