473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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>
  17.  
  18. <body>
What am I doing wrong?
~valerien
Removed Email Address
Jan 6 '08 #1
1 1650
garrow
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

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

Similar topics

1
by: RoDzZzZ | last post by:
when i try print (ctrl +p) my webpage, my printer not print the backgrounds and bgcolors of my tables.... what i need make to show the backgrounds and bgcolors in my paper when the user print...
0
by: ghadley_00 | last post by:
Hi, Have created 2 seperate reports that have different images as backgrounds. Would like to have both pages print out as 1 print job (so duplex printer will make each report page on opposite...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
5
by: Bill Cohagan | last post by:
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most immediate problem is that the menu control doesn't seem to work at all, particularly the use of...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
16
by: rcmatt4321 | last post by:
First I have to tell you guys how much of a help you are to a kid my age. People literally gave me the code to solve my problem last time. Here is my problem. I am trying to get into the habit...
1
by: alice | last post by:
I'm trying to have a background image in a div, then have several divs within that div that have black backgrounds. The problem I'm finding is that in Firefox and Safari, the first background image...
6
by: Johan | last post by:
I can set/change a background with: document.getElementById("photodiv").style.background = "#282828 url(../img/pict_1.jpg)"; How do I set/change multiple backgrounds using javascript?
9
by: Barely Audible | last post by:
Quick question... background:#CBCBC3 url({{url}}mod/template/templates/Default_Template/images/header.gif) repeat-x; /* #d9e2f2 */ produces the light grey background to the page with an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.