Screenshot of Crows of New York Codepen with images and typography

Class 10: Images Part 2

Class on Wednesday, October 2, 2019 (we had no class on Monday 9/3/19 due to school holiday)

Note: We believe that those of you experiencing login issues related to the OpenLab should now be able to log in. Please try and let me know if you are able to or if you have problems.

Like last class this one will also be in two parts.

  1. Part 1: Review of last week and questions related to images and grid
  2. Part 2: Look at floating images, places to get free images and time to work on Assignment 5.

PART 1

First we will review how to get your files from CodePen to local HTML files. If you need it here is a link to a (partially completed) version of Assignment 4 that we worked on in class. If youdon’t have your assignment 4 codepen handy you can use this to follow along: https://codepen.io/profstein/pen/dybqymm

  1. Download CodePen as HTML/CSS.
    1. Click Export near the bottom right of the pen
    2. Click Export .zip
    3. Click Download after it processes the file
    4. Save the zip file to your computer or a USB drive.
    5. Uncompress the zip file (if you use Safari it will be done automatically. On macOS just doubleclick the .zip file
    6. Go to the dist folder (not the src) and move the index.html file and style.css file to a folder with our proper folder structure (index.html in the main folder, css files in a css folder).
  2. Open the folder in an Editor like Brackets.
  3. Change the link element in the head to point to your css file. It should be href=”css/style.css” (by default it has a . in place of the css folder name)
  4. add an images folder
  5. Using the links provided in the text of the codepen (it’s easier to follow the link from Codepen than to copy from the index.html file), begin downloading images from the LOC website and then adding in the HTML to embed the images with a credit. I will use the following Emmet code to expand into a structure we can use to add: div.crowd__image>img+p.image-credit
  6. Update CSS for
    1. typographic hierarchy and
    2. add a grid layout that works with the images.