Solved

CSS - display image

Posted on 2014-11-07
1
108 Views
Last Modified: 2014-11-25
When I use code below on #2 it works on just my local machine. When I tried to use #1, my logo does not get display?
What should I do? This is my logo location in VS2010

Images folder
      logo.gif
     


# 1


div.hideCustlink
{
    background-color:#4d8f75;
    width:100%;
    height: 56px;
    background-position: left;
    border: thin solid #4d8f75;
    background-image: url('/logo.gif');
    background-repeat: no-repeat;
}


     
 #2  
   
   div.hideSkiplink
{
    background-color:#4d8f75;
    width:100%;
    height: 56px;
    background-position: left;
    border: thin solid #4d8f75;
    background-image: url('http://localhost:64396/report/Images/logo.gif');
    background-repeat: no-repeat;
}
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40429451
Yeah well it can't resolve the path back to the server root and the image is not in a folder below the folder with the page.

You either need to put the image in the same folder as the page or put it in a folder that that be referenced from the server root with ../report/images/logo.gif or ../images/logo.gif

Cd&
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push Book Today button to right 10 39
ASP.NET Content Page 3 35
Search Item in Table 2 23
Wordpress themes CSS? 6 11
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question