Tagged: CSS

Browse by Category

Conformance Levels

Questions & Answers

Why can’t I use CSS :before and :after to insert content?

It's really very annoying that CSS pseudo element content, either :before or :after is outlawed. It is a really useful way of storing stock responses to activities, effectively creating global variables that have to be set only once. Eg html[lang="en"] [pageType="multichoice"] .wellDoneDiv::before{ content:"Well Done, that's...

  • CSS
  • css psuedo content

How can I add keyboard only focus styling?

I would like to add focus states for interactive elements on my website, however I don't want the styling I add to apply when clicking on elements. If I just use :focus in my css I see the styles come through when clicking elements, or...

  • CSS
  • focus
  • keyboard

Minimum font size?

I like the look of smaller text on the web. And even if the text is pretty normal size, some subheadings or small bits of info look nice if they are much smaller (thinking 12px or so). Is there a minimum font size that is...

  • CSS
  • text

Does my site need to be usable if the CSS and javascript doesn’t load?

I've always wondered this but never really known for sure. Let's say none of my CSS or javascript loads. Does the site still need to be usable? I know a lot of really big sites are useless without CSS and javascript so I'm betting the...

  • best practices
  • CSS
  • html
  • javascript
  • page structure