Layout exercise (due June 3)
This exercise is required.
As part of your styleguide, you are expected to include layout of your grid structure. This task has you practicing working with CSS grids on that structure.
For this coding task you will be working with an existing set of HTML and CSS files. Please download the starter files. When you open up the
index.html file, you will note that there are already number of grey and black blocks for you to apply the grid structure to. Please add classes to the existing structure as necessary to make it behave as a responsive grid. Our suggested process:
- Set the meta viewport tag to ensure your page scales appropriately on mobile devices.
- Set every element to use the
- Set the
.gridclass to display as a grid.
- Set the
.columnelements to organize into three columns when the window is above 40ems in width.
- Set the
.columnelements to organize into six columns when the window is above 60ems in width.
Once done making the layout responsive
- Add comments through-out the code to indicate what resources you drew upon to complete the exercise.
- Validate the page using the CSS Validator (W3C) to find any errors or potential problems in your markup.
- Please upload your files to your SFU filespace and submit the URL to the Canvas assignment.
Your submission is due before lecture on June 3.
- CSS Reference (Mozilla Developer Network): An overview of available CSS properties and selectors as well as links to their definitions.
- CSS Validator (W3C): A CSS validator to help you find errors in your stylesheet.
- A Complete Guide to Grid (CSS Tricks): A very in-depth explanation of all the available CSS grid properties.
- How to Upload to SFU Filespaces Using SFTP: Instructions on uploading files to your SFU filespace.
Exercise rules reminder
Please remember that the exercise rules still apply:
- You can use online resources, course materials, your TA, and lab-mates for support. This being said, others are not allowed to do your work for you. Also, if you are drawing from online resources, course materials, your TA or peers, you must;
- Cite any knowledge that is not yours in a comment in the code. The internet is a huge repository of information and you are welcome to use it, but you must let us know when something does not originate from your own knowledge.
- If work has been copied without citation the exercise grade will be zero. Please make sure to include comments indicating where you had assistance or learned.