CSS style markup issue -- Is MetaFilter non-compliant? October 22, 2001 8:55 AM   Subscribe

You have a style element in body. That ain’t kosher, and I wouldn’t be surprised if it’s causing problems with more standards-compliant browsers.
posted by gleemax to Bugs at 8:55 AM (7 comments total)

I forgot. As far as I can see, this only occurs on the front page.

Also, it might cut down on server load slightly if CSS was in a linked file and not embedded directly into each page. Or not.
posted by gleemax at 8:56 AM on October 22, 2001

I put the style just on the front page because it is only used on that page. I could toss it up in the header on the front page only.

I don't have a linked file because everyone is getting custom CSS. The ad stuff is fixed though, so I guess I could link it.
posted by mathowie (staff) at 9:12 AM on October 22, 2001

In theory, caching peoples' css prefs into a file like "user218.css" and linking that file from the main page might be more effecient.

In theory, communism works ... [episode 1F15]
posted by sylloge at 9:39 AM on October 22, 2001

D’oh. I forgot about user prefs. You could still do it for the default look, however, which might help, but not nearly as much. This is all way too complicated for me.
posted by gleemax at 1:04 PM on October 22, 2001

It's not that there you're doing STYLE on the page, it's that there are two STYLE elements, one in the middle of the body. It appears to be specifically for the sidebar/textad section.

According to the spec, STYLE can only occur in the head section; the two STYLE blocks should be combined into one. I've seen that cause trouble in browsers before. I wouldn't be surprised if it's the source of the stylesheet problems some people are experiencing--it's no accident that the people complaining are using newer browsers that depend more on valid HTML.
posted by rodii at 5:51 AM on October 23, 2001

It's not that there you're

I'm sure that whatever I was trying to say here was cogent. :(
posted by rodii at 6:53 AM on October 23, 2001

That’s what I meant to say.
posted by gleemax at 9:42 AM on October 23, 2001

« Older Is the front page shrinking?   |   TextAd request: show us the urls? Newer »

You are not logged in, either login or create an account to post comments