I started the day on pg 499 of the book, and made it to pg 544, which is the end of the Layout and Positioning chapter of the book.
We discussed two related layouts, the frozen layout and the jello layout. The jello layout is like a frozen layout, but a little more attractive. To make a frozen layout, we create a div inside the body element which has every other body element nested inside of it. Then, in the HTML, we give the div an id (id="allcontent"), and in the CSS, we use the id selector (#allcontent), and fill it with these properties and values, for example:
width: 800px;
padding-top: 5px;
padding-bottom: 5px;
background-color: #675c47;
To make the frozen layout a jello layout, we add this:
margin-left: auto;
margin-right: auto;
The margin-right and margin-left properties are for the auto values, which center the element, creating the "jello" layout. The width of 800px sets the size of the containing div, and all nested elements will be constrained within those 800px. The padding-top and padding-bottom are for aesthetic purposes, and the background-color serves to separate the part of the page with content from the excess space on the left and right, if the viewport is large enough to have excess space.
The "clear" property instructs an element to "clear" itself of any floating elements. You can use the clear property to clear the selected elements of any floated elements to the left, right, or both sides of the element.
I learned that when using a CSS table, we only use block elements (we can use inline elements, but they must be nested inside a block element, such as a <div></div>). I really enjoyed the lesson on CSS tables, and the layout that resulted was very nice.
We went over the four kinds of positioning, static (default), absolute (based on the closest positioned parent element, which is usually <html>, that is, the actual page), fixed (based on the viewport), and relative (based on the element you specify).
Page 537 of the book has some really great bullet points regarding layout and positioning.
We discussed two related layouts, the frozen layout and the jello layout. The jello layout is like a frozen layout, but a little more attractive. To make a frozen layout, we create a div inside the body element which has every other body element nested inside of it. Then, in the HTML, we give the div an id (id="allcontent"), and in the CSS, we use the id selector (#allcontent), and fill it with these properties and values, for example:
width: 800px;
padding-top: 5px;
padding-bottom: 5px;
background-color: #675c47;
To make the frozen layout a jello layout, we add this:
margin-left: auto;
margin-right: auto;
The margin-right and margin-left properties are for the auto values, which center the element, creating the "jello" layout. The width of 800px sets the size of the containing div, and all nested elements will be constrained within those 800px. The padding-top and padding-bottom are for aesthetic purposes, and the background-color serves to separate the part of the page with content from the excess space on the left and right, if the viewport is large enough to have excess space.
The "clear" property instructs an element to "clear" itself of any floating elements. You can use the clear property to clear the selected elements of any floated elements to the left, right, or both sides of the element.
I learned that when using a CSS table, we only use block elements (we can use inline elements, but they must be nested inside a block element, such as a <div></div>). I really enjoyed the lesson on CSS tables, and the layout that resulted was very nice.
We went over the four kinds of positioning, static (default), absolute (based on the closest positioned parent element, which is usually <html>, that is, the actual page), fixed (based on the viewport), and relative (based on the element you specify).
Page 537 of the book has some really great bullet points regarding layout and positioning.
SUMMARY OF CODING SKILLS
Total Treehouse Points: 3,823
Treehouse Points by Subject Matter: HTML 663, CSS 1,599, Design 1,193, Development Tools 336, and Miscellaneous
Treehouse Ranking (%): "You have more total points than 86% of all students."
Treehouse Badge(s) Earned Today:
None
Treehouse Courses Completed:
How to Make a Website
HTML
CSS Foundations
CSS Layout Techniques
Aesthetic Foundations
Design Foundations
Adobe Photoshop Foundations
Adobe Illustrator Foundations (
Codecademy (& other) Courses Completed:
HTML and CSS (Codecademy)
Design Foundations
Adobe Photoshop Foundations
Adobe Illustrator Foundations (
Codecademy (& other) Courses Completed:
HTML and CSS (Codecademy)
Books Read or in Progress:
"Head First HTML and CSS," by E. Robson & E. Freeman (I've read the 37 pg. preface the first 255 pgs. (the HTML section), and am now up to pg 544 (now in the CSS section).
My Progress on The Odin Project:
1. Introduction to Web Development 100% Complete
2. Web Development 101 25% Complete
3. Ruby Programming 0% Complete
4. Ruby on Rails 0% Complete
5. HTML5 and CSS3 0% Complete
6. Javascript and JQuery 0% Complete
7. Getting Hired as a Web Developer 0% Complete
Hours Spent Coding Today: 5
Total Hours Coding: 269
Total Hours Coding: 269