by crazygringo · 13y ago · 0 comments
Is "!important" in your custom stylesheet not overriding it? It's supposed to, what is the technical problem?
Also, what are fontwalls? You link to a paragraph with a typeface that is exceedingly difficult to read (is that the point?), and then the rest appears to be in hieroglyphics.
> Wait, since when are inline styles a poor development
> practice?
Since always. Well, to be more precise, since <font> had fallen out of style, and separating your content and styling became a best practice.You are supposed to separate the design from the structure from any logic.
1. Code bloat: "font-family: Crimson Text; font-size: 20px; font-weight: 400; line-height: 135%;" appears 9 times. For the same reason in the CSS world we're trying to eliminate unnecessary and unwieldy div-itis and non-semantic classes. It's about reducing footprint: http://www.youtube.com/watch?v=R-BX4N8egEc. If you cannot see the logical next step that each of his Web pages may be doing the exact same thing, and thus his entire site; and further he might be using a plugin or theme that perpetuates this bad practice... if you cannot see that, then fair. But those are the kinds of problems I reflect on in my studies.
2. I'm not even sure what you're getting at with your second question. I wouldn't be posting this if my "!important" worked. If anything, Stylish may not benefit from the well-noted point that !important overrides inline styles. If that's the case: fascinating new problem we've discovered here. I am overriding paragraph elements with "!important"; that is the fact of the situation. Is there a technical problem? Perhaps.
3. Fontwalls are situations like this: a dyslexic reader is incapable of reading the content in place because the typesetting makes it inaccessible. So, like with your criticism of my typesetting on my Website: the OP has used "a typeface that is exceedingly difficult to read."
Do you understand what the wanted effect is? Because I'm pretty sure the gist of this entire discussion is: Don't use inline styles, which any front-end developer worth their salt would already agree to[1], outside of the accessibility debate. But what is more, accessibility might be one of many reasons why a front-end developer would raise the point about inline style at all.
What is needed is something like Dyslite[1] but free (and probably better). A browser plugin that overrides font-settings to use dyslexia-optimized fonts. Ranting about inline-styles doesn't help anyone. Clearly, one should be able to override even inline-styles for accessibility rather than forbidding web designers their use, even though I agree it's not exactly a good practice anyway.
Then again, I like to say that there's always a time and place for everything. Damnit even goto's have some valid use cases.
And yeah, the !important should be working. I've never used Stylish, but something's clearly broken -- in any case, your beef should be with Stylish or your browser, not with the author/developer of the blog. If you stick to a user stylesheet in your browser it should be guaranteed to work -- after all, that's the whole point of them, so that people with visual disabilities can override default styling.
So, I don't really get what the problem is. Inline styles are an integral part of the web (and are particularly, and correctly, suited to blog posts), and user stylesheets generally allow you to override them, so you can use dyslexic fonts if you choose.
You haven't even tested it, nor do you even really know what Stylish is, it seems, and you're arguing with conviction.
What am I doing here?
Thanks for the advice. I'll keep my distance then.