- week 3 -
- MONDAY -
*Check Homework
review div tags:
<div id="name">
CSS
<link href="388.css" rel="stylesheet" type="text/css" />
using an external style sheet
CSS3:
html{
font-size:12px;
font-family:Helvetica, Arial, sans-serif;
height:100%;
overflow-y: scroll;
background: url(images/bg.gif) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Center divs using CSS:
#wrap{
text-align:left;
max-width:1000px;
min-width:600px;
margin-left:auto;
margin-right:auto;
width:60%;
background-color:white;
padding:10px;
}
ID vs. Classes
How the Web Works
img { border: 0px; }
this applies to every image tag in the HTML document
.classy { color: red; }
this applies to a CSS class called classy.
<span class="classy" > Example of classy red text </span>
#about { background-color: #ccc; }
This rule applies to just the specific element that has an ID value of about:
HOME WORK (due at the beginning of class, Monday, next week)
this week:
-familiarize yourself with HTML & start planning the website- for "Project A"
-pick an artist
-do some research
-get (or make) digital images of artwork
*complete 2 webpages with at least 1 image and a working link