Archive: CSS

The DOM again - A Style Sheet Switcher

Posted on Thursday, August 17th, 2006

A comment a few days ago about the colours used on this site got me thinking. First of all I started considering what would be a nice colour to make my headings so that they were readable for everyone. Rather than stopping there and testing out some new colours, I kept thinking eventually deciding that a new design was the only way forward! Finally, thoughts of accessibillity crept into my head reminding me of Roger Johansson’s high contrast layout (originally suggested on A List Apart by Joe Clark) and it all made sense.

If I build a stylesheet switcher into my site then I can keep this design and serve up as many other ones as I like, improving accessibility and keeping the bright blueness of my headings.

Of course, doing this would test and improve my scripting (my ultimate aim) so I got to work.

Continue reading “The DOM again - A Style Sheet Switcher” »

IF Internet Explorer THEN Do Something Else

Posted on Monday, August 14th, 2006

I have been working on my first job this week, hence my lack of posting recently. It has been quite an experience finally designing a site for someone else, but this is not really the issue on my mind.

The Box Model Hack Strikes

The design of the site that I was creating this week prompted me to think about support for CSS within IE and the highly documented ways to work around it. I was using the CSS from the method for sticking a footer to the bottom of a page from A List Apart and noted the use of Tantek Çelik’s box model hack. As I progressed with the design, I came to rest on a fixed width layout and deployed the box model hack again. By the time I came around to the third use of the hack I had almost forgotten what the first two were for and had to read the code carefully to work out what I was trying to achieve.

Continue reading “IF Internet Explorer THEN Do Something Else” »