Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Some wierd problem

Featured Replies

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.

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;
}

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>

  • 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

  • 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.

  • Author

It was my ftp playing up, sorted now mate, Thank a bunch :)

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 :).

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.