Nov 21, 2009

Css Background Not Showing Upin Ie - it does in Firefox

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > How to's and Tutorial Request Section (No Credits/Posting Points)

Css Background Not Showing Upin Ie - it does in Firefox

Gekko
I couldn't find a sub-forum for CSS, so i thought i would post it here.

I'm using CSS to display backgrounds, and for font types and such. So i want to add a background, called "background.jpg"
this is the CSS code:

CODE
body {
background-image: url(background.jpg);
background-repeat: repeat;
}


but for some reason, the background only shows up in Firefox, and not in IE

is this an error in my code?

thanks in advance smile.gif

Comment/Reply (w/o sign-up)

Quatrux
Really? maybe it doesn't find the path or something?

try using:

CODE
<style type="text/css">
body
{
background: #ffffff url('background.jpg') repeat;
}
</style>


It should work on IE, unless there is another problem, try browsing and learning a little bit from the simple tutorial site:
w3schools

Comment/Reply (w/o sign-up)

FirefoxRocks
Is the background.jpg file in the same directory as the HTML file? Does the background.jpg file even exist?
Try putting quotation marks around "background.jpg" (like that).

Comment/Reply (w/o sign-up)

iGuest-monka
did you solve it already?
Css Background Not Showing Upin Ie

Replying to Gekko

Hello Gekko, I exactly know what is your problem cause my problem is the same. I wanted to ask if you solved this problem. Please share the solution with me, cause I can't find anywhere.

Anyway
Qutation marks doesn't work...
The file exist cause firefox can find it (just IE not)

Thanks
Monka

-reply by monka

Comment/Reply (w/o sign-up)

yordan
Last time I had a look, in an html file, the background file was written with double quotes :
<body background="http://files.photojerk.com/something.JPG" /body>
Did you try with double quotes ?
Yordan

Comment/Reply (w/o sign-up)

shoe1189
Use a .gif instead of a .jpg

Comment/Reply (w/o sign-up)

shoe1189
This might work:

CODE
<style type="text/css">
body
{
background: #ffffff url(background.gif) repeat;
}
</style>


I ran into the same problem but as soon as I saved it in the new format it worked.

Comment/Reply (w/o sign-up)

(G)Shovan
Chrome Background Colour
Css Background Not Showing Upin Ie

You have designed amazing Website site and tested it in all browser. But when it Comes to Google Chrome the background image or background colour doesn’t show Up? Here is a simple solution

When you create CSS style using Dreamweaver for web designing, Dreamweaver Adds a default code such as

@charset “utf-8″;

Try removing this from your stylesheet, the background image or colour should Display properly

 

-reply by Shovan

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Css Background Showing Upin Firefox


    Looking for css, background, showing, upin, firefox

See Also,

*SIMILAR VIDEOS*
Searching Video's for css, background, showing, upin, firefox
advertisement



Css Background Not Showing Upin Ie - it does in Firefox

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com