Solved

CSS - display image

Posted on 2014-11-07
1
111 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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