Posts in the CSS category
14 December 2009 by
I have been thinking about what I might do with this blog next year because I want to do something that would be (for me) a bit different. I have been wanting to redesign for a while and here's an idea that I am considering.
03 December 2009 by
I have been reading several articles recently, and reminding myself, about attribute selectors. In case you’re wondering, attribute selectors in your style sheet allow you to style an element based on an attribute and value. This means that you can set-up style rules without the need to add class names to your (X)HTML. Cool! For example, you could style all external links by using a selector that targets the href attribute and matches any href value beginning with “http”.
09 November 2009 by
I have been trying to use some different CSS properties in recent style sheets and one of these is the opacity property. It’s quite easy to use and can give you a sophisticated effect where one element shows through another. Hey, what’s not to like!? Unfortunately, we need to apply a few Internet Explorer fixes but they are also relatively easy to implement (even if they look a bit complicated).
23 September 2009 by
I have been busy with a new website that includes several customer comments about the business in question. That’s great but how should I code it? In this case, I thought it would be best to use the <blockquote> tag/element in my HTML. If you don’t use this tag, you should because it’s really quite useful both as a meaningful way of marking up your content and as a tag that you can style. I also decided to use the cite element. Normally, I include the <cite> tag within the <blockquote> and wrap it round the name of the person who made the comment/quote.
25 August 2009 by
The third edition of The CSS Anthology: 101 Essential Tips, Trick and Hacks by Rachel Andrew is now available from Sitepoint.
18 August 2009 by
There's a good article called Taming Advanced CSS Selectors by Inayaili de León on the Smashing Magazine website.
12 August 2009 by
The other day, I needed to add a strap line or caption on top of an image. Yes, I can do this in an image editor like Photoshop or Fireworks but I wanted to compare an alternative method using CSS. The CSS method also has the advantage that the text will be read by search engines. Anyway, here's how I chose to to do it.
30 July 2009 by
Jonathan Snook published an interesting blog post recently where he described text rotation with CSS.
21 July 2009 by
There has been quite a lot of progress on the subject of web fonts in recent months. Rather than sticking to a core set of web-safe fonts, web designers might soon be able to use a much wider range, by choosing one of several new methods. Here's a short summary of recent developments.
03 July 2009 by
Handcrafted CSS: More Bulletproof Web Design by Dan Cederholm and Ethan Marcotte is a new book [and DVD] due in August.