This is some text to see how things format. (basic div)
This is some text to see how things format. (width 800px)
This is some text to see how things format. (width 800px; text center)
This is some text to see how things format. (width 800px; margin 0 auto;)
This is some text to see how things format. (width 800; margin 0 auto; padding 10)
This is some text to see how things format. (width 800px; margin 0 auto; padding 10 b 5)
This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. (width 800px margin 0 auto;)
This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. (outer: width 800px margin 0 auto; inner: ml 20)
This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. This is some text to see how things format. (outer: width 800px margin 0 auto; inner: ml 20)
Notes
- Default body, paragraph margins, line spacing, etc., VARY across browsers - recommend assuming NOTHING
- div WIDTH is width of CONTENT AREA.
- div MARGINS offset content area within container.
- div PADDING extends background of content area beyond WIDTH but does NOT change content area size.
- div BORDER extends OUTSIDE PADDING but does NOT change content area size.