Home > Background Image > Asp.net Css Background-image Not Working

Asp.net Css Background-image Not Working

Contents

Imar __________________ Imar Spaanjaars http://Imar.Spaanjaars.Com Follow me on Twitter Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix and Beginning ASP.NET 4 : in View our list of code downloads. Related 278Can I have multiple background images using CSS?781When to use IMG vs. When I select edit css on web developer, background is working normally . navigate here

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Permalink Posted 6-Mar-11 23:32pm Sandeep Mewara505.5K Comments jesureno 7-Mar-11 4:43am I already did that sir, but still not displaying. As a guest, you can read any forum posting. Welcome to the p2p.wrox.com Forums.

Mvc Background Image Url

How can I claim compensation? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed cumminsj CSS Cascading Style Sheets 6 September 15th, 2006 04:02 AM background image for

anshul CSS Cascading Style Sheets 4 May 16th, 2005 12:00 PM All times

You may not be loading the image properly. the closest answer I had to the fix + learning something from it came from darin –Krohn Mar 22 '12 at 12:31 OK. that finally worked. How To Add Background Image In Mvc 5 Posts: 16,838 Thanks: 79 Thanked 1,538 Times in 1,515 Posts Quote: background-image: url(/Images/keys.jpeg); or background-image: url(~/Images/keys.jpeg); The first path doesn't work as it points to your server root, not your application's

sheenb Reply Chetan Chopa... How To Set Background Image In Mvc 4 He describes exactly how to code the path to the images on your css sheet. Does the Rothschild family own most central banks? Not the answer you're looking for?

umlaute not rendered correctly Coworker throwing cigarettes out of a car, I criticized it and now HR is involved Why were pre-election polls and forecast models so wrong about Donald Trump? Mvc 5 Background Image http://www.pmob.co.uk/pob/images/logo-new.jpg). share|improve this answer answered Mar 22 '12 at 12:19 Mr Lister 25.4k85482 dont think it is, my buddy and I are both making the exact same application, we are css asp.net-mvc-4 background-image share|improve this question asked Jan 27 '13 at 16:49 Anton Putov 62131751 add a comment| 4 Answers 4 active oldest votes up vote 6 down vote accepted In

How To Set Background Image In Mvc 4

Quite often when you use edit css the images disappear because it loses track of where they are. http://forums.asp.net/t/1746381.aspx?background+image+not+displaying+properly BTW is not a good idea to have spaces and other odd characters in your filenames. Mvc Background Image Url asp.net css image background background-image share|improve this question asked Aug 29 '13 at 5:21 matheen 1016 hv u tried to access ur app from other machine within your office...if How To Set Background Image In Asp Net Mvc 4 You will also be able to play with the css on the fly if that's your issue.

How can I ensure my Playstation 2 will last a long time? check over here Additionally, if you stored images in the same directory as your CSS file, then you should be able to call those images without the 'images/' prefix. Click the button below this post to show your appreciation! #6 (permalink) February 2nd, 2010, 10:39 AM StevenF Authorized User Join Date: Apr 2009 Posts: 11 Thanks: 2 greedyman 2012-09-20 15:53:45 UTC #5 Paul_O_B said: Hi, You are searching for your background images in this location: css/img/categories/fruit & veg.jpg Is that correct? How To Set Background Image In Mvc View

You probably should be coming back out of the css folder like so. It seems strange that you have an img folder inside your css folder yet you clearly also have an img folder outside your css folder as well (as seen from the If you are not seeing the image when running the file natively in the browser then it will be a path issue as I indicated before or a setup issue with his comment is here How do you simplify a log with an exponent in the base?

Start with putting the image one level up/down from the location and see. How To Set Background Image In Mvc 5 Can a giant spoon be utilised as a weapon Word for a non-mainstream belief accepted as fact by a sub-culture? thanks –user175084 Dec 1 '10 at 17:22 may be hosting doesn't config for static content –Alex Nguyen May 15 '13 at 1:50 @AlexNguyen : I didn't mean

How to handle swear words in quote / transcription?

Many thanks! Store any and all of your CSS images in that folder. Previous examples of large scale protests after Presidential elections in US? Mvc Layout Background Image This problem only happens when I put the files (css, html, folders images) into server (xampp) or running html with asp code.

any other suggestions.. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation If anyone knows the solution foe css files too, add it here please. –Zia Ul Rehman Mughal Feb 16 at 13:37 Nice, this worked for me as I was http://emhsoft.net/background-image/background-image-url-not-working-in-ie9.php Another way to show convergence of alternating series Join lists by observing x-value How does Gandalf end up on the roof of Isengard?

Thank you in advance. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" %> General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Currently, In ~/Views/Shared/Site.master, I set my link to the style sheet to: " rel="stylesheet" type="text/css" /> The image I plan to display is in my ~/Content/Images/Designs.png Here is what