HTML 4 background tiles
-
Andrew_Baker
HTML 4 background tiles
Okay, I've read the specs, and I still can't find the answer I'm looking for. I'll look for other on-line resources to help answer my question, but I figured I could probably get a quick answer here, too.
The Problem: I'm attempting to use a tiled background image on my website. I tried using the code <body background="vgwallpaper.gif"> but the tiles don't appear when I view it with a browser.
Moreover, the HTML 4 specs say that particular method has been deprecated and is being intentionally phased out in preference of style sheets. I'm fine with that, but I was unable to locate an alternative to that declaration within the style sheet docs.
Does anyone know how to do this so it will view properly in any browser? I'm not very familiar with ALT declarations either, but since I'm a regular Lynx user, I don't want to break my web site for people who are using a text-only browser.
Thank you.
The Problem: I'm attempting to use a tiled background image on my website. I tried using the code <body background="vgwallpaper.gif"> but the tiles don't appear when I view it with a browser.
Moreover, the HTML 4 specs say that particular method has been deprecated and is being intentionally phased out in preference of style sheets. I'm fine with that, but I was unable to locate an alternative to that declaration within the style sheet docs.
Does anyone know how to do this so it will view properly in any browser? I'm not very familiar with ALT declarations either, but since I'm a regular Lynx user, I don't want to break my web site for people who are using a text-only browser.
Thank you.
-
jelleghys
Re:HTML 4 background tiles
Hmmm, I'm not sure if I fully understand you, but here's what I would do: (You've probably already done it, but anyway)
If you want an example, check this website I made for a friend of mine: http://users.skynet.be/jeroenjanssens/
Check this file too: http://users.skynet.be/jeroenjanssens/stylesheet.css
- Jelle
- Check if the filenames are correct
- Check if the file is in the right directory
- You use stylesheets? Like css? Check this file (or in the style-tag in your html-file) for background code... Maybe you should just add this: body {background-image: rl('backimage.gif');}
- Maybe you should also check for UPPER and lower case... Sometimes this messes everything up.
If you want an example, check this website I made for a friend of mine: http://users.skynet.be/jeroenjanssens/
Check this file too: http://users.skynet.be/jeroenjanssens/stylesheet.css
- Jelle
-
Andrew_Baker
Re:HTML 4 background tiles
No, I'm NOT using style sheets. I'm using plain HTML. I may switch to style sheets, though, because this is not working. The funny thing is that I've seen other sites with virtually identical code... identical in the body reference... with working background tiles in my browser.
-
Schol-R-LEA
Re:HTML 4 background tiles
I know that you've presumably checked already, but is this name suposed to be "vgawallpaper.gif" by any chance? The little things are the easiest to miss, after all. You can stare right at them and not see them, sometimes. OTOH, it's just a guess, and probably wrong. I thought I'd mention it, though.Andrew_Baker wrote: The Problem: I'm attempting to use a tiled background image on my website. I tried using the code <body background="vgwallpaper.gif">
-
123abc
Re:HTML 4 background tiles
I have the perfect fix: you MUST save the file as a.html, that is, not .htm.
For some reson, .htm's won't work!
For some reson, .htm's won't work!
-
Tim
Re:HTML 4 background tiles
Yes they will, if you have your browser set up correctly. Windows browsers will recognise both .htm and .html as HTML code by default.
I reckon the file name is wrong.
I reckon the file name is wrong.
-
sonneveld
Re:HTML 4 background tiles
Considering Baker Man is cooking up a game called Voodoo Girl, I believe the filename is correct.
- Nick
- Nick
-
Andrew_Baker
Re:HTML 4 background tiles
It is index.html... sorry, but that's not it. I also double-checked, and the file is named correctly. Maybe it's the gif format? Maybe it's the fact it was imported from Mac and I may have messed something up when porting it? (although it doesn't appear in Netscape Navigator 4.x for Mac, either)
-
jelleghys
Re:HTML 4 background tiles
Hmm, maybe, but then... you should try another pic, see if that works...Maybe it's the gif format?
-
Andrew_Baker
Re:HTML 4 background tiles
Yep, I put it into Illustrator and then exported it as a jpg and it worked. I still don't know if it was because it was a gif or a Mac file, but I'll find out soon.
-
detheavn
Re:HTML 4 background tiles
Could be that it has something to do with the CYMK and RGB color modes. Browsers truly dislike CYMK , and will show garbage IF showing anything at all.
-
Andrew_Baker
Re:HTML 4 background tiles
Thank you. I converted it to JPEG in Adobe Illustrator, but I had to manually adjust the size of the image to get it to tile properly (HTML has built in paramaters for resizing foreground images, but not backgrounds for some bizarre reason), but the image turned out gigantic, even though I didn't change its size in Illustrator.
Any, check out www.voodoogirl.cjb.net to see the net result of all of your advice.
Any, check out www.voodoogirl.cjb.net to see the net result of all of your advice.