Home > Background Image > Background Url Not Working

Background Url Not Working

Contents

Unfortunately, it does not appear that your HTML document has a body. Giving change in smaller denominations so customers can tip? Is there an actual army in 1984? Make sure the image path is relative to the location of the CSS file instead of the HTML. this content

Just use the type of path you are more comfortable with The last time I used an absolute path to specify the url in an include(), I think I was still share|improve this answer answered Oct 3 at 19:53 Timothy Carr 1 add a comment| up vote -1 down vote I found the problem was you can't use short URL for image If using relative paths, the path to a file (image or whatever) needs to be relative to the directory containing the file your css is in. Posting to the forum is only allowed for members with active accounts. http://stackoverflow.com/questions/12085604/css-background-url-not-showing-up

Css Body Background Image Not Working

In other words, you should become comfortable with how your project is organized. Check if same is applicable after deployment. Here is the entire css style sheet: body { background-image: url('nickcage.jpg'); padding-left: 11em; padding-right: 20em; font-family: Georgia, "Times New Roman", Times, serif; color: red; } html css image background share|improve this The assumption we make with the spec is that browsers other than IE and Chrome, and possible future browsers, will follow the spec.

just not sure why the pictures not showing, the alternative background colour shows Thanks Sanjay PRO J.T. share|improve this answer edited Jul 3 '15 at 4:37 ArK 8,8643280128 answered Jul 3 '15 at 4:15 user3427015 23 Or you could just search google png to jpg converter... What to do when your opponent doesn't play along in the opening? Css Background Color Not Working http://cdpn.io/EmfoK you might try a "../" before img.

share|improve this answer answered Aug 23 '12 at 16:22 ashleigh 17116 add a comment| up vote 0 down vote Try this ** background-image: url('/images/headings/header.gif'); ** share|improve this answer answered Sep 30 Background Image Url Not Working Css at the beginning of your URL path! */ background: #420600 url ('../img/bgtext.jpg') repeat; } The ../ at the beginning of your relative path says that the directory img/ is located one How does url work? (I assumed like src...) Debbie That looks like css code to me, not HTML. As usual, a link would be helpful.

share|improve this answer edited Jun 5 '15 at 11:45 Kieveli 8,39043662 answered Feb 1 '11 at 6:10 Olhovsky 3,59521840 add a comment| up vote -1 down vote @TheBigO, that's not correct. Css Background Image Not Loading Register Post New Thread Tips Use a live demo tool like CodePen to demonstrate problems. Extract csv from .shp files? html css background background-image stellar.js share|improve this question edited May 11 at 17:46 asked May 11 at 17:38 programmingandroid 547 Should .parallaxcontent be .parallax1 to match your class name?

Background Image Url Not Working Css

Also in your code both tbn-pTool and btn-pToolName have no text content, so that may result in them not being displayed at all. Give help. Css Body Background Image Not Working How to find x and y coordinates based on the given distance? Background Image Not Working In Chrome Join them; it only takes a minute: Sign up background : url(); not working up vote 0 down vote favorite Details : Using Atom File Editor with Mac OS X, Making

This is an elementary level course and most of your students will be typing by rote at this point in their careers and will not spot the problem. http://sohohosting.net/background-image/background-url-in-css-not-working.html If you need to contact me, use the forum contact form. That's my current 'override' CSS in a separate CSS file. HTML File :

CSS File : .pic1 { background : url(parallax1.png); } .parallaxcontent { background-attachment: fixed; background-repeat: Css Background Image Not Displaying

Thanks, Debbie system 2011-12-03 23:02:28 UTC #2 try [B]/[/B]components/body_header.inc.php'); ?> DoubleDee 2011-12-03 23:11:38 UTC #3 webdev1958 said: try
[B]/[/B]components/body_header.inc.php'); ?>
That won't work with PHP the way Not a Member Yet? The ../ goes up a level in the folder structure.

Helpful 3 Add a reply Sort By: Oldest Most Recent Most Helpful Oldest Clayton Allen almost 3 years http://sohohosting.net/background-image/background-url-css-not-working-in-ie.html Our Company About Us Contact Us Community Treehouse Stories Student Perks Treehouse Blog Affiliate Program Careers Topics HTML CSS Design JavaScript Ruby PHP WordPress iOS Android Development Tools Business Tracks Web

What is the meaning of "cow in the middle"? Css Background Image Not Showing Up Register | Login | Help Topics: Active | Unanswered Index »Theme discussion »css problem: image not working in body and div background Pages: 1 #1 2007-01-11 12:18:12 t0ma Member From: On All Rights Reserved.

[[ed.

So you are both right.

background-image" url("images/pic.jpg") no-repeat; makes the picture disappear entirely. My PS may have a bug and I do need to update but worth a thought. h1{ width: 220px; height: 36px; position: relative; } h1 span{ background: url(/images/debbie_160x45.png) no-repeat; position: absolute; width: 100%; height: 100%; } Why is background: url(/images/debbie_160x45.png) no-repeat; not working?? Background-image Invalid Property Value if you have try in jsfiddle? –falguni Jan 27 '14 at 6:45 1 please check your image extention.... –Krish Jan 27 '14 at 6:46 Try [CTRL] + [F5]

What is the most someone can lose the popular vote by but still win the electoral college? DoubleDee 2011-12-04 01:59:15 UTC #7 oddz said: Yeah, most of the time a constant is defined that specifies the absolute path to the web root. system 2011-12-04 02:36:41 UTC #13 [ot] webdev1958 said: tbh, I find absolute paths can be a pita so I always use relative paths instead. http://sohohosting.net/background-image/background-url-not-working-in-ie8.html Does the Rothschild family own most central banks?

Also... 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 so using the relative url i.e. (images/img.png) didn't work. Right now i have come across a problem which causes the image to not show up on the website while i was trying to set background image of a section tag

Like I said, I find relative paths a lot less problematic - but that's just me ralphm 2011-12-04 02:24:45 UTC #12 webdev1958 said: tbh, I find absolute paths can be a How to prove that authentication system works, and that the customer is using the wrong password? If you look at my previous post you will see the point of trying a relative path in this case, which would have worked if you had not forgotten to assign Gralka J.T.

Replace the text within the single quotes with your image name. I am able to load images with absolute path on all those browsers but can´t access them through css. You may add a css like table { empty-cells:show; } as told here –user007 Apr 25 '14 at 15:05 add a comment| up vote 0 down vote I have tried your