Category: CSS

  • CSS quotes and the content property

    If there’s one thing I enjoy more than learning new stuff, it is learning new stuff about something that I thought I had boxed off already. The CSS2 ‘quotes’ property pretty much fits that bill. Here’s the rub if (like me) this is a property that you’re unfamiliar with: Major browsers will prepend and append…

  • Using variables in CSS

    I’m working on a little PHP script to allow for variables and inheritance in CSS. I know there’s a ruby script that does this somewhere, but I fancy seeing if we can’t get a pure PHP version up & running between us. If you’re somebody that writes their own CSS and are willing to have…

  • Styling HTML elements in CSS without using classes / IDs

    Something I came across for the first time recently is the practice of using HTML element attributes to apply CSS styles. The mathematics can be found at http://www.w3.org/TR/CSS2/selector.html#attribute-selectors, but a basic example of where I use this technique is as follows… starting with a basic form… Demo Form Your Name Your Email Address To lay…