CSE 190 M Lab 2 (CSS Design and Layout)
CSE 190 M Lab 2 (CSS Design and Layout)
Lab 2 Resources
Lecture Slides
Web Programming Step by Step textbook Ch. 4; Ch. 3 section 3.2.3 - 3.2.6, 3.3
Install Firebug (Strongly suggested!)
When you try to install Firebug, you must tell Firefox to allow the installation. After clicking the Install Firebug link above, a yellow message will
appear at the top of your Firefox window. Click the “Edit Options...” button, then on the window that appears, click “Allow” then “Close”. Then try to
“Install Firebug” again. (You may need to refresh the page.)
Solution to this lab, so you can see how your page is supposed to look and work. (Please don't look at the source code until after lab is over!)
You are going to match the output below (between, but not including, the thick black lines).
The borders are all 5px thick and solid.
The colors are the intuitive HTML color names, e.g. the red border is the HTML color red.
Note: You should not need define a class or id specifically for the h2s on this page.
Hint: To reduce the amount of id and class attributes you need to set in the XHTML code, consider using CSS context selectors as appropriate.
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 1/6
16/9/24, 9:05 p.m. CSE 190 M Lab 2 (CSS Design and Layout)
The only major changes you should need to make to the XHTML code are adding ids, classes, divs, and spans. You may also change the text of the journal if
you like, such as changing it to your name or rewording the journal entries. But please don't spend a large amount of time doing this, so you can move on to the
later exercises.
http://www.cs.washington.edu/education/courses/190m/09sp/labs/2-journal/images/background.gif
You are going to match the output below (between, but not including, the thick black lines).
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 2/6
16/9/24, 9:05 p.m. CSE 190 M Lab 2 (CSS Design and Layout)
You are going to match the output below (between, but not including, the thick black lines).
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 3/6
16/9/24, 9:05 p.m. CSE 190 M Lab 2 (CSS Design and Layout)
You are going to match the output below (between, but not including, the thick black lines).
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 4/6
16/9/24, 9:05 p.m. CSE 190 M Lab 2 (CSS Design and Layout)
<h1>Friends</h1>
<ul>
<li><a href="http://www.cs.washington.edu/education/courses/cse190m/CurrentQtr/staff.shtml">190m Buddies</a
<li><a href="http://www.willsmith.net/">Big Will</a></li>
<li><a href="http://youtube.com/watch?v=mZHoHaAYHq8" title="Conan the Librarian">Conan the Librarian</a></l
</ul>
Use the appropriate layout-related tags/attributes and CSS to make this list into a second, left-aligned column as shown below. The colors, borders, etc. of the list
are not important; the focus is on the layout. The layout with a second column must still be a “liquid” layout -- that is, all parts of it should adjust in size
accordingly when the browser size changes. HINT: When multiple elements float in the same direction, they arrange themselves into columns. Also see textbook
Chapter 4's section on "The clear Property" for more information.
You are going to match the output below (between, but not including, the thick black lines).
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 5/6
16/9/24, 9:05 p.m. CSE 190 M Lab 2 (CSS Design and Layout)
Exercise 7 (for 1337 h4x0rz only): Make Your Journal Annoying w/ Hover -- Elegantly
Write your page so that if you hover over any element (i.e. any header, paragraph, image, etc), the element is highlighted in yellow.
This must be a one-selector, one-property addition to your stylesheet -- no commas allowed! (Note: This is tricky.)
https://courses.cs.washington.edu/courses/cse190m/09sp/labs/2-journal/ 6/6