Background problem

Started by edi67, August 15, 2005, 10:37:08 AM

Previous topic - Next topic

edi67

why if i use Firefox i not see my background page and also if i open my forum with IE of every others browser i see background ?

my forum:  http://www.forumzone.net.ru/index.php
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

xenovanis

Happens to me in both IE and Firefox. Looks like there is something wrong with the themepaths. Is this the default theme? Do other themes load the same?
"Insanity: doing the same thing over and over again and expecting different results."

edi67

yes is the only default theme... very strange yes?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

xenovanis

Are you sure the path is correct? Use repair_settings to check it.

What is repair_settings.php?
"Insanity: doing the same thing over and over again and expecting different results."

edi67

Quote from: xenovanis on August 15, 2005, 11:49:43 AM
Are you sure the path is correct? Use repair_settings to check it.

What is repair_settings.php?

done but as i told you is all perfect......

some solution ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

kegobeer

This isn't the correct way to call the background image:

background-image: url(/Themes/default/images/bkgFZfinal Copy.jpg);

This is the correct way:

background-image: url(images/bkgFZfinal Copy.jpg);

CSS calls the image from where the style.css sheet is located.  Currently, it would be looking for /Themes/default/Themes/default/images/bkgFZfinal Copy.jpg.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

edi67

Quote from: kegobeer on August 15, 2005, 05:53:53 PM
This isn't the correct way to call the background image:

background-image: url(/Themes/default/images/bkgFZfinal Copy.jpg);

This is the correct way:

background-image: url(images/bkgFZfinal Copy.jpg);

CSS calls the image from where the style.css sheet is located.  Currently, it would be looking for /Themes/default/Themes/default/images/bkgFZfinal Copy.jpg.

i done all you told me but as you can see with IE, and other browser background appear with FIREFOX no...why so...grrr
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

1MileCrash

where did put it? It should NOT go where it says "the main body of the entire forum". Is that where you put it?
The only thing php can't do is tell you how much milk is left in the fridge.



edi67

Quote from: Tippmaster on August 15, 2005, 08:00:38 PM
where did put it? It should NOT go where it says "the main body of the entire forum". Is that where you put it?

background image is called by Style.css file, in directory /Themes/default
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

1MileCrash

no, where did you put the image script in style.css?
The only thing php can't do is tell you how much milk is left in the fridge.



tentronik

What does the css body tag look like?

edi67

Quote from: Tippmaster on August 15, 2005, 08:04:23 PM
no, where did you put the image script in style.css?

here:

Quote
/* By default (td, body..) use Tahoma in black. */
body, td
{
   color: #000000;
   font-size: small;
   font-family: Tahoma, arial, helvetica, serif;
}

/* The main body of the entire forum. */
body
{
   background-image: url(images/bkgFZfinal Copy.jpg);
   margin: 0px;
   padding: 0px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
   font-size: 9pt;
   color: #000000;
   font-family: Tahoma, arial, helvetica, serif;
}
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

1MileCrash

#12
the actual background that you see is divided among three tags, they are #headerarea,
#footerarea, and #bodyarea. It is near the bottom of the CSS, that is where you should add it.

This part-
/* The main body of the entire forum. */
body
{
  background-color: #ffffff;
  margin: 0px;
  padding: 0px;
}

Is a "background of the background". It will show when you refresh, (sometimes), if you change the forum width to be less than 100%, etc. Leave it alone. There is no real reason to change this part. Just have it as a general hue match.
The only thing php can't do is tell you how much milk is left in the fridge.



tentronik

#13
remove the first body tag, and yes there are like 3 or more area tags for the SMF default theme (header, bodypart, footerarea),


td
{
   color: #000000;
   font-size: small;
   font-family: Tahoma, arial, helvetica, serif;
}

/* The main body of the entire forum. */
body
{
   background-image: url(images/bkgFZfinal Copy.jpg);
   margin: 0px;
   padding: 0px;
}


this is mine mambo
body{
margin: 2px;
background: url(../images/q/main_bg.jpg) repeat-x;
background-color: #000;
}


SMFbody
{
background-color: #000;
margin: 0px;
padding: 0px;
}

1MileCrash

no, you are supposed to add it here-
/* This is the white header area where the title, menu bars, and header boxes are. */
#headerarea
{
   background-image: url(images/"your image");
   border-bottom: 0px solid gray;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
   background-image: url(images/"your image");
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
   color: black;
   background-image: url(images/"your image");
   border-top: 0px solid gray;
}
The only thing php can't do is tell you how much milk is left in the fridge.



tentronik

#15
Quoteno, you are supposed to add it here-
Ok could be 1 of those too sure.
I had a similar problem and it turned out it was the main body css tag.

Oh and might be as i see now that you need change the image URL :p ?
this
  background-image: url(images/bkgFZfinal Copy.jpg);
change to
   background-image: url(../images/bkgFZfinal Copy.jpg);

AND
rename the image to
bkgFZ_BodyBg.jpg
so finally
   background-image: url(../images/bkgFZ_BodyBg.jpg);
The path depends on your theme dirctory.
When its default use
   background-image: url(images/bkgFZ_BodyBg.jpg);

edi67

Quote from: Tippmaster on August 15, 2005, 08:19:44 PM
no, you are supposed to add it here-
/* This is the white header area where the title, menu bars, and header boxes are. */
#headerarea
{
   background-image: url(images/"your image");
   border-bottom: 0px solid gray;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
   background-image: url(images/"your image");
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
   color: black;
   background-image: url(images/"your image");
   border-top: 0px solid gray;
}


i made all your modifications but nothing changed with FIREFOX i cnanot see background image may be is one FIREFOX problem i dont know realy ..
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

1MileCrash

it doesnt show up in Opera either, but i do see it in IE. That is odd, because i see background images for my themes just fine in opera.
The only thing php can't do is tell you how much milk is left in the fridge.



kegobeer

#18
Try removing the space in your filename.  Rename it to bkgFZfinalCopy.jpg (and update your style.css file accordingly) and your problem should vanish.  Spaces in filenames can cause non-IE browser issues.  Generally, spaces in filenames aren't a good idea - if you have other files with spaces, I recommend renaming those files as well.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

edi67

Quote from: kegobeer on August 16, 2005, 07:05:27 PM
Try removing the space in your filename.  Rename it to bkgFZfinalCopy.jpg (and update your style.css file accordingly) and your problem should vanish.  Spaces in filenames can cause non-IE browser issues.  Generally, spaces in filenames aren't a good idea - if you have other files with spaces, I recommend renaming those files as well.

Great thanx very incredible one space inside name cause problem with Firefox so strange but realy thanx for suggestion  ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: