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(http://img90.imageshack.us/img90/6366/redtreehalfrj6.jpg);
  8. background-position:
  9. center center;
  10. background-repeat: 
  11. no-repeat;
  12. background-attachment: 
  13. fixed
  14. }
  15. </style>
  16. </head>
  17.  
  18. <body>
What am I doing wrong?
~valerien
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.

[HTML]<html>
<head>
<style type="text/css">
body {
background-image: url('http://img90.imageshack.us/img90/6366/redtreehalfrj6.jpg');
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed
}

</style>
</head>

<body>[/HTML]

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.