Home > Background Image > Background Url Css Not Working

Background Url Css Not Working

Contents

I have designed site and got it working perfectly with IE6, Firefox1.0 and Opera9 and now I can´t get background images working with div and body tag when trying to put I'm assuming the file structure you posted in post #1
[B]background: url(../images/debbie_160x45.png) no-repeat;[/B]
which is saying go up 1 level and then drill down into the images folder to the Maybe it's just a caching problem. Gralka Pro Student 18,987 Points J.T. this content

I believe the problem is with background: url(/images/debbie_160x45.png) no-repeat; which is HTML. From what I have learned, RELATIVE paths seem to work much better wuth things like HTML src. You'll want to update your body rule, specifically the background property, like this: body { /* Notice the .. I have a horrible feeling I'm missing something terribly obvious and will be insanely embarrassed once someone points it out to me, but would be thrilled if someone can tell me http://stackoverflow.com/questions/12085604/css-background-url-not-showing-up

Css Body Background Image Not Working

If you need to contact me, use the forum contact form. http://cdpn.io/EmfoK you might try a "../" before img. PPM File Modifier Understanding which string breaks when one pulls on a hanging block from below Do I need a transit visa to travel through Beijing to Melbourne? I just redownloaded the .gif & it works perfectly now!

To break it down and explain exactly what you did…"background-image" is to specify just the image. Debbie system 2011-12-04 02:52:06 UTC #16 [ot] DoubleDee said: And ABSOLUTE paths seem to work better for PHP includes, especially when the include is being used by different files in different I'd suggest you don't try to learn by rote at all. Background-image Invalid Property Value Best, J.T.

Why? How? If this works, then at least you will then know that your absolute path is specified incorrectly or there is something else going on. http://stackoverflow.com/questions/14029277/css-background-image-not-displaying Just tried that again; did not work. –jaredad7 Jan 27 '14 at 7:07 Using single quotes will only cause problems on IE/Mac, which won't even run on a modern

Does your css/ directory contain a subdirectory named img/ containing the file bgtext.jpg? Css Background Image Url Path Now I double checked and all but one image load correctly (with same code) with absolute paths through css. Mimsy were the Borogoves - why is "mimsy" an adjective? CSS background-image?208CSS Display an Image Resized and Cropped1632How do I give text or an image a transparent background using CSS?432Is embedding background image data into CSS as Base64 good or bad

Background Image Not Working In Chrome

That's my current 'override' CSS in a separate CSS file. read review successfulfail 2012-12-21 04:19:43 UTC #3 No slogan.png image file is at "img" folder. Css Body Background Image Not Working Here is my directory/file structure... Css Background Image Not Showing Up As it turns out, the relative path would not have worked either because YOU FORGOT TO ASSIGN A STYLESHEET :rolleyes: next page → Home Categories FAQ/Guidelines Terms of Service Privacy Policy

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. news Foundation Business Responsive Notable Foundation Training Talk to us Tweet us at @zurbfoundation Not a big talker? 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 which folder? "images" folder? Css Background Color Not Working

Browse other questions tagged html css background-image or ask your own question. Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront? DoubleDee 2011-12-04 02:38:05 UTC #14 ralph_m said: It the H1 appearing on pages but not the bg image? have a peek at these guys tba, I find relative paths can be a pita so I always use absolute paths instead.

system 2011-12-04 02:17:04 UTC #11 tbh, I find absolute paths can be a pita so I always use relative paths instead. Background Image Url Css Nothing works. oddz 2011-12-03 23:42:55 UTC #6 Yeah, most of the time a constant is defined that specifies the absolute path to the web root.

body { background-image: url(/images/bg_image.jpg); background-color: #921F21; background-repeat: repeat-x; margin:0; padding:0; } nuff-respec ::: dannyb Offline #5 2015-02-26 08:39:22 MarcoK Plugin Author From: Como Registered: 2006-10-17 Posts: 246 Website Re: css problem:

Image is in the same directory as the .html and the .css pages. Is the untested/empty statement true? Let me upload all of my files - which is a pain - and see if that helps. Resize Background Image Css PRO J.T.

Jeremy Stover 1,457 Points Jeremy Stover Jeremy Stover 1,457 Points over 3 years ago Thanks for the help! Thanks share|improve this answer answered Jan 27 '14 at 6:56 Usman 18418 add a comment| up vote 0 down vote try this background-image: url("/yourimagefolder/yourimage.jpg"); I had the same problem when I http://sitename can be routed anywhere. check my blog Could this be come kind of server restriction?

I don't know if you intentionally renamed it to bg-text.jpg or if it's a typo on your end. 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. Registering is free and only takes a second.

© Copyright 2017 bosseur.net. All rights reserved.