By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

CSS Backgrounds in Safari

P: 1
I'm relatively new to html, having only created my website about 2 months ago. I'm trying to create a fixed background with no repeat on my Safari based website. I put in the same html that worked just fine on Internet Explorer, but it doesn't want to work for me on Safari. This is the code I've been putting in:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. body 
  5. {
  6. background-image: 
  7. url(;
  8. background-position:
  9. center center;
  10. background-repeat: 
  11. no-repeat;
  12. background-attachment: 
  13. fixed
  14. }
  15. </style>
  16. </head>
  18. <body>
What am I doing wrong?
Removed Email Address
Jan 6 '08 #1
Share this Question
Share on Google+
1 Reply

P: 32
Not sure what your issue is, but I have replicated your code in SafariWin FF Opera and IE6.

All are working correctly.

<style type="text/css">
body {
background-image: url('');
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed



I added the single quotation marks around the URL, but that made no difference.
Could you please elaborate on what is going wrong?
Jan 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.