Next we will look at some more complex examples of web pages that use the techniques described in the earlier pages.
Sometimes, to understand something thoroughly, you just have to dig down into the guts of it and study it out. So the source code for the samples is commented to help you out.
The notes below point out what to look for. (You might guess what time of year these were constructed!)
Each example below opens in its own tab or window. Return to this page to go to the next example.
Letter to Santa
Fill in a form and get a letter to Santa that includes your choices.
CSSStyles: both in HEAD and inline
Pre-loading of images: gift images
JavaScript: Tranferring input from form inputs to final letter, esp. using innerHTML property; changing background to an animated GIF image
CSS Centering: Set a width and set margin: 0 auto to center DIV
CSS Display property: Final letter display:block; original form is hidden with display:none
Moving the mouse over a card moves it to the top of the stack and changes the image on the card to one with a colored background. CSS arranges the cards in a fanned-out arrangement.
CSS Z-Index property: Stack elements vertically
CSS Position, Left, and Right properties: Position an element
CSS3 Border Radius property: Makes corners of cards rounded
CSS3 Box Shadow property: Adds a shadow to card and to image
CSS3 Transition property: Gradually reveals element
Pseudo-class Hover: Hovering over a card changes several properties: z-index, rotation, and scale. It also changes the image on the card. No JavaScript is needed for these changes.
JavasScript: Inline script in onMouseOver and onMouseOut changes the image on the card.