468,257 Members | 1,409 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

CSS Backgrounds in Safari

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>
  18. <body>
What am I doing wrong?
Removed Email Address
Jan 6 '08 #1
1 1572
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('http://img90.imageshack.us/img90/6366/redtreehalfrj6.jpg');
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.

Similar topics

1 post views Thread by RoDzZzZ | last post: by
4 posts views Thread by Paul W | last post: by
5 posts views Thread by Bill Cohagan | last post: by
34 posts views Thread by Simon Wigzell | last post: by
1 post views Thread by alice | last post: by
6 posts views Thread by Johan | last post: by
9 posts views Thread by Barely Audible | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.