css hacks and accessibility (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


d a v e -> css hacks and accessibility (8/27/2005 5:38:15)

ok - so you've made your shiny new accessible site, tested it in other browsers and tweaked your css to play nicely in most of them, shoving in one or two hacks along the way. you go to place the valid (X)html and css 1 and 2 on your site and click the link and - oh dear! your css hacks don't vaildate!!!

well you know that it's 'valid' to use things like the voice-hack but anyone seeing your site doesn't know that so what do you do?? put a disclaimer on saying that the w3c validator doesn't undertand things like those hacks and it's all ok really?




Tailslide -> RE: css hacks and accessibility (8/27/2005 6:13:01)

There are usually valid ways of doing stuff anyway without resorting to the invalid ones. If you absolutely can't get your site to work without using an invalid hack in your CSS then as long as you understand any possible consequences of the hack then do it - possibly stick 'em in a IE only stylesheet (and it is usually IE that causes this sort of thing) so that they can be removed at a later date. I'd also comment it so that if someone looks at it they know why you've used it.

I don't put those badges on my site anyway - asking for trouble! The only one I use is the Firefox badge - just in a desperate attempt to encourage people to dump IE.

I'll go to some lengths to avoid having to do hacks like the box model hack etc in the first place. If I really can't get IE to play nice then I'd rather feed it a separate stylesheet.




womble -> RE: css hacks and accessibility (8/27/2005 6:17:46)

Good point Dave. There's a similar problem with the "-moz-border-radius:" too. Doesn't affect accessibility and other browsers just get the standard square boxes, but the css won't validate with it in there.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875