CSS: Mini Events Calendar

Learn how to style an events calendar using CSS. We will walk through the steps of creating a calendar using an HTML table, complete with all tags and attributes to ensure that this table is accessible to users of alternate devices.

In this article we will learn how to style an events calendar using CSS. We will walk through the steps of creating a calendar using an HTML table, complete with all tags and attributes to ensure that this table is accessible to users of alternate devices. Having created the calendar in the mark-up we will then move on to styling it in an attractive way using the CSS tools within Dreamweaver, in such a way that we do not add unnecessary mark-up to the page.

Advertisement DMXzone Calendar

 The DMXzone Calendar extension enables you to add a great looking calendar with many different styles and effects on your sites.  Enrich any form used for events, appointments or birthdays. Use it as a date picker or inline calendar with its unique design and in flight animation options. Embed multiple calendars, select date ranges, and limit the selection to specific dates.

Overview

Table of Content:

  • The Calendar
  • Styling the Calendar
  • Summary

Summary

In this tutorial we have looked at how we can take a calendar, marked up as a plain html table and style it as an attractive part of your site. What I have concentrated on doing here is starting from the basis of a well marked up and accessible calendar and then adding styles to create the look but not effect the mark-up. By applying a class to the containing table and then styling the elements within it we also keep the mark-up to a minimum, which will assist load time of the page. Tables can quickly create a huge amount of mark-up if non-essential classes are applied to each cell. You can use this same technique in many situations, for example giving a form a class or id and then being able to create styles for all input tags within that class.

Use this calendar as a starting point for further experiments. If the very tiny date cells are too small for you try adding padding to their CSS to add some more space around the figure. You could use these same techniques to create a larger events calendar with events actually displayed within the cells for that date, experiment with different border styles, attractive ways to style the caption and so on.

Rachel Andrew

Rachel AndrewRachel Andrew is a trained dancer and singer, whose CV lists jobs as diverse as company choreographer for a physical theatre company to chargehand carpenter for “The Mousetrap” at St. Martin’s Theatre in London’s West End. After leaving the theatre when pregnant with her daughter, Rachel started to design sites mainly out of curiosity into how it worked. It didn’t take too long for her to figure out that her skills lay in development as opposed to design and these days she tends to leave the design to designers so she can concentrate on writing code, dismantling computers and installing Linux on anything that stays still long enough.

Rachel has worked in the industry as a webmaster, technical project manager and senior web developer but in September 2001 set up her own company ‘edgeofmyseat.com’, which provides complete web solutions and outsourced development services for design agencies and Internet start-ups who do not have in-house web developers.

As well as managing and doing much of the development on projects for edgofmyseat.com Rachel is a published author and worked as a co-author on the following titles for Glasshaus:

Dynamic Dreamweaver MX ISBN:1904151108
Fundmental Web Design and development Skills: ISBN:1904151175
Dreamweaver MX Design Projects: ISBN:1904151272

Rachel is also a member of the Web Standards Project serving on The Dreamweaver Task Force.

In her spare time Rachel studies for ‘fun’ with the Open University, does family and local history research and spends time with her 5 year old daughter and her other half, Drew McLellan.

See All Postings From Rachel Andrew >>

Reviews

too basic

September 9, 2006 by sam caudill
this ented up being extremely basic. i dont reccoemend it for anyone that is looking for anything more than how to change colors. it was a waste of the few bucks

You must me logged in to write a review.