COAP:COAP-3120/week4: Difference between revisions
Jump to navigation
Jump to search
m (→Homework 2) |
|||
Line 7: | Line 7: | ||
=== Monday === | === Monday === | ||
Main topic: '''The CSS box model and | Main topic: '''The CSS box model and layouting with float:left''' | ||
; Homework 2 | |||
* Q/R Homework 2 | * Q/R Homework 2 | ||
* | |||
; Boxes | |||
* Handouts: [[CSS box model tutorial]] | |||
; Analyzing CSS | |||
* [[Analyzing CSS tutorial]] | |||
; Classroom activity | |||
* Analyze the HTML and the CSS of a page you like using web developer tools | |||
; Layout using the '''float:left''' property:value combo | |||
* Example directory: http://tecfa.unige.ch/guides/css/ex/ | |||
* Most important principles: | |||
** Fluid layouts are better in most cases. | |||
** Don't add any margins or paddings to columns that will go into a multi-column layout. Use wrappers and only set ''width'' and ''min-width'' ! For example: | |||
<source lang="CSS"> | |||
#right_col { | |||
float: left; | |||
width:17%; | |||
min-width:2cm; | |||
</source> | |||
; Mini-project (homework) 3 | |||
* Grab http://tecfa.unige.ch/guides/css/ex/layout/css-boxes-fluid-template.html | |||
=== Wednesday === | === Wednesday === | ||
* Hands-on homework 3 (see below) | * Hands-on homework 3 (see below) | ||
* Continue with your work based on: http://tecfa.unige.ch/guides/css/ex/layout/css-boxes-fluid-template.html | |||
=== Homework 2 === | === Homework 2 === |
Revision as of 21:53, 13 November 2011
COAP 3120 Week 4 program
(under construction ....)
Monday
Main topic: The CSS box model and layouting with float:left
- Homework 2
- Q/R Homework 2
- Boxes
- Handouts: CSS box model tutorial
- Analyzing CSS
- Classroom activity
- Analyze the HTML and the CSS of a page you like using web developer tools
- Layout using the float:left property
- value combo
- Example directory: http://tecfa.unige.ch/guides/css/ex/
- Most important principles:
- Fluid layouts are better in most cases.
- Don't add any margins or paddings to columns that will go into a multi-column layout. Use wrappers and only set width and min-width ! For example:
#right_col {
float: left;
width:17%;
min-width:2cm;
- Mini-project (homework) 3
Wednesday
- Hands-on homework 3 (see below)
- Continue with your work based on: http://tecfa.unige.ch/guides/css/ex/layout/css-boxes-fluid-template.html
Homework 2
Project summary:
(1) Create an HTML page plus CSS style.
- The page should include several chunks of information that should be visually shown as boxes
(2) A short report describing and discussing your design
Requirements:
The HTML must include:
- Some nested div boxes (or equivalent)
The CSS must include:
- Some positioning, at least a bar on top of the page, boxes that float to the right
The short report:
- It should shortly explain your design, e.g. what you aimed to achieve
- It should include references/sources used (in particular to the original HTML file). Be careful to respect general Webster rules about plagiarism.
- It should shortly explain what you did in your CSS.
- The report can be turned in any format (e.g. HTML, PDF or Word).
Example HTML+CSS:
Due:
- Wednesday week 5
Submission:
- Upload (a) the HTML file, (b) the CSS file (if external), (c) all the picture files and (d) the report to the world classroom (hw 1). Creating a *.zip file of everything is the easiest solution.
- Make sure that the upload worked (e.g. don't forget to hit the submit button)
Evaluation criteria:
- Requirements (presence of CSS elements) - 20%
- Visual design / originality - 30%
- Usability - 10% (is the text readable ?)
- Technical quality (CSS structure and documentation, valid HTML and CSS) - 20%
- Presence and quality of the report - 10%
- On time - 10 % (only 2 days late = 5%)
Reading and other resources
- Textbook
- Chapter 8 (The Box Model: Controlling Margins, Borders, Padding, Width, and Height
- Chapter 9 (Floating and Vertical Alignment)
- Handout
- Validation
- HTML validator (alternatively, use the FF exension): http://validator.w3.org/
- CSS validator: http://jigsaw.w3.org/css-validator/