Sarah Craze's posts

2 posts

CSS 2.1 and CSS 3 selectors

Author: Sarah Craze

I’ve been meaning to check out the more complex selectors in CSS 2.1 for a long time but never seemed to find the time to experiment. So having some downtime the other day I thought I should get constructive.

Ninja at work

Descendant selectors seem well used in CSS these days and are a powerful way to target HTML elements within the page (for e.g. div.message p, which targets all p tags within div elements that have a class of ‘message’). It’s a good way to keep your HTML as clean as possible because it reduces the need to give every element on the page a unique id or a class for targeting purposes. And they’re well supported in all the major browsers that I usually test with – Firefox, Safari, Opera, and IE down to 5.0.

Read this post

Taking on PNG files in IE

Author: Sarah Craze

PNG (Portable Network Graphics) files are great – the lovely little graphic file format that allows for a gradation from full colour to transparency within a graphic. It’s a handy little tool in your kit to help you translate a designer’s vision into a web page.

Well, handy in some browsers. In other browsers it’s more of a “hmmmm, how does this work?” kind of thing. Those “other browsers” being IE6 and IE5.5.

Read this post