Spring 2023
Slides credited to Joel Ross
The complete HTML & CSS. A static "screenshot" of what your app will look like.
Code requirements:
Working as a group:
/* First, update all origin/<branch> refs to latest: */
git fetch --all
/* Backup your current branch (e.g. main): */
git branch backup-main
/* Jump to the latest commit on origin/main and checkout those files: */
git reset --hard origin/main
Include the viewport meta element to allow your code to control responsive appearances (rather than the browser).
<head>
<meta charset="utf-8"> <!-- always need this -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- more head elements, including <link> ... -->
</head>/* A Media Query */
@media (min-width: 768px) {
/* these rules apply ONLY on screens 768px and wider */
/* a normal CSS rule */
body {
font-size: 1.5em;
background-color: beige;
}
/* another CSS rule */
.mobile-call-icon {
display: none; /* don't show on large displays */
}
}Read: through Chapter 9
Problem Set 03 due Wednesday
Problem Set 04 due next week
Next: CSS Frameworks (Bootstrap)