Experiments with Cascading Style Sheets - Doing it with style

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.

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



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 CSS play 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 66 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 since 2005 and is now 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 has 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.


Recent Pages

Demos
15-03-132013 Holiday Photo Gallery
08-02-13CSS Image Reflections
05-02-13Text Hover Color Changes
01-02-13Fly In/Out Gallery
25-01-133D Spinning Boxes for IE10
23-01-13Animated 3D Gallery - Challenge
19-01-13Animated Cube Gallery for IE10
14-01-133D Dymaxion Map Animation for IE10
11-01-133D Cube Animation for IE10
30-12-123D Animated Stacking Slideshow
05-12-12Page Flip Book v2
30-11-12Thumbnail Slideshow using PHP
29-11-12CSS3 Any Size Gallery v2
28-11-12CSS3 Any Size Gallery
26-11-12CSS3 Reflow Gallery
30-10-12CSS3 Brick Wall - No Images
26-10-12CSS3 Random Heroes Animation
25-10-12CSS3 Animated Sprites
20-10-12CSS3 Space Invader
20-10-12CSS3 Logic - Connect Four
18-10-12CSS3 Logic - Tic-Tac-Toe
16-10-12Click - Zoom - Fly Gallery
Menus
07-05-13Responsive Single Level Menu
26-04-13Responsive Dropdown/Flyout Menu
23-04-13Responsive Droplist Menu
08-04-13Concertina for Touch Screen
02-04-13Dropline for Touch Screen
25-03-13Flyout for Touch Screen
22-03-13Droplist for Touch Screen
21-03-13Multi-level for Touch Screen #2
20-03-13Multi-level for Touch Screen #1
19-03-13Info Panels for Touch Screen
14-02-13IE10 Touch Screen Droplist
12-02-13IE10 Touch Screen Dropdown
03-02-133D Flip Down Menu for IE10
18-01-13Slide Down / Concertina Menu
21-11-12Stepped Zoom Menu
02-11-12iPad Click Open/Close Menu
30-10-12iPad Anywidth Menu #7
17-10-12CSS3 Hover/Drop/Persist Menu
12-10-12CSS3 left/right Sliding Panels
05-10-12CSS3 Corner Menu
17-09-12Slide-Up / Drop-Down Menu
10-09-12Vertical click open/close Concertina
08-09-12Diagonal Slide Definition List Menu
Layouts
01-05-13Responsive layout
16-11-1050% / 50% split layout
28-07-10CSS3 - 100% Background
04-02-093 columns - 7 variations
02-02-09Fluid layout - multi column
28-11-08Semi-fixed footer
Boxes
24-04-13IE7/8 Responsive 'Backgrounds'
11-03-123D Jack-in-the-Box with Music
28-07-10CSS3 - 100% Background
17-09-07IE Transparent borders
Mozilla
12-06-07CSS rainbow revisited
12-06-07Snooker Cue revisited
Explorer
09-02-13IE10 specific styling
01-10-10IE6 foreground pngFix
10-09-10timeAction Galleries
Opacity
14-03-08IE6 AlphaImageLoader links
13-05-07Image hover text

CSS play is worth...

According to several sources, CSS play is worth £1,930,000 GBP
I will take £1,000,000 GBP if anyone is interested?

  • Weblinx provide SEO services using the latest optimisation techniques

Follow CSS play


Facebook   Twitter   Facebook Fan Page

Multi-Browser Viewer

I do not normally endorse any products but in this case I am making an exception. I had been looking for an easy way to test my demos in IE6 on my Vista laptops and have found this product excellent. The help and support I have received has enabled me to at last test using IE6 without having to boot up my old XP PC.

This is highly recommended and can be found here Multi-Browser Viewer.

Review

See the review on Make Use of :

Browser usage on CSS play

Browser%
Date : 14th March 2013
Chrome35.9
Firefox24.5
Internet Explorer21.7
Safari11.7
Android2.5
Opera2.3
Opera Mini0.3

A SafeSurf® Website

A SafeSurf Website
CSS play is now a SafeSurf® approved site and is safe for all ages to browse.