floats – selects – lists

https://css.maxdesign.com.au/floatutorial/index.htm

Floats and "clear"

Elements following a floated element will wrap around the floated element. If you do not want this to occur, you can apply the "clear" property to these following elements. The four options are "clear: left", "clear: right", "clear: both" or "clear: none".

clear: left

The element is moved below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document.

clear: right

The element is moved below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document.

clear: both

The element is moved below all floating boxes of earlier elements in the source document.

The Win/IE6 Peekaboo bug

Big John, from Position is Everything, has documented a rendering bug to do with Win/IE6 and its problems clearing floats – well worth reading!

Back to main menu →

 

 


https://css.maxdesign.com.au/selectutorial/index.htm

Selectutorial – CSS selectors

Selectors are one of the most important aspects of CSS as they are used to "select" elements on an HTML page so that they can be styled.

Find out more about selectors including the structure of rules, the document tree, types of selectors and their uses. There is also a step-by-step tutorial showing how selectors are used in the process of building a 3-column layout.

Rules

The document tree – it's a family thing

Selectors

Advanced stuff

Selectors in action – a step by step tutorial


https://css.maxdesign.com.au/listutorial/index.htm

Listutorial takes you through the basics of building background image lists, rollover lists, nested lists and horizontal lists.

Tutorial 1. Background images for bullets

You can change list bullets to squares or circles, but a far better option is to use background images for bullets.

Tutorial 2. Rollover list

This tutorial explains how to achive rollover effects using CSS.

Tutorial 3. Nested lists

This tutorial explains how to apply CSS to nested lists.

Tutorial 4. Horizontal lists

This tutorial explains how to build horizontal lists using "display: inline".

 

Scroll to Top