practicality: (Default)
practicality ([personal profile] practicality) wrote2006-02-08 07:24 pm

Public Service Announcement: LJ Layouts

Okay. As I had this problem this morning, and it took me forever to find an answer, I figured I might as well share. For people who woke up to find their override coding all messed up, from the LJ Support page:
For security reasons, we have made some changes to the HTML and CSS cleaner, a routine which strips invalid, incorrect, and possibly malicious code from journal styles and overrides. If your journal is displaying improperly, you will need to correct the errors in your style or overrides. LiveJournal support cannot offer one-on-one customization help; you should perform a web search for a CSS tutorial.


[livejournal.com profile] everything_lj may provide some tips on how to fix your invalid CSS, and there's a CSS validator here (although, if you have a colored scrollbar, that will read as invalid, because by W3 standards, it is. But LJ will parse it fine, because it's valid in IE). Also, if I coded your layout, lemme know it's having problems and I'll fix it - I tend to reuse a lot of the same basic override code, and there was one minor bug in my own set that was screwing around with some stuff.

[identity profile] ext_81920 (from dreamwidth.org) 2006-02-09 01:06 am (UTC)(link)
Some people on my friendslist have had issues with the CSS cleaner rejecting code that W3 validates, too.

[identity profile] momijizukamori.dreamwidth.org 2006-02-09 01:42 am (UTC)(link)
Really? Bad LJ, no cookie. W3 standards are good, mucking around with them, not so much. Although, to be honest, I don't know of the security bugs you can get with CSS.

[identity profile] ext_76778 (from dreamwidth.org) 2006-02-09 02:12 am (UTC)(link)
Thanks for the heads up.

[identity profile] momijizukamori.dreamwidth.org 2006-02-09 02:15 am (UTC)(link)
No problem. I spent a few hours going 'Argh, why did my layout die?' and figured I should help people out >.>