This material covers the basics of CSS – the use of appropriate selectors , ids and classed etc.
Lecture slides on CSS: CSS lecture handouts
Lab exercises: CSS lab exercises
The following resources are used in the CSS exercises
Technology, Teaching and Learning
but not necessarily in the correct order
This material covers the basics of CSS – the use of appropriate selectors , ids and classed etc.
Lecture slides on CSS: CSS lecture handouts
Lab exercises: CSS lab exercises
The following resources are used in the CSS exercises
This weeks material is very practical, involving the redesign of a website into semantic XHTML and CSS. As this is exactly the same process that you will be performing in the assignment, the lecture has been duplicated below, so that you can repeat the process should you wish (or if you missed the lecture).
The lecture notes can be downloaded as a PDF – lecture 5 handouts
If you attended the lecture and feel confident, you can jump straight into the lab exercise
Lab Exercise Styling the page – exercise sheet for Lab 5 and the Zip file containing HTML, CSS and images for lab 5
A solution for the complete site is available (i.e. the completed redesign shown in lecture and attempted in lab from the zip file)
If you missed the lecture or wish to see the process again, you can start from here:
This weeks materials are all about using Semantic XHTML and CSS to style a preexisting web site. The web site in question is the (old) version of the Faculty of Business Website (see image).
Activity One Download, extract and then have a look at the markup for this page Faculty of Business and Law.html (zip) – see if you can understand it.
Activity Two Watch the first part of the video – the lecture notes used in all these videos can be downloaded as a PDF – lecture 5 handouts
Video 1 is about 15 minutes long
Activity Three Try and edit your file (from Activity One) to remove all the excess HTML and CSS, like in the video. A completed solution is available to see if what you’ve created matches the video version
Activity Four Watch the second part of the video – where the logical parts of the document are marked up using DIVs and SPANs
Video 2 is about 7 minutes long
Activity Five Edit your document (or the solution given in Activity Three) to mark up the logical parts of the document – a completed version is available to check against. Watch out for the correct number of closing DIV tags where there are DIVs within DIVs – the trick is to have two closing DIVs at the end of the central column (closing the news area and the contentMain area), and two closing DIVs at the end of the column on the right (closing the badges part and the contentSub part).
Activity Six Watch the third part of the video on how to structure and add CSS files – and then what normalisation does
Video 3 is about 6 minutes long
Activity Seven Watch the final parts of the video which shows the steps required to style the site to recreate the original design markup used in the lecture Because this is the longest part of this process, this has been split into two parts
Styling the whole document – sorting out the column placement and overall styles (such as fonts) – about 7 minutes
Styling each individual sub area and tidying up – about 18 minutes
You should now be prepared for the Lab Exercise which asks you to style the page
Lab Exercise Styling the page – exercise sheet for Lab 5 and the Zip file containing HTML, CSS and images for lab 5
A solution for the complete site is available (i.e. the completed redesign shown in lecture and attempted in lab from the zip file)
One of the nicest books explaining the whole semantic xhtml and structured CSS approach is Transcending CSS by Andy Clarke
This session is on HTML5 and how it beat XHTML 2. It also talks about the features of CSS3 (advanced formatting, the canvas element, local storage etc)
Handout for this session (PDF)
This is a practical session, implementing the site redesign in semantic HTML and CSS. This exercise requires a plain text editor – Textmate (mac) or Notepad++ (PC) are recommended but will do. A modern browser should be used to check the changes you make as you progress (Firefox with the Firebug debugging toolset are recommended).
This session is about moving an existing site into semantic HTML and CSS. By reducing the complexity (and mess) of the pre-existing HTML and moving the design into CSS broken into separate files, the site should be cleaner, better structured and more maintainable.
Slides for this session (PDF) (Cut down version without all the CSS explanations)
Slides for this session (PDF) (Full set of every slide that’s used)