├── _examples-css3-fundamentals ├── assets │ ├── images │ │ ├── css3.png │ │ ├── box-model.png │ │ ├── browers_all_2.png │ │ └── css-selector.png │ └── styles │ │ └── 03.11.1.style.css ├── 3. CSS Basics │ ├── 03.01.default.browser.styles.html │ ├── 03.02.syntax.html │ ├── 03.12.4.1.cascade.important.html │ ├── 03.12.4.3.cascade.inheritance.html │ ├── 03.11.2.internal.stylesheets.html │ ├── 03.11.1.external.stylesheets.html │ ├── 03.12.4.2.cascade.specificity.html │ ├── 03.07.selector.universal.html │ ├── 03.04.selector.element.tag.type.html │ ├── 03.11.3.inline.stylesheets.html │ ├── 03.06.selector.id.html │ ├── 03.05.selector.class.html │ ├── 03.09.selector.conditional.descendent.html │ ├── 03.10.1.selector.pseudo.class.html │ └── 03.08.selector.group.grouping.html ├── 2. Introducing CSS │ └── 02.01.css.intro.html └── 5. Common CSS Concepts │ ├── 05.12.1b.css.table.layout.html │ ├── style.css │ ├── about.html │ ├── products.html │ ├── services.html │ ├── contact.html │ └── 05.12.2.css.table.layout.html │ ├── 05.12.2.css.div.layout.html │ ├── style.css │ ├── about.html │ ├── products.html │ ├── services.html │ ├── contact.html │ └── 05.12.2.css.div.layout.html │ ├── 05.12.3.semantic.tag.layout.html │ ├── style.css │ ├── about.html │ ├── products.html │ ├── services.html │ ├── contact.html │ └── 05.12.3.semantic.tag.layout.html │ ├── 05.2.text.html │ ├── 05.12.1a.html.table.layout.html │ ├── about.html │ ├── contact.html │ ├── products.html │ ├── services.html │ └── 05.12.1.html.table.layout.html │ ├── 05.3.color.html │ ├── 05.1.font.html │ ├── 05.16.reset.css.html │ ├── 05.4.units.html │ ├── 05.11.1.float.basics.html │ ├── 05.6.box.model.html │ ├── 05.15.1.vendor.prefixes.html │ ├── 05.10.1.position.relative.html │ ├── 05.10.2.position.absolute.html │ ├── 05.7.margin.html │ ├── 05.8.padding.html │ ├── 05.5.background.html │ ├── 05.10.3.position.absolute.relative.html │ ├── 05.10.4.position.fixed.html │ └── 05.9.border.html └── README.md /_examples-css3-fundamentals/assets/images/css3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinanathsj29/css3-fundamentals-tutorial/HEAD/_examples-css3-fundamentals/assets/images/css3.png -------------------------------------------------------------------------------- /_examples-css3-fundamentals/assets/images/box-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinanathsj29/css3-fundamentals-tutorial/HEAD/_examples-css3-fundamentals/assets/images/box-model.png -------------------------------------------------------------------------------- /_examples-css3-fundamentals/assets/images/browers_all_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinanathsj29/css3-fundamentals-tutorial/HEAD/_examples-css3-fundamentals/assets/images/browers_all_2.png -------------------------------------------------------------------------------- /_examples-css3-fundamentals/assets/images/css-selector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinanathsj29/css3-fundamentals-tutorial/HEAD/_examples-css3-fundamentals/assets/images/css-selector.png -------------------------------------------------------------------------------- /_examples-css3-fundamentals/assets/styles/03.11.1.style.css: -------------------------------------------------------------------------------- 1 | /* external css file - css selector: { property:value; } */ 2 | body{ 3 | background-color: #d3d3ff; 4 | font-family: Arial, Helvetica, sans-serif; 5 | line-height: 30px; 6 | } 7 | 8 | h1 { 9 | font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; 10 | text-decoration: underline; 11 | text-transform: uppercase; 12 | letter-spacing: 5px; 13 | } 14 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.01.default.browser.styles.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.01.default.browser.styles.html 10 | 11 | 12 | 13 | 14 | 15 |

03.01.default.browser.styles.html

16 | 17 | 20 | 21 |

When Designer/Developer writes CSS to show custom look it overwrites browser default styles and apply `custom styles`

22 | - Many HTML elements come with browser specific some default CSS properties which can sometimes result in unknown/unwanted behaviour

23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/2. Introducing CSS/02.01.css.intro.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 02.01.css.intro.html 10 | 11 | 12 | 20 | 21 | 22 | 23 | 24 | 25 |

02.01.css.intro.html

26 | 27 | 28 |

>Getting Started with CSS 29 | 30 |

In this tutorial you'll learn how easy it is to add style and formatting information to the web pages using CSS. But, before we begin, make sure that you have some working knowledge of HTML.

31 | If you're just starting out in the world of web development, start learning from here

32 | Well, let's get started with the most popular style sheet language.

33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.02.syntax.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.02.syntax.html 10 | 11 | 12 | 25 | 26 | 27 | 28 | 29 | 30 |

03.02.syntax.html

31 | 32 | 35 | 36 | css-selector.png 37 | 38 |

Selectors are used to declare which of the markup elements a style applies to.

39 | The declarations that appear in the block that follows the selector may be applied to all elements of a specific type, or only those elements that match a certain attribute. 40 |

41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/style.css: -------------------------------------------------------------------------------- 1 | /* external css file - css selector: { property:value; } */ 2 | body { 3 | font-family: Arial, Helvetica, sans-serif; 4 | } 5 | 6 | .container { 7 | 8 | } 9 | 10 | .table { 11 | 12 | } 13 | 14 | .bg-bar { 15 | background-color: #008080; 16 | color: #fff; 17 | text-align: center; 18 | } 19 | 20 | .header { 21 | font-size: 32px; 22 | } 23 | 24 | .side-content { 25 | background-color: #67b1b1; 26 | width:20%; 27 | height:350px; 28 | } 29 | 30 | .heading-side-content { 31 | color: #fff; 32 | text-align: center; 33 | } 34 | 35 | .links-container a { 36 | display: block; 37 | margin: 20px 0px; 38 | } 39 | 40 | .links-container a:link { 41 | color: #000; 42 | } 43 | 44 | .links-container a:visited { 45 | color: #666; 46 | } 47 | 48 | .links-container a:hover { 49 | color: #fff; 50 | font-weight: bold; 51 | } 52 | 53 | .links-container a:active { 54 | color: #008080; 55 | } 56 | 57 | .link-active { 58 | text-decoration: none; 59 | color: #008080 !important; 60 | font-weight: bold; 61 | border-bottom: 2px solid; 62 | } 63 | 64 | .main-content { 65 | background-color: #a9d0d0; 66 | width:80%; 67 | } 68 | 69 | .heading-main-content { 70 | color: #666; 71 | text-align: center; 72 | } 73 | 74 | .content-text { 75 | color: #666; 76 | text-align: left; 77 | } 78 | 79 | .footer { 80 | font-size: 10px; 81 | } 82 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/style.css: -------------------------------------------------------------------------------- 1 | /* external css file - css selector: { property:value; } */ 2 | body { 3 | font-family: Arial, Helvetica, sans-serif; 4 | } 5 | 6 | .container { 7 | width: 100%; 8 | } 9 | 10 | .content-container{ 11 | width: 100%; 12 | } 13 | 14 | .header { 15 | padding: 20px; 16 | font-size: 32px; 17 | background-color: #008080; 18 | color: #fff; 19 | text-align: center; 20 | } 21 | 22 | .side-content { 23 | padding: 20px; 24 | background-color: #67b1b1; 25 | width:20%; 26 | height:350px; 27 | float: left; 28 | } 29 | 30 | .heading-side-content { 31 | color: #fff; 32 | text-align: center; 33 | } 34 | 35 | .links-container a { 36 | display: block; 37 | margin: 20px 0px; 38 | } 39 | 40 | .links-container a:link { 41 | color: #000; 42 | } 43 | 44 | .links-container a:visited { 45 | color: #666; 46 | } 47 | 48 | .links-container a:hover { 49 | color: #fff; 50 | font-weight: bold; 51 | } 52 | 53 | .links-container a:active { 54 | color: #008080; 55 | } 56 | 57 | .link-active { 58 | text-decoration: none; 59 | color: #008080 !important; 60 | font-weight: bold; 61 | border-bottom: 2px solid; 62 | } 63 | 64 | .main-content { 65 | padding: 20px; 66 | background-color: #a9d0d0; 67 | width:73%; 68 | height:350px; 69 | float: right; 70 | } 71 | 72 | .heading-main-content { 73 | color: #666; 74 | text-align: center; 75 | } 76 | 77 | .content-text { 78 | color: #666; 79 | text-align: left; 80 | } 81 | 82 | .footer { 83 | padding: 20px; 84 | font-size: 10px; 85 | background-color: #008080; 86 | color: #fff; 87 | text-align: center; 88 | clear: both; 89 | } 90 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/style.css: -------------------------------------------------------------------------------- 1 | /* external css file - css selector: { property:value; } */ 2 | body { 3 | font-family: Arial, Helvetica, sans-serif; 4 | } 5 | 6 | .container { 7 | width: 100%; 8 | } 9 | 10 | .content-container{ 11 | width: 100%; 12 | } 13 | 14 | .header { 15 | padding: 20px; 16 | font-size: 32px; 17 | background-color: #008080; 18 | color: #fff; 19 | text-align: center; 20 | } 21 | 22 | .side-content { 23 | padding: 20px; 24 | background-color: #67b1b1; 25 | width:20%; 26 | height:350px; 27 | float: left; 28 | } 29 | 30 | .heading-side-content { 31 | color: #fff; 32 | text-align: center; 33 | } 34 | 35 | .links-container a { 36 | display: block; 37 | margin: 20px 0px; 38 | } 39 | 40 | .links-container a:link { 41 | color: #000; 42 | } 43 | 44 | .links-container a:visited { 45 | color: #666; 46 | } 47 | 48 | .links-container a:hover { 49 | color: #fff; 50 | font-weight: bold; 51 | } 52 | 53 | .links-container a:active { 54 | color: #008080; 55 | } 56 | 57 | .link-active { 58 | text-decoration: none; 59 | color: #008080 !important; 60 | font-weight: bold; 61 | border-bottom: 2px solid; 62 | } 63 | 64 | .main-content { 65 | padding: 20px; 66 | background-color: #a9d0d0; 67 | width:73%; 68 | height:350px; 69 | float: right; 70 | } 71 | 72 | .heading-main-content { 73 | color: #666; 74 | text-align: center; 75 | } 76 | 77 | .content-text { 78 | color: #666; 79 | text-align: left; 80 | } 81 | 82 | .footer { 83 | padding: 20px; 84 | font-size: 10px; 85 | background-color: #008080; 86 | color: #fff; 87 | text-align: center; 88 | clear: both; 89 | } 90 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.2.text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.2.text.html 10 | 11 | 12 | 28 | 29 | 30 | 31 | 32 | 33 |

5. Common CSS Concepts

34 | 35 |

There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

36 | 37 |

5.2. Formatting text

38 | 39 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.12.4.1.cascade.important.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.12.4.1.cascade.important.html 10 | 11 | 12 | 26 | 27 | 28 | 29 | 30 | 31 |

3.12.4 The cascade dependency factors

32 | 33 |

What selectors win out in the cascade depends on three factors (listed in order of weight — earlier ones will overrule later ones):

34 | 35 |
    36 |
  1. Importance / !important
  2. 37 |
  3. Specificity
  4. 38 |
  5. Inheritance (Source order)
  6. 39 |
40 | 41 |

1. Importance / !important

42 | 43 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | About Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Div based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 |
29 |

Links

30 | 31 | 38 |
39 | 40 |
41 |

About Us

42 | 43 |
44 |

45 | Click on the links at left panel. 46 |

47 |
48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/products.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Product 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Div based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 |
29 |

Links

30 | 31 | 38 |
39 | 40 |
41 |

Product

42 | 43 |
44 |

45 | Click on the links at left panel. 46 |

47 |
48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/services.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Services 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Div based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 |
29 |

Links

30 | 31 | 38 |
39 | 40 |
41 |

Services

42 | 43 |
44 |

45 | Click on the links at left panel. 46 |

47 |
48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/contact.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Contact Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Div based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 |
29 |

Links

30 | 31 | 38 |
39 | 40 |
41 |

Contact Us

42 | 43 |
44 |

45 | Click on the links at left panel. 46 |

47 |
48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.2.css.div.layout.html/05.12.2.css.div.layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.12.2.css.div.layout.html 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Div based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 |
29 |

Links

30 | 31 | 38 |
39 | 40 |
41 |

Home

42 | 43 |
44 |

45 | Click on the links at left panel. 46 |

47 |
48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | About Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML5 Semantic Tag based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 | 39 | 40 | 49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/products.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Products 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML5 Semantic Tag based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 | 39 | 40 | 49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/services.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Services 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML5 Semantic Tag based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 | 39 | 40 | 49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/contact.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Contact Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML5 Semantic Tag based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 | 39 | 40 | 49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.3.semantic.tag.layout.html/05.12.3.semantic.tag.layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.12.3.semantic.tag.layout 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML5 Semantic Tag based layout

17 | 18 |
19 | 20 |
21 | 22 |
23 | Welcome to My Website 24 |
25 | 26 |
27 | 28 | 39 | 40 | 49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.12.4.3.cascade.inheritance.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.12.4.3.cascade.inheritance.html 10 | 11 | 12 | 32 | 33 | 34 | 35 | 36 | 37 |

3.12.4 The cascade dependency factors

38 | 39 |

What selectors win out in the cascade depends on three factors (listed in order of weight — earlier ones will overrule later ones):

40 | 41 |
    42 |
  1. Importance / !important
  2. 43 |
  3. Specificity
  4. 44 |
  5. Inheritance (Source order)
  6. 45 |
46 | 47 |

3 Inheritance

48 | 49 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1a.html.table.layout.html/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | about.html 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 |

HTML Table based layout

19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 41 | 42 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 |
25 |
Welcome to My Website
26 |
33 |

Links

34 | Home

35 | Services

36 | Products

37 | About

38 | Contact

39 |
40 |
43 |

About

44 | 45 | 46 |
47 | 48 |
55 |
CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™
56 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1a.html.table.layout.html/contact.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | contact 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 |

HTML Table based layout

19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 41 | 42 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 |
25 |
Welcome to My Website
26 |
33 |

Links

34 | Home

35 | Services

36 | Products

37 | About

38 | Contact

39 |
40 |
43 |

Contact

44 | 45 | 46 |
47 | 48 |
55 |
CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™
56 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1a.html.table.layout.html/products.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | products 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 |

HTML Table based layout

19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 41 | 42 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 |
25 |
Welcome to My Website
26 |
33 |

Links

34 | Home

35 | Services

36 | Products

37 | About

38 | Contact

39 |
40 |
43 |

Products

44 | 45 | 46 |
47 | 48 |
55 |
CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™
56 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1a.html.table.layout.html/services.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | services 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 |

HTML Table based layout

19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 41 | 42 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 |
25 |
Welcome to My Website
26 |
33 |

Links

34 | Home

35 | Services

36 | Products

37 | About

38 | Contact

39 |
40 |
43 |

Services

44 | 45 | 46 |
47 | 48 |
55 |
CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™
56 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.3.color.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.3.color.html 10 | 11 | 12 | 35 | 36 | 37 | 38 | 39 | 40 |

5. Common CSS Concepts

41 | 42 |

There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

43 | 44 |

05.3. color

45 | 46 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.1.font.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.1.font.html 10 | 11 | 12 | 29 | 30 | 31 | 32 | 33 | 34 |

5. Common CSS Concepts

35 | 36 |

There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

37 | 38 |

5.1. Working with fonts

39 | 40 | 47 | 48 |

CSS Font Choices

49 | 50 |
    51 |
  1. System Fonts
  2. 52 |
  3. Web Fonts
  4. 53 |
54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.11.2.internal.stylesheets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.11.2.internal.stylesheets.html 10 | 11 | 12 | 27 | 28 | 29 | 30 | 31 | 32 |

3.11. Authoring options / Where and How to add CSS

33 | 34 |

CSS is linked/added to HTML pages to format the document according to information in the style sheet. Styles can be added/written/located/inserted in 3 different ways (at 3 different places one can write css):

35 | 36 |
    37 |
  1. External stylesheet (Separation of concern) [Using the link element, pointing to an external CSS file]
  2. 38 |
  3. Internal stylesheet (Embedded stylesheet) [Using the style element in the head section of a document]
  4. 39 |
  5. Inline stylesheet [Using the style attribute in any HTML start tag]
  6. 40 |
41 | 42 |

2. Internal stylesheet (Embedded stylesheet)

43 | 44 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1a.html.table.layout.html/05.12.1.html.table.layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.12.1.htmltable.layout 10 | 11 | 12 | 13 | 14 | 15 |

HTML Table based layout

16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 39 | 40 | 50 | 51 | 52 | 53 | 54 | 55 | 58 | 59 | 60 | 61 |
23 |
Welcome to My Website
24 |
31 |

Links

32 | Home

33 | Services

34 | Products

35 | About

36 | Contact

37 |
38 |
41 |

Home

42 | 43 |

44 | Click on the links at left panel. 45 |

46 | 47 |
48 | 49 |
56 |
CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™
57 |
62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | About Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Table based layout

17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 44 | 45 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 |
26 | Welcome to My Website 27 |
34 |

Links

35 | 36 | 43 |
46 |

About Us

47 | 48 |
49 |

50 | Click on the links at left panel. 51 |

52 |
53 | 54 |
61 | CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™ 62 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/products.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Products 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Table based layout

17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 44 | 45 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 |
26 | Welcome to My Website 27 |
34 |

Links

35 | 36 | 43 |
46 |

Products

47 | 48 |
49 |

50 | Click on the links at left panel. 51 |

52 |
53 | 54 |
61 | CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™ 62 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/services.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Services 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Table based layout

17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 44 | 45 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 |
26 | Welcome to My Website 27 |
34 |

Links

35 | 36 | 43 |
46 |

Services

47 | 48 |
49 |

50 | Click on the links at left panel. 51 |

52 |
53 | 54 |
61 | CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™ 62 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/contact.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Contact Us 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Table based layout

17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 44 | 45 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 |
26 | Welcome to My Website 27 |
34 |

Links

35 | 36 | 43 |
46 |

Contact Us

47 | 48 |
49 |

50 | Click on the links at left panel. 51 |

52 |
53 | 54 |
61 | CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™ 62 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.11.1.external.stylesheets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.11.1.external.stylesheets.html 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

3.11. Authoring options / Where and How to add CSS

18 | 19 |

CSS is linked/added to HTML pages to format the document according to information in the style sheet. Styles can be added/written/located/inserted in 3 different ways (at 3 different places one can write css):

20 | 21 |
    22 |
  1. External stylesheet (Separation of concern) [Using the link element, pointing to an external CSS file]
  2. 23 |
  3. Internal stylesheet (Embedded stylesheet) [Using the style element in the head section of a document]
  4. 24 |
  5. Inline stylesheet [Using the style attribute in any HTML start tag]
  6. 25 |
26 | 27 |

1. External stylesheet (Separation of concern)

28 | 29 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.12.1b.css.table.layout.html/05.12.2.css.table.layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.12.2.css.table.layout.html 10 | 11 | 12 | 13 | 14 | 15 | 16 |

HTML CSS Table based layout

17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 44 | 45 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 |
26 | Welcome to My Website 27 |
34 |

Links

35 | 36 | 43 |
46 |

Home

47 | 48 |
49 |

50 | Click on the links at left panel. 51 |

52 |
53 | 54 |
61 | CopyRight © 2019 | DreamTech Corporation ® License | Dreams ™ 62 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.12.4.2.cascade.specificity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.12.4.2.cascade.specificity.html 10 | 11 | 12 | 42 | 43 | 44 | 45 | 46 | 47 |

3.12.4 The cascade dependency factors

48 | 49 |

What selectors win out in the cascade depends on three factors (listed in order of weight — earlier ones will overrule later ones):

50 | 51 |
    52 |
  1. Importance / !important
  2. 53 |
  3. Specificity
  4. 54 |
  5. Inheritance (Source order)
  6. 55 |
56 | 57 |

2 Specificity

58 | 59 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.16.reset.css.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.16.reset.css.html 10 | 11 | 12 | 28 | 29 | 30 | 31 | 32 | 33 |
34 | 35 |
36 | 37 |

5. Common CSS Concepts

38 | 39 |

There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

40 | 41 |

05.16. reset css

42 | 43 | 50 | 51 |
52 | 53 |
54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.4.units.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.4.units.html 10 | 11 | 12 | 48 | 49 | 50 | 51 | 52 | 53 |
54 | 55 |
56 | 57 |

5. Common CSS Concepts

58 | 59 |

There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

60 | 61 |

05.4. Common Measurement units

62 | 63 | 68 | 69 |

There are two unit types:

70 | 71 |
    72 |
  1. Absolute Values/Units
  2. 73 |
  3. Relative Values/Units
  4. 74 |
75 | 76 |
77 | 78 |
79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.07.selector.universal.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.07.selector.universal.html 10 | 11 | 12 | 23 | 24 | 25 | 26 | 27 | 28 |

3.3. Basic Selector types

29 | 30 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 31 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 32 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 33 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 34 | 35 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 36 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 37 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 38 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 39 |

    40 | 41 |

    3.7. Universal Selector

    42 | 43 | 48 | 49 |

    The universal selector selects all the elements on the page . Rather selecting elements of a specific type, the universal selector simply matches the name of any element type. The universal selector is used as a wildcard * character. 50 |

    51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.11.1.float.basics.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.11.1.float.basics.html 10 | 11 | 12 | 50 | 51 | 52 | 53 | 54 | 55 |
    56 | 57 |
    58 | 59 |

    5. Common CSS Concepts

    60 | 61 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    62 | 63 |

    5.11. Floats

    64 | 65 | 70 | 71 |
    72 | 73 |
    @ left - float: left;
    74 |
    @ right - float: right;
    75 |
    @ normal float - clear:both
    76 | 77 |
    78 | 79 |
    80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.04.selector.element.tag.type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.04.selector.element.tag.type.html 10 | 11 | 12 | 28 | 29 | 30 | 31 | 32 | 33 |

    3.3. Basic Selector types

    34 | 35 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 36 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 37 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 38 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 39 | 40 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 41 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 42 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 43 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 44 |

    45 | 46 |

    03.04.selector.element.tag.type.html

    47 | 48 | 53 | 54 |

    The element selector target/find/selects the HTML element/tag by name. Global selectors based on any HTML element/tag name. This is the simplest way to target all elements of a given element/tag/type. 55 |

    56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.11.3.inline.stylesheets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.11.3.inline.stylesheets.html 10 | 11 | 12 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 |

    3.11. Authoring options / Where and How to add CSS

    40 | 41 |

    CSS is linked/added to HTML pages to format the document according to information in the style sheet. Styles can be added/written/located/inserted in 3 different ways (at 3 different places one can write css):

    42 | 43 |
      44 |
    1. External stylesheet (Separation of concern) [Using the link element, pointing to an external CSS file]
    2. 45 |
    3. Internal stylesheet (Embedded stylesheet) [Using the style element in the head section of a document]
    4. 46 |
    5. Inline stylesheet [Using the style attribute in any HTML start tag]
    6. 47 |
    48 | 49 |

    3. Inline stylesheet

    50 | 51 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.6.box.model.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.6.box.model.html 10 | 11 | 12 | 27 | 28 | 29 | 30 | 31 | 32 |
    33 | 34 |
    35 | 36 |

    5. Common CSS Concepts

    37 | 38 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    39 | 40 |

    05.6. CSS box model

    41 | 42 | 47 | 48 |

    Box Model consists of properties like: Margins, Borders, Padding and content width, height (these properties make physical dimension of an element)

    49 | 50 |
      51 |
    1. Margin = Space outside/around an element
    2. 52 |
    3. Border = Rectangular outline/border surrouding an element/box
    4. 53 |
    5. Padding = Breathing space inside an element border
    6. 54 |
    7. Total width of an element: left border + left padding + content width + right padding + right border
    8. 55 |
    56 | 57 | The following diagram demonstrates how the margin, padding, and border CSS properties determines how much space an element can take on a web page: 58 |

    59 | CSS Box Model 60 |

    61 | 62 |
    63 | 64 |
    65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.06.selector.id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.06.selector.id.html 10 | 11 | 12 | 25 | 26 | 27 | 28 | 29 | 30 |

    3.3. Basic Selector types

    31 | 32 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 33 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 34 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 35 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 36 | 37 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 38 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 39 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 40 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 41 |

    42 | 43 |

    3.6. ID Selector

    44 | 45 | 52 | 53 |

    The id selector selects the id attribute of an HTML element to select a specific element. It is used with a hash/pound character # followed by the id name. Attribute selector based on specific id attributes applied to HTML element/tag. 54 |

    55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.15.1.vendor.prefixes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.15.1.vendor.prefixes.html 10 | 11 | 12 | 48 | 49 | 50 | 51 | 52 | 53 |
    54 | 55 |
    56 | 57 |

    5. Common CSS Concepts

    58 | 59 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    60 | 61 |

    5.15. CSS Vendor Prefixes (CSS Browser Prefixes)

    62 | 63 | 70 | 71 |
    72 | 73 |
    74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.10.1.position.relative.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.10.1.position.relative.html 10 | 11 | 12 | 37 | 38 | 39 | 40 | 41 | 42 |
    43 | 44 |
    45 | 46 |

    5. Common CSS Concepts

    47 | 48 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    49 | 50 |

    05.10. Element Positioning

    51 | 52 | 57 | 58 |

    CSS positioning schemes

    59 | 60 |
      61 |
    1. Normal Flow
    2. 62 |
    3. Element Floating
    4. 63 |
    5. Absolute Positioning
    6. 64 |
    65 | 66 |
    67 |

    Relative Positioning

    68 | 69 |
      70 |
    1. Elements are still considered as part of normal document flow, but one can offset the elements from its normal position using top, right, bottom, or left offset values
    2. 71 |
    3. Relative positioning changes the position of the HTML element `relative to where it normally` appears (`positioned relative to its normal position`)
    4. 72 |
    5. Relative Positioning helps to nudge or re-position an element from its `current position/location`
    6. 73 |
    74 |
    75 | 76 |
    77 | 78 |
    79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.10.2.position.absolute.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.10.2.position.absolute.html 10 | 11 | 12 | 38 | 39 | 40 | 41 | 42 | 43 |
    44 | 45 |
    46 | 47 |

    5. Common CSS Concepts

    48 | 49 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    50 | 51 |

    05.10. Element Positioning

    52 | 53 | 58 | 59 |

    CSS positioning schemes

    60 | 61 |
      62 |
    1. Normal Flow
    2. 63 |
    3. Element Floating
    4. 64 |
    5. Absolute Positioning
    6. 65 |
    66 | 67 |
    68 |

    Absolute Positioning

    69 | 70 |
      71 |
    1. Absolute Positioning is `not considered as a part of Normal Document flow`
    2. 72 |
    3. Absolute Positioning removes the document from Normal Document flow and respositioned based on top, right, bottom, or left offset values
    4. 73 |
    5. Other elements in flow moves up and takes empty space made by an absolute positioned element
    6. 74 |
    7. Elements are placed relative to the nearest positioned ancestor/parent element OR body OR viewport
    8. 75 |
    76 |
    77 | 78 |
    79 | 80 |
    81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.7.margin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.7.margin.html 10 | 11 | 12 | 34 | 35 | 36 | 37 | 38 | 39 |
    40 | 41 |
    42 | 43 |

    5. Common CSS Concepts

    44 | 45 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    46 | 47 |

    05.7. CSS box model: margin

    48 | 49 | 55 | 56 |

    Box Model consists of properties like: Margins, Borders, Padding and content width, height (these properties make physical dimension of an element)

    57 | 58 |
      59 |
    1. Margin = Space outside/around an element
    2. 60 |
    3. Border = Rectangular outline/border surrouding an element/box
    4. 61 |
    5. Padding = Breathing space inside an element border
    6. 62 |
    7. Total width of an element: left border + left padding + content width + right padding + right border
    8. 63 |
    64 | 65 | The following diagram demonstrates how the margin, padding, and border CSS properties determines how much space an element can take on a web page: 66 |

    67 | CSS Box Model 68 |

    69 | 70 |
    71 | 72 |
    73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.05.selector.class.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.05.selector.class.html 10 | 11 | 12 | 30 | 31 | 32 | 33 | 34 | 35 |

    3.3. Basic Selector types

    36 | 37 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 38 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 39 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 40 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 41 | 42 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 43 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 44 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 45 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 46 |

    47 | 48 |

    3.5. Class Selector

    49 | 50 | 57 | 58 |

    The class selector selects HTML elements with a specific class attribute . It is used with a period character . (full stop symbol) followed by the class name. Attribute selector based on `class attributes` applied to HTML element/tag. 59 |

    60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.8.padding.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.8.padding.html 10 | 11 | 12 | 34 | 35 | 36 | 37 | 38 | 39 |
    40 | 41 |
    42 | 43 |

    5. Common CSS Concepts

    44 | 45 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    46 | 47 |

    05.8. CSS box model: padding

    48 | 49 | 55 | 56 |

    Box Model consists of properties like: Margins, Borders, Padding and content width, height (these properties make physical dimension of an element)

    57 | 58 |
      59 |
    1. Margin = Space outside/around an element
    2. 60 |
    3. Border = Rectangular outline/border surrouding an element/box
    4. 61 |
    5. Padding = Breathing space inside an element border
    6. 62 |
    7. Total width of an element: left border + left padding + content width + right padding + right border
    8. 63 |
    64 | 65 | The following diagram demonstrates how the margin, padding, and border CSS properties determines how much space an element can take on a web page: 66 |

    67 | CSS Box Model 68 |

    69 | 70 |
    71 | 72 |
    73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.5.background.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.5.background.html 10 | 11 | 12 | 57 | 58 | 59 | 60 | 61 | 62 |
    63 | 64 |
    65 | 66 |

    5. Common CSS Concepts

    67 | 68 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    69 | 70 |

    05.5. Backgrounds

    71 | 72 | 75 | 76 |

    Background Properties

    77 | The CSS provide several properties for styling the background of an element, like: 78 |
      79 |
    1. background-color
    2. 80 |
    3. background-image
    4. 81 |
    5. background-repeat
    6. 82 |
    7. background-attachment
      uncomment and check body styles
    8. 83 |
    9. background-position
    10. 84 |
    11. background-position
    12. 85 |
    86 | 87 |
    88 | 89 |
    90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.10.3.position.absolute.relative.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.10.3.position.absolute.relative.html 10 | 11 | 12 | 43 | 44 | 45 | 46 | 47 | 48 |
    49 | 50 |
    51 | 52 |

    5. Common CSS Concepts

    53 | 54 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    55 | 56 |

    05.10. Element Positioning

    57 | 58 | 63 | 64 |

    CSS positioning schemes

    65 | 66 |
      67 |
    1. Normal Flow
    2. 68 |
    3. Element Floating
    4. 69 |
    5. Absolute Positioning
    6. 70 |
    71 | 72 |
    73 |

    Absolute + Relative Positioning: [Container=Releative, Child=Absolute]

    74 | 75 |
      76 |
    1. Absolute Positioning is `not considered as a part of Normal Document flow`
    2. 77 |
    3. Absolute Positioning removes the document from Normal Document flow and respositioned based on top, right, bottom, or left offset values
    4. 78 |
    5. Other elements in flow moves up and takes empty space made by an absolute positioned element
    6. 79 |
    7. Elements are placed relative to the nearest positioned ancestor/parent element OR body OR viewport
    8. 80 |
    81 |
    82 | 83 |
    84 | 85 |
    86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.09.selector.conditional.descendent.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.09.selector.conditional.descendent.html 10 | 11 | 12 | 37 | 38 | 39 | 40 | 41 | 42 |

    3.3. Basic Selector types

    43 | 44 |
    45 |

    3.3. Basic Selector types

    46 |
    47 | 48 |
      49 |
    1. Selector allows us to tell the browser which element/tag on the page we want to style
    2. 50 |
    3. CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
    4. 51 |
    5. Selector may target: Single element, group of elements, .class, #id, any specific conditional element
    6. 52 |
    7. Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
    8. 53 |
    54 | 55 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 56 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 57 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 58 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 59 |

    60 | 61 |

    3.9. conditional descendent Selector

    62 | 63 | 69 | 70 |

    Highly specific selector that target elements based on their location within other elements . You can use this selector when you need to select an element that is the descendant/inside of another element. You want to apply a style rule to a particular element only when it lies inside a particular element. 71 |

    72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.10.1.selector.pseudo.class.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.10.1.selector.pseudo.class.html 10 | 11 | 12 | 62 | 63 | 64 | 65 | 66 |

    3.3. Basic Selector types

    67 | 68 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 69 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 70 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 71 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 72 | 73 |

    3.10. pseudo class Selector

    74 | 75 | 82 | 83 | 90 | 91 |

    92 | 93 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/3. CSS Basics/03.08.selector.group.grouping.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 03.08.selector.group.grouping.html 10 | 11 | 12 | 66 | 67 | 68 | 69 | 70 | 71 |

    3.3. Basic Selector types

    72 | 73 |
  • Selector allows us to tell the browser which element/tag on the page we want to style
  • 74 |
  • CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more
  • 75 |
  • Selector may target: Single element, group of elements, .class, #id, any specific conditional element
  • 76 |
  • Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style
  • 77 | 78 |

    Selector allows us to tell the browser which element/tag on the page we want to style. 79 | - CSS selectors are used to "target/find/select" HTML elements based on element/tag name, id, class, attribute, and more. 80 | - Selector may target: Single element, group of elements, .class, #id, any specific conditional element. 81 | - Selectors are used to declare which of the markup elements a style applies to, Selector indicates the HTML element you want to style. 82 |

    83 | 84 |

    3.8. group/grouping Selector

    85 | 86 | 93 | 94 |

    Group/Grouping selector allows you to group different types of selectors together that share similar formattings . Grouping selector is used to minimize the code, its efficient. It also prevents you from repeating the same style rules over and over again. 95 |

    96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.10.4.position.fixed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.10.4.position.fixed.html 10 | 11 | 12 | 39 | 40 | 41 | 42 | 43 | 44 |
    45 | 46 |
    47 | 48 |

    5. Common CSS Concepts

    49 | 50 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    51 | 52 |

    05.10. Element Positioning

    53 | 54 | 59 | 60 |

    CSS positioning schemes

    61 | 62 |
      63 |
    1. Normal Flow
    2. 64 |
    3. Element Floating
    4. 65 |
    5. Absolute Positioning
    6. 66 |
    67 | 68 |

    Fixed Positioning 1 :

    69 | 70 |
      71 |
    1. The fixed positioning property helps to put the text fixed on the browser
    2. 72 |
    3. Fixed Positioned elements are considered to be an Absolute Positioned elements itself but it always positioned relative to the `active viewport`
    4. 73 |
    5. As Fixed Positioned elements are positioned relative to the `active viewport` scrollbar doesnt affects it
    6. 74 |
    7. Fixed positioning is a subcategory of absolute positioning (difference is, a fixed positioned element is fixed with respect to the browser's viewport and does not move when scrolled)
    8. 75 |
    76 | 77 |
    78 |

    Fixed Positioning 2 :

    79 | 80 |
      81 |
    1. The fixed positioning property helps to put the text fixed on the browser
    2. 82 |
    3. Fixed Positioned elements are considered to be an Absolute Positioned elements itself but it always positioned relative to the `active viewport`
    4. 83 |
    5. As Fixed Positioned elements are positioned relative to the `active viewport` scrollbar doesnt affects it
    6. 84 |
    7. Fixed positioning is a subcategory of absolute positioning (difference is, a fixed positioned element is fixed with respect to the browser's viewport and does not move when scrolled)
    8. 85 |
    86 |
    87 | 88 |
    89 |

    Fixed Positioning 3 :

    90 | 91 |
      92 |
    1. The fixed positioning property helps to put the text fixed on the browser
    2. 93 |
    3. Fixed Positioned elements are considered to be an Absolute Positioned elements itself but it always positioned relative to the `active viewport`
    4. 94 |
    5. As Fixed Positioned elements are positioned relative to the `active viewport` scrollbar doesnt affects it
    6. 95 |
    7. Fixed positioning is a subcategory of absolute positioning (difference is, a fixed positioned element is fixed with respect to the browser's viewport and does not move when scrolled)
    8. 96 |
    97 |
    98 | 99 |
    100 | 101 |
    102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /_examples-css3-fundamentals/5. Common CSS Concepts/05.9.border.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 05.9.border.html 10 | 11 | 12 | 103 | 104 | 105 | 106 | 107 | 108 |
    109 | 110 |
    111 | 112 |

    5. Common CSS Concepts

    113 | 114 |

    There are many CSS concepts and properties we use in day to day CSS work, lets dive into some of the common concepts used while working with CSS.

    115 | 116 |

    05.9. CSS box model: border

    117 | 118 | 125 | 126 |

    Box Model consists of properties like: Margins, Borders, Padding and content width, height (these properties make physical dimension of an element)

    127 | 128 |
      129 |
    1. Margin = Space outside/around an element
    2. 130 |
    3. Border = Rectangular outline/border surrouding an element/box
    4. 131 |
    5. Padding = Breathing space inside an element border
    6. 132 |
    7. Total width of an element: left border + left padding + content width + right padding + right border
    8. 133 |
    134 | 135 | 146 | 147 |

    Colors channel logo created with border-radius

    148 |
    153 | 154 | The following diagram demonstrates how the margin, padding, and border CSS properties determines how much space an element can take on a web page: 155 |

    156 | CSS Box Model 157 |

    158 | 159 |
    160 | 161 |
    162 | 163 | 164 | 165 | 166 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

    2 | CSS3 cading Style Sheets logo 3 |

    4 | 5 | CSS3 Fundamentals 6 | ===================== 7 | 8 | CSS stands for Cascading Style Sheets through which we add styles, colors, layouts, design, and look-feel appearance to the web page. 9 | 10 | CSS is a stylesheet language that allows you to control the appearance of your web pages. This hands-on course will demonstrate the concepts that form the foundation of CSS, creating a CSS file, writing basic CSS selectors, setting up various CSS properties, and explains how to use this stylesheet language to add colors and other design elements to take your web pages beyond standard black & white text/background. Will learn guidelines for page layouts with floats, Setting a font family, font size, text color, how the box model defines the spacing and sizing of page elements, styling text, and managing basic layouts. It Will also explores the tools needed to work with CSS, how to use selectors to target elements, and more. 11 | 12 | ### Prerequisites for current course / What you need to know 13 | To move forward with CSS you must need basic knowledge of XHTML/HTML/HTML5. It's an added advantage if you know basic concepts like Web, Internet, Web Page, URL, images, Web Design with XHTML/HTML/HTML5 etc. Its advisable to view [Web Design Development Foundations-Web Technology Fundamentals](https://github.com/dinanathsj29/web-design-development-fundamentals) and [HTML5 Essentials](https://github.com/dinanathsj29/html5-essentials) before jumping into CSS3 fundamentals. 14 | 15 | Topics include 16 | ===================== 17 | 18 | 1. [Course introduction](#section-1-course-introduction) 19 | 2. [Introducing CSS](#section-2-introducing-css) 20 | 3. [CSS basics](#section-3-css-basics) 21 | 4. [CSS specifications](#section-4-css-specifications) 22 | 5. [Common CSS concepts](#section-5-common-css-concepts) 23 | 6. [CSS resources](#section-6-css-resources) 24 | 7. [What's the next Step?](#section-7-whats-the-next-step) 25 | 26 | Section 1. Course introduction 27 | ===================== 28 | 29 | ### 1.1. Welcome 30 | Hi All, I'm **`Dinanath Jayaswal, Senior UI/Web Developer and Adobe Certified Expert Professional`**, I wanna welcome you to CSS3 Fundamentals. This course is designed to introduce you to basic CSS concepts, terminology, and tools. It's perfect for any new web designer/developer looking for a good starting point with CSS. We Will start by exploring the basics of CSS, what CSS is?, syntax, how CSS works, use CSS to create websites, using CSS on a wide variety of platforms. I will start by giving an overview of CSS, CSS features, browser support, followed by formatting text, layouts, images, box model, positioning, CSS online tools, and resources. 31 | 32 | Section 2. Introducing CSS 33 | ===================== 34 | 35 | ### 2.1. Importance 36 | 37 | ### 3 pillars / core Languages/Technologies used for Front End Web Design/Development: 38 | 39 | 1. **HTML (HyperText Markup Language)** - Markup language, essential page structure/content, readable and convey structure to the user, text layout model, page mark-up, text, tags, data, details for pages, images, tables, anchor links, forms 40 | - HTML is an acronym that stands for `HyperText Markup Language` which is used for creating `web pages and web applications 41 | - HTML is not a programming language; it is a markup language that defines the structure of your content ie. document 42 | 43 | 2. **`CSS (Cascading Style Sheet) - Style Sheet language, page design / presentation / layouts / styling / formattings, look and feel, creative part of web pages`** 44 | - CSS is a stylesheet language that allows you to control the appearance (look and feel) of your webpages 45 | 46 | 3. **JavaScript (JS)** - Scripting language, dynamic page behavior, logics, conditions and validations, events (mouse click, hover), interactivity with the user/events, dynamic updates in a web page 47 | - JavaScript is a `scripting language of the web that allows you to do interactivity with the user, implement conditions and validations, dynamic updates in a web page, etc. 48 | 49 | > **Syntax & Example**: 50 | ```html 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 02.01.css.intro.html 60 | 61 | 62 | 71 | 72 | 73 | 74 | 75 | 76 |

    02.01.css.intro.html

    77 | 78 | 79 |

    >Getting Started with CSS 80 | 81 |

    In this tutorial you'll learn how easy it is to add style and formatting information to the web pages using CSS. But, before we begin, make sure that you have some working knowledge of HTML.

    82 | If you're just starting in the world of web development, start learning from here

    83 | Well, let's get started with the most popular style sheet language.

    84 | 85 | 86 | 87 | 88 | ``` 89 | 90 | ### 2.2. What is CSS? 91 | - CSS stands for `Cascading Style Sheets` 92 | - CSS is `presentational, styling, formatting language` developed to `control look and feel` of HTML documents 93 | - CSS is the Stylesheet language/technology developed to create Page Designs / Layouts / Styling / Formattings, look and feel of web pages 94 | - CSS is the `key presentational technology` that is used in website design 95 | - Cascading refers to the way that CSS apply one style on top of another 96 | - HTML controls the structure of web page, `CSS controls the presentation/styles/design` 97 | - Stylesheets are a collection of formatting/styling/presentation rules 98 | 99 | > **Example**: HTML is like a new Raw concrete Building structure, CSS is like skin (outside of the building looks) 100 | 101 | ### 2.3. Why use CSS? (Benefits of CSS) 102 | - Separate styles/presentation rules from content (separation of concern) 103 | - CSS provides better & high-end controls over the look and feel 104 | - With CSS Designer/Developers gain lots of flexibility & consistency over styling 105 | - Highly modularise web design with external independent .css files 106 | - CSS is significant as it applies one style to many elements/tags 107 | - Apply one style to many styles 108 | - Apply a set of styles to many documents of an application 109 | - Target different media like Screen, Print, Mobile device 110 | 111 | ### 2.4 Advantages of CSS 112 | One of the biggest advantages of using CSS is that it allows the separation of style and layout from the content of the document. Let us have a look at some more advantages of using CSS: 113 | - Easy maintenance (separate .css file) 114 | - CSS save lots of time on styling multiple pages/application(re-usability) 115 | - Pages load faster (separation of concern) 116 | - Superior styles to HTML (Provide more attributes) 117 | - Multiple device compatibility (manage/handle devices with different resolution) 118 | - Global web standards 119 | 120 | ### 2.5. Prerequisites of using CSS (Cascading Style Sheets) 121 | #### Tools for building web sites-web pages/writing HTML & CSS 122 | 123 | 1. **Text Editor/HTML Editor** - `NotePad, NotePad++, SublimeText, Atom, Brackets, Coda, Visual Studio Code, DreamWeaver` etc. 124 | - A CSS file (.css) is a text file itself consists of CSS style & properties, so to create/modify a CSS file we can use any text editor. 125 | 2. **Browsers To view output of .html pages with .CSS styles** - `Google Chrome, Mozilla Firefox, Internet Explorer, Safari` etc. 126 | - Once the .html/.htm file is created and saved, we can create a .CSS file and link within HTML and then we can see its output in any latest web browser. 127 | 128 |

    129 |

    130 |     all browsers 131 |
        Image - Widely used modern browsers
    132 |
    133 |

    134 | 135 | Section 3. CSS basics 136 | ===================== 137 | 138 | ### 3.1. Default Browser styles 139 | - Open any HTML page (Unstyled / No CSS used) in browser, have a look on content styles 140 | > **Note**: Saying Unstyled is not accurate as every browser apply own default style set to visual CSS rules `user agent stylesheet` on every elements like `

    to

    ,