This is a discussion on "Background images in Firefox" within the Web Page Design section. This forum, and the thread "Background images in Firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Background images in Firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Background images in Firefox
After many different problems, i'm finally getting somewhere. However, I can't get background images to display in FF. They work fine in IE.
http://www.usdmanciano.com/test.html The css is as follows: body { font-family: Verdana, Arial, Helvetica, sans-serif; background-image: url(/image files/Logobg.gif); background-position: 1cm 5cm; background-repeat: no-repeat; } .menubutton { background-image: url(/image files/button.gif); margin-top: 4px; margin-left: 0px; height: 22px; width: 100px; font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; text-align: left; text-indent: 8px; } Any ideas? |
|
|
|
|||
|
Re: Background images in Firefox
Your page has 35 validation errors. I suggest you start by fixing those. |
|
|||
|
Re: Background images in Firefox
The errors are because of a cut and paste swf, which I've taken out.
The problem still exists. |
|
|||
|
Re: Background images in Firefox
which set of code is the images not working?
Although, I dont have much experience using CM for a unit in positioning images, I would however consider using something that does officially work well in FF like pixel (px). So my suggestion is, to narrow down the problems, try doing this.
Good luck! |
|
|||
|
Re: Background images in Firefox
I used px previously and switched to cm in attempting to make it work. Also tried percentages. No joy!
|
|
|||
|
Re: Background images in Firefox
One of the techniques I try doing is taking out all the extra stuff you dont need, and testing the problem solo in a test file. Then test all your basic CSS things, like including the css file into the html file correctly. Simple things like commas, and periods, and spelling. Checking over all the little "basic" things that could cause a problem.
Eventually you'll narrow down the problem. I'll have a full fledge example, with the code, and multiple real-world solutions to your problem tomorrow before noon central time. Its 2:30 am central right now, and I just got back from downtown chicago, so I'll be sure to finish this example tomorrow. Hang in there mate! |
|
|||
|
Re: Background images in Firefox
.background1 - is the class div in the html #background2 - is the ID div in the html
Variations:
I know that font didn't have anything to do with your question, but since I use it all the time, I thought I'd explain it here too.
Its important that you end all your font families with sans-serif, because its the most commmonly used font family across any platform/browser. Variations:
Alright, I think I've explained the code you see above. Here is the example link: http://www.designbyinc.com/misc/bg_img_test/index.php http://www.designbyinc.com/misc/bg_i...css/screen.css http://www.designbyinc.com/misc/bg_i...images/bg1.gif http://www.designbyinc.com/misc/bg_i...images/bg2.gif http://www.designbyinc.com/misc/bg_i...es/main_bg.gif Well, sorry for the really lengthy post, but hopefully it'll teach you a couple new things, and hopefully fix your background problems also! |
|
|||
|
Re: Background images in Firefox
One side note:
If you dont have a background image repeat, and dont define a width/height of the background image, you need to put "display: block;" at the end.
|
|
|||
|
Re: Background images in Firefox
Last edited by mattdetails; Jun 9th, 2006 at 19:20. |
![]() |
| Tags |
| background, images, firefox |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is it possible to have 2 background images? | lmc148 | Web Page Design | 8 | Jun 17th, 2008 01:46 |
| how can I tile 2 background images one on top of another? | oneup | Web Page Design | 2 | Feb 18th, 2008 19:11 |
| [SOLVED] Background Images | admiral1977 | Starting Out | 6 | Oct 29th, 2007 15:31 |
| Disappearing Background Images (IE6) | kidreapertronV | Web Page Design | 14 | Jun 8th, 2007 16:45 |
| Cant Get CSS background images to show up | mschroeder | Web Page Design | 3 | Jan 18th, 2007 13:33 |