11/6/13 MORE CSS!. TODAY’S AGENDA Review: float for positioning objects Review: CSS and color Introductions to: o CSS and images o CSS backgrounds o CSS.

Slides:



Advertisements
Similar presentations
 CSS Presentation and layout is based on the CSS Box Model.  The CSS Box Model states that every element on a page is a rectangular box.  This includes:
Advertisements

CS4370/6370 Web Development Cascading Style Sheets (CSS)
Web Design & Development Cascading Style Sheets (CSS)
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Style sheets can also affect the BODY. style4.css BODY {BACKGROUND-COLOR : white} H1 {COLOR : red; FONT-SIZE : 50; FONT-FAMILY : arial} H2 {COLOR : green}
Style sheets can also affect the body. style4.css body {background-color : white} h1 {color : red; font-size : 50; font-family : arial} h2 {color : green}
W EB S ITE L ECTURE C ASCADING S TYLE S HEETS. Cascading Style Sheets (CSS) Introduction CSS Objectives – Provide more control over web site content presentation.
CSS to Know And this is just the beginning. What to What?  Tags = regular HTML  Ids = #id, only one hashtag per page  Class =.class, many as you want.
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
CSS Dvijesh Bhatt.
HTML - Quiz #2 Attendance CODE:
Cascading style sheets (CSS)
CSCI N241: Fundamentals of Web Design Copyright ©2006  Department of Computer & Information Science Using the Box Model, & Elements.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Basics of Smarajit Dasgupta.
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
WRT235: Writing in Electronic Environments CSS Backgrounds, colors, fonts.
CSS in XHTML continued Please use speaker notes for additional information!
Doman’s Sections Information in this presentation includes text and images from
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
Class three: CSS review, backgrounds, font formatting, the box model.
Adding Graphics to Web Pages. CSS does not have any properties specifically aimed at formatting images Use properties you have already learned, i.e.,
Cascading Style Sheets in.NET Lilian Kiilu, Client/Server & Web Applications, Coms 463/563, Section 1pm, Fall 2005, November 16 th 2005.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
HTML - Quiz #2 Attendance CODE:
More CSS.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
Colors and backgrounds The following CSS properties will be explained: 1.color 2.background-color 3.background-image 4.background-repeat 5.background-attachment.
So far, we have looked at CSS selectors that correlate with HTML tags Now, we’ll see how you can define your own selectors using class and ID selectors.
DIV, Span, CSS.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
REEM ALMOTIRI Information Technology Department Majmaah University.
CIS234A Lecture 5 Instructor Greg D’Andrea. Font Styles Review Font-Family: generic family, font family Font-Size: em, pt, px, %, mm, cm, in Font-Style:
Colors and backgrounds The following CSS properties will be explained: 1.color 2.background-color 3.background-image 4.background-repeat 5.background-position.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
Microsoft Expression Web-Illustrated Unit F: Enhancing a Design with CSS.
CSS – Cascading Style Sheets
تقنيات الإنترنت وبرمجة الويب “ العملي “ أ. غادة الرواشدة 1 CSS Cascading Style Sheets.
Cascading Style Sheets Web Design Fairport High School.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Tutorial 4 Creating Page Layouts with CSS
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Advanced CSS. Display  Hiding an element can be done in two ways  display:none  Element is hidden and will no longer take up space on the page  Can.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Web Design (15) CSS Opacity, Link Colours & Background Images.
CIS234A Lecture 6 Instructor Greg D’Andrea. Span and Div The span and div elements are a generic means by which we can add structure to documents. The.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
Laying out Elements with CSS
Advanced CSS BIS1523 – Lecture 20.
Web Programming– UFCFB Lecture 11
Presentation transcript:

11/6/13 MORE CSS!

TODAY’S AGENDA Review: float for positioning objects Review: CSS and color Introductions to: o CSS and images o CSS backgrounds o CSS and fonts Activity: bring more style to your structure

REVIEW: CSS FLOAT Why do we use float? What, technically, does float do to objects? (think about the box model here)

FLOAT AND THE "INVERTED L" Which object was floated? Why? How did we change other objects to accommodate the floated object?

DISCUSS What DOM object is parent of everything? Can we style that parent object? Hint: yes, and everything today is related

REVIEW: CSS AND COLOR How do we write color declarations? What objects are affected by color? What three ways do we define color?

SHORT ACTIVITY: BACKGROUNDS Create a new HTML doc in ThimbleThimble Add the following to the document: o container with:  2 headers  5 paragraphs (enough to get a vertical scroll) o style tags for CSS

CSS FOR OBJECT BACKGROUNDS: COLOR Working with solid colors o style="background-color:red" o same methods for color as color declaration Apply a background color to your headers

CSS FOR OBJECT BACKGROUNDS: IMAGES Make an image the background of an object Can be applied to any object image -> css = image -> html Declaration: o background-image: url(VALUE); o VALUE can be absolute or relative path Give your container a background o _light.jpg _light.jpg

CSS FOR OBJECT BACKGROUNDS: IMAGES Background images repeat horizontally and vertically Control repetition: o background-repeat: VALUE; o Options: repeat | repeat-x | repeat-y | no-repeat Experiment on your background o set to repeat only horizontally o set to repeat only vertically

CSS FOR OBJECT BACKGROUNDS: IMAGES Define how a background scrolls Usually limited to non-repeating backgrounds Control attachment: o background-attachment: VALUE; o Options: scroll | fixed Experiment on your background o set background-repeat to no-repeat o background-attachment: fixed;

CSS FOR OBJECT BACKGROUNDS: IMAGES Position where a background image appears Control position: o background-position: VALUE; o Options: left, center, right, top, center, bottom o Choose both horizontal and vertical (eg left bottom) Experiment on your background o set background-repeat to no-repeat o background-position: top right;

CSS FOR OBJECT BACKGROUNDS: IMAGES Discuss: o use cases for background image vs  object  other objects o advantages / disadvantages of both methods

DISCUSS: STYLES background font margin padding use cases for all

REVIEW WHAT WE ALREADY KNOW: FONTS Why are fonts tricky on the web? Why can't we use Google Fonts in AFS? How does that limit our designs?

CSS AND FONTS Why are fonts tricky on the web? Why can't we use Google Fonts in AFS? How does that limit our designs? How have we transformed font already?

CSS AND FONTS font-weight: bold; font-style: italic; text-decoration: underline;

CSS AND FONTS: FONT-FAMILY Define the specific font you want Define "fallback" fonts - fonts to use if the browser can't find the ones you specified

ACTIVITY: GET TO WORK Begin implementing styles in your structure o background o font o color Consult existing design documents

FOR NEXT TIME Continue developing your landing pages Refine structures Apply visual styles Make sure to maintain separation of content from presentation

FOR NEXT TIME 30 CSS Selectors You Must Memorize CSS Pseudo-classes CSS3 Files (explore entire site) CSS3 Files Tool: CSS3 border-radiusCSS3 border-radius Tool: CSS3 GeneratorCSS3 Generator About Agile Development About Scrum

FOR NEXT TIME Develop rough work plan for next 3 sessions o Assess what you've done so far o What you need to do to finish your landing pages o Estimate how much work will be needed to build your sub-pages o Obstacles - what do you still need to learn to build your site? (e.g. implementing Twitter feeds) Be prepared to discuss your rough plan