Week #3
14 Feb. 2013
* Take Attendance *
For home work, you were supposed to create a .css page for your index.html page.
Upload it, if you haven't already.
Anybody not introduce themself last week?
Today: More CSS · Div Tags · IDs & Classes
Continue working with Dreamweaver · Assign "Project A"
What we did last class:
Hexadecimal System (RGB)
CSS
Syntax
In the head of your html code, put a link to a separate .css file:
<link href="365.css" rel="stylesheet" type="text/css" />
This is an example of an
External Style Sheet
More with CSS:
<!-- comments --> and /* comments */
changing the
background with CSS
CSS styles can be applied to general page elements, CSS Classes, and specific items:
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:
<div id="about"> About stuff goes here </div>
http://www.csszengarden.com/
div tags?
Example of
good CSS positioning
Here's the
CSS code
by
Larry Ullman
More CSS Positioning & other fun stuff
by rS
15 min. break
(***PUT COMPUTERS TO SLEEP***)
Project A Examples:
- Beatriz Martin Vidal
- Jenny Saville
- Audrey Kawasaki
- William Belt
- Banksy
div tags:
<div id="title"> week 3 </div>
<div id="other"> most of stuff </div>
<div id="scroller">--scrolling div section-----------</div>
CSS:
#title{
background-color:#000;
color:#FFF;
top:0px;
height:50px;
left:0px;
width:100%;
}
#other{
top:70px;
background-color:#FFF;
color:#999;
width:500px;
}
#scroller{
padding-left:10px;
background-color:#000;
color:#FFF;
width:100px;
height:50px;
overflow:scroll;
}
Home Work :
Anybody not introduce themself last week?
*Get started on "Project A"
Due : Week #5 (Thursday. 28 Feb.)
in the meantime:
-familiarize yourself with HTML & CSS, start planning the website
-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 before next class.