Safari CSS problems
January 12, 2004 11:49 AM
Subscribe
Safari is being a b!tch about correctly rendering basic CSS elements. Specifically, the 'background' attribute simply is not being honoured in any way, shape or form. The kicker is that according to Apple's own specs, Safari does indeed support that attribute; in addition, Googling turns up nothing--a few lists of Safari CSS oddities, but those don't seem to contain anything about the problem I'm seeing. [more inside]
The first time I noticed this was when trying out a messageboard system I'm coding up; in Moz and IE it looks fine, but in Safari it looks terrible. After investigating I found out that it was, for starters anyway, the background element in my BODY tag. Additionally, using it to repeat an image doesn't work (in a table), nor does it work in a small 'color test' page which uses the attribute inside DIV tags.
Even making the simplest possible webpage--HTML tags, and BODY tags, with the inline style for the background color of the BODY, results in nothing. (The problem specifically is that no matter what color I type in, it shows up white)
Anyone else seen something like this? Seems like a rather big gap to have. Oh, also, I've seen the issue on Safari 1.0, 1.1 on OSX 10.2 and 10.3, and on multiple machines as well.
posted by cyrusdogstar to computers & internet (13 comments total)
One site with backgrounds that comes to mind is simplebits.com, which works fine for me in safari. There's a good tutorial to using CSS backgrounds for layout (by Dan, the guy that runs simplebits) here.
The only problem I've had with safari was that it refused to animate background images.
posted by mathowie at 12:02 PM on January 12, 2004