eg-146:lecture16
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eg-146:lecture16 [2012/03/19 20:22] – [Case Study: Developing a Positioning Style Sheet] eechris | eg-146:lecture16 [2012/03/19 20:30] – eechris | ||
---|---|---|---|
Line 525: | Line 525: | ||
* Examine the structure. | * Examine the structure. | ||
- | ===== The CSS Reset ===== | ||
- | |||
- | * Common technique, ensures that design starts from a blank slate on all browsers | ||
===== The HTML5 display-role reset ===== | ===== The HTML5 display-role reset ===== | ||
Line 533: | Line 530: | ||
* For older browsers, ensures that new elements are set as blocks | * For older browsers, ensures that new elements are set as blocks | ||
* For IE browsers, we also need a JavaScript HTML5 fix (see the HTML5) | * For IE browsers, we also need a JavaScript HTML5 fix (see the HTML5) | ||
+ | * [[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code css> | ||
+ | charset " | ||
+ | |||
+ | /* Style new " | ||
+ | article, aside, figcaption, figure, footer, header, hgroup, menu, nav, section { | ||
+ | display: block; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== The CSS Reset ===== | ||
+ | |||
+ | * Common technique, ensures that design starts from a blank slate on all browsers | ||
+ | * [[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code css> | ||
+ | /* CSS RESET | ||
+ | ------------------------------------------------ */ | ||
+ | /* http:// | ||
+ | v2.0 | 20110126 | ||
+ | | ||
+ | */ | ||
+ | |||
+ | html, body, div, span, applet, object, iframe, | ||
+ | h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
+ | a, abbr, acronym, address, big, cite, code, | ||
+ | del, dfn, em, img, ins, kbd, q, s, samp, | ||
+ | small, strike, strong, sub, sup, tt, var, | ||
+ | b, u, i, center, | ||
+ | dl, dt, dd, ol, ul, li, | ||
+ | fieldset, form, label, legend, | ||
+ | table, caption, tbody, tfoot, thead, tr, th, td, | ||
+ | article, aside, canvas, details, embed, | ||
+ | figure, figcaption, footer, header, hgroup, | ||
+ | menu, nav, output, ruby, section, summary, | ||
+ | time, mark, audio, video { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | border: 0; | ||
+ | font-size: 100%; | ||
+ | font: inherit; | ||
+ | vertical-align: | ||
+ | } | ||
+ | </ | ||
- | Changing the Background | + | ===== Changing the Background |
To use a background image: | To use a background image: | ||
- | #wrap { | + | #background-image |
background-image: | background-image: | ||
background-position: | background-position: |
eg-146/lecture16.txt · Last modified: 2012/03/19 21:30 by eechris