July 20, 200917 yr Made a new background just wanted to mess around with it and see how it looked. Display correct in IE8 but doesn't in FF3 and Chrome. CSS code is as follows: body { background:url(images/background.jpg) #ffffdb bottom right no-repeat; } Live can be viewed at My link Whats happened :S Many Thanks Ben.
July 20, 200917 yr See if this works: body, html { width:100%; height:100%; padding:0; margin:0; } body { background:url(images/background.jpg) #ffffdb bottom right no-repeat; }
July 20, 200917 yr Tested it and it works! : <html> <head> <title>Luke</title> <style type="text/css"> body, html { padding:0; margin:0; width:100%; height:100%; } body { background:url(background.jpg) #ffffdb bottom right no-repeat; } </style> </head> <body> </body> </html>
July 20, 200917 yr Author Thanks for the reply, I've added the changes you suggested and for soem reason it still isn't working in anything except IE8, I've used firebug and nothing seems to be wrong, but when i navigate to my CSS file the body, html tag's aren't in the file but when i view in my ftp program they are visable? Is there anything i need to change? Is is a first for me so i am completly stumpted. Ben
July 20, 200917 yr Author You haven't uploaded the css that I showed you buddy . I have thats the wierd thing, unless its my ftp playing up, im viewing the server side on my ftp program and its saying its there, ill restart the program and see what happens. Get back to you in a bit.
July 20, 200917 yr You're welcome buddy, just for future reference: I always put the following at the top of my css: body, html { padding:0; margin:0 width:100%; height:100%; } That way problems like that rarely occur, and when/if they do, you can rule that out .
July 20, 200917 yr Author You're welcome buddy, just for future reference: I always put the following at the top of my css: body, html { padding:0; margin:0 width:100%; height:100%; } That way problems like that rarely occur, and when/if they do, you can rule that out . Thank you for the advice, i will keep that in mind
Create an account or sign in to comment