change Firefox 2 background!

User Help for Mozilla Firefox
ITALIan pride
Guest

change Firefox 2 background!

Post by ITALIan pride »

I was wondering if anyone knew how to change the background of Mozilla Firefox 2 to show a picture??

Please help.
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

ITALian pride
Guest

same

Post by ITALian pride »

that helped me change the color, but not set a image as the firefox background. any more suggestions?
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

Where exactly do you want that background to appear?

Can you illustrate that with a screenshot? (use a .png or .jpg file)
If you need a place to host a screenshot, look at http://www.imageshack.us/
ITALian pride
Guest

same

Post by ITALian pride »

its a jpeg image that has the firefox eating ie and i want it as the background of the firefox browser
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

You still have told where you want that background to appear: in the browser area or in the navigator-toolbox (menu bar, nav bar , pers. toolbar).
italian pride
Guest

same

Post by italian pride »

Ohh, my bad. I want the image to appear as the background of the browser. Like instead of a white screen when you go to a different website, i want the picture to be the default background.

Thanks for your help by the way :)
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

I couldn't get it to work on about:blank
Error Console shows:
Security Error: Content at about:blank may not load or link to file:///...../chrome/sky.png

Code: Select all

@-moz-document url(about:blank) {body {background-image: url("sky.png") !important;}}
Old Bozz
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Bozz »

I've tried this before and can't find a way to get an image to work. I also had another forum member look at it who is very good at CSS and he couldn't figure it out either. The best I could come up with is changing the background color.

In userChrome.css

Code: Select all

/* Blank background before clicked link page loads...
see userContent.css for blank tab and startup blank
before homepage loads */
tabbrowser tabpanels {
background-color: rgb(220, 220, 220) !important;
}


In userContent.css

Code: Select all

/* Background for blank tab and Firefox startup blank page
before homepage loads...
see userChrome.css for background before clicked link page loads */
@-moz-document  url(about:blank) {
html {
  background-color: rgb(220, 220, 220) !important; }}
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

If it is a security issue then you need a CAPS expert.
Old Bozz
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Bozz »

dickvl wrote:If it is a security issue then you need a CAPS expert.

I believe thats the issue. Firefox not being allowed to access your hard drive to display web content or allow a hacker to access your files or something like that. I'm fine with the background color hack. It tones down the bright white at least. Maybe the OP needs something more than that.
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Post by dickvl »

I'm also using the background version with #f0f0f0.
And also: #configTreeBody {background-color: #f0f0f0 !important;}
User avatar
RaiseMachine
Posts: 1764
Joined: December 6th, 2004, 6:05 pm
Location: England

Post by RaiseMachine »

This is what I use:

Code: Select all

@-moz-document url("about:blank") { * { 
    background: url("background.jpg"); // Change this to an image of your choice that resides in your Profile/Chrome folder, although any other path is OK, including eg. file://C:/Images/Image.png
    margin: 0px;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}}
"Doesn't the idea of making nature against the law seem to you a bit... unnatural ?" - Bill Hicks
"Money is the Schrodinger's Cat of economics." - Robert Anton Wilson
"It's not a bug, it's two features having a fight in the pub car-park." - Me
Old Bozz
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Bozz »

^^It doesn't work for me.
User avatar
RaiseMachine
Posts: 1764
Joined: December 6th, 2004, 6:05 pm
Location: England

Post by RaiseMachine »

Check the path you've used for the image. The code works.
"Doesn't the idea of making nature against the law seem to you a bit... unnatural ?" - Bill Hicks
"Money is the Schrodinger's Cat of economics." - Robert Anton Wilson
"It's not a bug, it's two features having a fight in the pub car-park." - Me
Locked