Week 3 — Element selector patterns,
CSS multi-column layout,
Drop down menus

CSS element selector patterns

Selector pattern examples are here.

Picture gallery example

Look at examples and definitions at w3schools CSS selector reference

Multi-column layouts

Multi-column layouts are created with the DIV tag to give the structure, then use CSS to style the columns for width and position.

Drop down menus

Create sub-menus with JavaScript

This section is here for comparison with the previous examples but we will not study this example, as using JavaScript to create sub-menus is cumbersome and difficult.

The example Sub-menus with JavaScript shows the use of mouse actions to call JavaScript functions to make menus visible and invisible. The length of time a menu is displayed is controlled by a timer. Can create sub-sub-menus but the JavaScript becomes complex as you have to not hide parent menus but the current version does hide parent menus.