ryanSmithART.com/courses/2016


week_2

 

*Check Homework
Let's watch this
RSA Animate - Changing Education Paradigms
w/ Sir Ken Robinson

Review some HTML
<a href="http://www.website.com"> Link to a webpage </a>

<a href="..." target="_blank">

Headings:
<h1> </h1>

<!-- this is a comment in HTML -->

div tags:
<div id="name">

CSS
<link href="365.css" rel="stylesheet" type="text/css" />

using an external style sheet

an example of a CSS page

body{background-color:black;}

styling links
a:link {color:#FF0000;}

h1{
background-color:#CC0;
padding:.5em;
text-align:center;
}

/*this is a comment in CSS code */

Hexadecimal System (RGB)


*Check Homework



.gif & .jpg
What's the difference??


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;
}

****changing the background with CSS


....... CSS3:

html{
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;
}


Google fonts

ID vs. Classes
* htmldog.com

* 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>





HOME WORK (due at the beginning of class, next week)

- make an html page (1 page) about yourself
- insert a photo of yourself (you should have started this last week)
- Add CSS to the webpage using an external style sheet

***Experiment with CSS styles that we didn't talk about in class***

( include 1 .jpg image, the html page, and the CSS file.
& Bring in the files next week. )
**no need to upload anything this week**