1 reply [Last post]
alopexid
alopexid's picture
Offline
newbie
Palmer, Alaska
Last seen: 9 years 51 weeks ago
Palmer, Alaska
Timezone: GMT-8
Joined: 2010-07-20
Posts: 4
Points: 7

Hi all,

I'm having an issues in Safari—when my page first loads, my background image does not repeat on the x-axis like I am telling it to (). Once I click through the other links however, it appears correctly. Here is my code:

CSS

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 9pt;
	margin-top:0;
	margin-bottom:0;
	margin-left:0;
	margin-right:0;
	padding-top:0;
	color: #666666;
	background-repeat: repeat-x;
}

HTML

<style type="text/css">
#Intro {
	position:absolute;
	background-color: #FFFFFF;
}
#Introback {
	position:absolute;
	background-color: #000000;
}
body {
	background-color: #CCC;
	background-image: url(Assets/Balance/Back.jpg);
}
</style>
</head>
 
<body onload="MM_preloadImages('Assets/Balance/Architecture.png', 'Assets/Balance/Back.jpg')">

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 49 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Why have you got declarations

Why have you got declarations for the body split into two different places?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference