2 replies [Last post]
mjolnir
Offline
newbie
Last seen: 9 years 27 weeks ago
Timezone: GMT-6
Joined: 2011-05-14
Posts: 1
Points: 4

Why would neither

#html {background: url("images/logo.jpg"); background-repeat:repeat-x; background-color:green;}
or
#body {background: url("images/logo.jpg"); background-repeat:repeat-x; background-color:green;}

work in Safari (works in Firefox)

but #html,body {background: url("images/logo.jpg"); background-repeat:repeat-x; background-color:green;}

does work?

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 1 week 4 days ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2043
Points: 2268

CSS is meaningless without

CSS is meaningless without the context of markup.

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 19 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

#html and #body shouldn't

#html and #body shouldn't exist.
You shouldn't have IDs named after elements that exist.
Rename those divs to something more appropriate.
Unless of course you are actually referring to the html and body tags, in which case they are not IDs and shouldn't have a hash mark in front.
Which is why your third example works, because body does not have the hash mark.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph