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
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.
1 comment:
Thanks, glad you found it helpful :)
Post a Comment