Web Technologies WNM-608. Class meets in 180NM and Online this Spring 2012 in San Francisco. Classroom:555 Mailbox: 5th Floor Mailroom 180NM
Monday, March 19, 2012
Accessibility
Midterm Projects
Friday, March 16, 2012
MIDTERM PROJECTS DUE NEXT CLASS
Monday, March 12, 2012
Tonight's Class Topics
We spoke of iframes, Frames, Tables, Css Positioning, Floats, Graduate Help for Coding, and many more topics.
What's due next class: A COMPLETED RECIPE SITE and A COMPLETED Demonstration site from all the class exercises/homework assignments.... a list will be forthcoming. check back.
see Jamie's for an example.
The Recipes: positioning
samples for download
Positioning in CSS is deceptively simple in concept. There are only a handful of relevant properties. Here is a review of the properties:
- position has five possible values: static, relative, absolute, fixed and inherit. Relative displaces the element relative to where it would have been in the normal flow of an uninterrupted HTML page. It works rather like an offset. Absolute allows you to place an element exactly where you want it. Absolute positioning disrupts the flow of the page and places an element exactly where you say regardless of the other elements on the page. It pulls the positioned element outside the flow of the page. The other elements on the page will continue to flow, ignoring the absolutely positioned content. Sometimes this can cause disturbing pile ups. Absolute positioning can take advantage of the z-index property to organize the elements in three dimensions. Using it you can create wonderful layered effects. Relative and absolute positioning are frequently used together. The relatively positioned element contains the absolutely positioned elements. We will be taking a closer look at this later on in our module.
- float allows elements to sit next to each other at the same height within a page. Left to their own devices, the natural behavior of block elements is to stack one on top of the other. Floats permit block level elements to sit next to each and still retain the properties of a block.
- clear interrupts the float and begins a new line. It is used in tandem with the float property.
- visibility has two values: visible and hidden. This property allows you to place an invisible element on a page and then use a JavaScript event to reveal the text on demand. There are a lot of interesting interfaces based on this concept.
- overflow tells the browser what to do if it has more content than an element can comfortably handle. It can be set to visible, which resizes the box; hidden, which hides the extra content; scroll, which inserts a scroll bar; and auto, which inserts a scroll bar only when needed. Combining the overflow property with the scroll set to auto is how modern iframes are implemented. To use the overflow property effectively, the dimensions of the element need to be defined.
The first two sections, baked and savory, get right margins. The last column doesn't need a right margin because it is the last and furthest right.
While we're at it, let's make sure the section headlines, the h3's, are all at the top. Our additional code looks like this so far:
Finally we add a dotted top border to each article. Our article style reads like this:
WNM 608, Module 6: Positioning & Tables
WNM 608, Module 5: The Cascade
WORKSHOPS: HELP IS HERE FOR YOU!
Monday, March 5, 2012
What's due next week?
Butterflies are silly! and class assignments
Jezebel: Celebrity, Sex, Fashion for Women. Without Airbrushing.
Shim (computing) - Wikipedia, the free encyclopedia
we are using the shim.js in this example for the ie browser... for the html5 code to work in ie... where it would otherwise not.
HTML5 enabling script
The html5.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them - so it can't sit in the footer of the page, i.e. below the elements in question).
Decorated Playlists - Sight Sound
playlists that animate with light and sound with html5, js, and css3
Gettysburg Address
The Gettysburg Address by jamie
The Gettysburg Address that's scrollin!
another point of inspiration and more notes
Positioning in CSS is deceptively simple in concept. There are only a handful of relevant properties. Here is a review of the properties:
- position has five possible values: static, relative, absolute, fixed and inherit. Relative displaces the element relative to where it would have been in the normal flow of an uninterrupted HTML page. It works rather like an offset. Absolute allows you to place an element exactly where you want it. Absolute positioning disrupts the flow of the page and places an element exactly where you say regardless of the other elements on the page. It pulls the positioned element outside the flow of the page. The other elements on the page will continue to flow, ignoring the absolutely positioned content. Sometimes this can cause disturbing pile ups. Absolute positioning can take advantage of the z-index property to organize the elements in three dimensions. Using it you can create wonderful layered effects. Relative and absolute positioning are frequently used together. The relatively positioned element contains the absolutely positioned elements. We will be taking a closer look at this later on in our module.
- float allows elements to sit next to each other at the same height within a page. Left to their own devices, the natural behavior of block elements is to stack one on top of the other. Floats permit block level elements to sit next to each and still retain the properties of a block.
- clear interrupts the float and begins a new line. It is used in tandem with the float property.
- visibility has two values: visible and hidden. This property allows you to place an invisible element on a page and then use a JavaScript event to reveal the text on demand. There are a lot of interesting interfaces based on this concept.
- overflow tells the browser what to do if it has more content than an element can comfortably handle. It can be set to visible, which resizes the box; hidden, which hides the extra content; scroll, which inserts a scroll bar; and auto, which inserts a scroll bar only when needed. Combining the overflow property with the scroll set to auto is how modern iframes are implemented. To use the overflow property effectively, the dimensions of the element need to be defined.
some references for today's discussion
Normal Flow
Before you can really understand CSS positioning, you need to have a firm grasp of "normal flow". Normal flow is defined by the W3C recommendation for HTML as:
"Boxes in the normal flow belong to a formatting context, which may be block or inline, but not both simultaneously. Block-level boxes participate in a block formatting context.Inline-level boxes participate in an inline formatting context."
You can read the full reference in context at:http://www.w3.org/TR/CSS21/visuren.html#normal-flow
Monday, February 27, 2012
jQuery Mobile | jQuery Mobile
jQuery mobile framework takes the "write less, do more" mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework allows you to design a single highly-branded web site or application that will work on all popular smartphone, tablet, and desktop platforms. Device support






