1 Attachment(s)
Teaching a friend CSS - Lessons log.
I'm teaching a friend CSS. I've went over the basics of HTML and CSS for here and bought a text book for her to use, but I figured it might be fun, useful to share the lessons and tests I'm preparing for her here in a thread - both to log them. I'm not that experienced at teaching, so feedback on that aspect of it is welcome, as is ideas for exercises. For reference, she's an art student with a background in photography.
The first test is draw a centered bull's eye. The target render is attached, the HTML she is working from is as follows:
Code html:
<!DOCTYPE html>
<html>
<body>
<div><div><div></div></div></div>
</body>
</html>
EXPERT CHALLENGE: Vertically center the bull's eye. This isn't part of her lesson so isn't shown in the target render.
When does CSS become just TOO MUCH fun?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<!--
http://www.sitepoint.com/forums/showthread.php?942215-Teaching-a-friend-CSS-Lessons-log
-->
<head>
<title>The Black Hole</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="en-us">
<style type="text/css">
html,
body {
padding:0px;
margin:0px;
}
body {
background-color:#888;
}
.blackhole {
width:40px;
height:40px;
background-color:#000;
border-radius:50%;
position:fixed;
left:50%;
top:50%;
margin-left:-20px;
margin-top:-20px;
box-shadow:
0px 0px 30px 30px #fff,
0px 0px 30px 60px #f0f,
0px 0px 40px 90px #00f,
0px 0px 30px 130px #0ff,
0px 0px 30px 140px #0f0,
0px 0px 30px 180px #ff0,
0px 0px 30px 210px #f00,
0px 0px 0px 240px #000,
0px 0px 6px 244px #fff;
}
</style>
</head>
<body>
<div class="blackhole"></div>
</body>
</html>