skip to content
Experiments with Cascading Style Sheets - Doing it with style
PSD to HTML

What it's all about...

Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.

The above quote, taken from the W3C website, is one of the reasons for this site. Whilst I agree that it is a mechanism for adding style to web documents, I do not agree that it is a SIMPLE mechanism. It can be very complicated, as I found out when I took my first steps down this path.

CSSplay, by the way, is now listed on the w3c.org website.

Sitegrinder

So I have created this site in the hope that it will help newcomers to CSS and show old hands that it is more than just a mechanism for styling your documents. It is oh so much more.

Because CSSplay deals with experimental CSS that is exactly what you get JUST CSS, no javascript or any other programming language has been used in any of the demonstrations. For javascript demonstrations please click the javascript link in the main navigation bar which will take you to my other site which is dedicated to demonstrations using CSS and minimal, unobtrusive, javascript.

Use the correct DocType Definition (DTD)

Please , please, please note that for most of my demonstrations to work, especially in Internet Explorer, you MUST use a standards compliant !DOCTYPE, and for Internet Explorer this MUST be the first line of your (x)html.
Using <?xml version="1.0" encoding="UTF-8"?> will switch IE into quirks mode.

A list of the recommended DTDs can be found at the following link:
Recommended DTDs to use in your Web document.

A little bit about us

Me

CSS play is a partnership between myself and my wife. My name is Stuart Nicholls, but known to everyone as just Stu. I am 62 years old, married with two children, worked as an electronics design draughtsman, until I resigned to become a self employed (freelance) web designer/adviser, and have a passion for computers and photography.

My wife is Fran Nicholls who assists in the day to day running of the site and also controls the accounts as well as having an input into the demonstrations.

We started out with computers in the 1980s when I began writing articles on the ZX81 and ZX Spectrum for the computer magazines of the time. I was also commissioned by McGraw-Hill to write two books on Z80 programming for the ZX Spectrum, Fran helped to produce the manuscripts for these books.

The web was the next big attraction and once more I have become hooked, as you can no doubt tell, with CSS. This site has been around for a couple of years now and is at the forefront of CSS development.

We thank you all for your support and comments and should you wish to link back to CSSplay please feel free to use this button.

CSS play button

What happened to my previous home pages?

The alternative styles and my javascript switcher have been dropped from this new layout, primarily because any changes I wanted to make to this home page required updating the CSS for every style.

However, these styles have not been lost. If you wish to see my previous home pages then visit my archives.

But where's the code?

I have had many emails asking where the code/style can be found for the various demonstrations.

Well the xhtml is always placed in the #info div, so examine the source code, find the <div id="info">.....</div> and in between is the 'code'.

In most case the style is embedded in the page <head>...</head>. This is done to keep it all together on the same page making it easier to find. In some cases the css is held in a separate file (where it should be) and is loaded in the normal way <link rel="stylesheet" media="all" type="text/css" href="path to css file.css" /> so just add this path to the address in your browser to see the css file.


CSS (Design) - TOP.ORG

"The citroen.co.uk web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth

Recent Pages

Demos
23-10-08'block' links #3
21-10-08'block' links #2
19-10-08Inline 'block' links
23-08-08Tic Tac Toe
13-08-08Safari webkit transitions
08-03-08Not so simple gallery
11-02-08Sliding list click gallery
13-01-08Circular hot-spots
18-12-07Sliding list gallery
23-10-07Photo Scroll Gallery
21-10-07Solar Map revisited
09-10-07Scrolling Image Map
04-10-07Gallery revisited
21-09-073D Maze Puzzle
15-09-07Cops and Robbers Puzzle
Menus
A CSS play Menu Building Tool
16-11-08Elegant #2 with a twist.
10-11-08Circular with sub menus
09-11-08Circular icon menu
07-11-08Bookshelf concertina
06-11-08Elegant dropdown #1
30-10-08Concertina Slide
17-10-08Variable width dropdown #5
15-10-08Variable width dropdown #4
13-10-08Variable width dropdown #3
06-10-08Pro fly-line #1
05-10-08Pro dropline #8
22-09-08Pro dropline #7
14-09-08Pro-drop #13 png series
08-09-08Pro-drop #12 3D series
05-09-08IE6 select box fix #3
03-09-08IE6 select box fix #2
25-08-08Pro dropline #6
11-08-08Vertical concertina
08-08-08Horizontal images scroller
30-07-08Flyout breadcrumb trail
Layouts
07-01-06100% 'background' image
Boxes
17-09-07IE7 Transparent border error
17-09-07IE Transparent borders
12-06-07Chunky borders revisited
01-01-07Four curved corners
01-01-07Three curved corners
28-10-06Side slants revisited
Mozilla
12-06-07CSS rainbow revisited
12-06-07Snooker Cue revisited
07-01-07Opera ONLY - Sliding doors
Explorer
24-02-07'writing-mode' menu for IE
23-09-06An IE7 bug workaround
Opacity
14-03-08IE6 AlphaImageLoader links
13-05-07Image hover text
04-02-07A fade-in image
08-01-06Partial opacity II
Browser usage on CSS play
Browser %
Date : 21st October 2008
Internet Explorer46.53
Firefox43.63
Safari3.57
Opera3.21
Chrome2.17
Mozilla0.56
Konqueror0.09

Recommended Sites

Recommended Sites

CSS play pages

Advertise at CSS play

ICRA checked

ICRA checked logo

CSSplay is now an Internet Content Rating Association (ICRA) checked site and has been reviewed by a member of staff at ICRA or its partner, Solarsoft.