Certificate 4 Web Design Classes Bathurst TAFE

Friday, March 14, 2008

Subcide








Great site from Hamilton New Zealand, by Steve Dennis. http://www.subcide.com/


Tips I acquired .......

A div is basically a rectangular container that we can position using CSS.

BODY

div id=”page-container"

CSS

#page-container="page-container" {

width : 760px ; (sets whole page)

margin : auto ; (centers div)

}

An ID is a unique identifier that we use for things that are only going to occur once on the page. eg headers, footers, navigation. For recurring elements like links we use classes.

Html and body tags have default margins and padding on browsers, so set rule

html, body {

margin: 0;

padding: 0;

}

The comma means “or”

As content is added to this div it automatically changes height to fit.

A float is an element that is aligned against the left or right side of its container.


1 comment:

Unknown said...

Thanks, glad you found it helpful :)