COMS 359: Interactive Media

Similar documents
COMS 359: Interactive Media

Assignments (4) Assessment as per Schedule (2)

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

CSS Cascading Style Sheets

Chapter 3 Style Sheets: CSS

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

CSS: Cascading Style Sheets

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

CSS Cascading Style Sheets

2. Write style rules for how you d like certain elements to look.

INTRODUCTION TO HTML5! CSS Styles!

CSS: The Basics CISC 282 September 20, 2014

BIM222 Internet Programming

Introduction to WEB PROGRAMMING

Cascading Style Sheets Level 2

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

CSS - Cascading Style Sheets

Web Design and Development ACS-1809

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

ITNP43: HTML Lecture 4

COMS 359: Interactive Media

The Benefits of CSS. Less work: Change look of the whole site with one edit

the missing manual0 O'REILLY Third Edition David Sawyer McFarland Beijing Cambridge The book that should have been in the box Farnham

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

CSS: Lists, Tables and the Box Model

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Web Engineering CSS. By Assistant Prof Malik M Ali

CSS.

HTML and CSS COURSE SYLLABUS

CSC309 Programming on the Web week 3: css, rwd

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Which is why we ll now be learning how to write in CSS (or cascading sheet style)

Lab Introduction to Cascading Style Sheets

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Styles, Style Sheets, the Box Model and Liquid Layout

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Web Design and Development Tutorial 03

Html basics Course Outline

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2

8a. Cascading Style Sheet

Designing for Web Using Markup Language and Style Sheets

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

MEXICO 2015, ilab XALAPA

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

Appendix D CSS Properties and Values

2005 WebGUI Users Conference

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

AGENDA. HTML CODING YOUR HOMEPAGE [ Part IV ] :: NAVIGATION <nav> :: CSS CODING FOR HOMEPAGE [ <nav> & child elements ] CLASS :: 13.

Zen Garden. CSS Zen Garden

Deccansoft Software Services

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

Certified CSS Designer VS-1028

CSS. Shan-Hung Wu CS, NTHU

APPLIED COMPUTING 1P01 Fluency with Technology

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

CSS: Cascading Style Sheets

ICT IGCSE Practical Revision Presentation Web Authoring

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

CS193X: Web Programming Fundamentals

CSS. Location, Inheritance & the Cascade. Copyright DevelopIntelligence LLC

Using CSS for page layout

ID1354 Internet Applications

Cascading Style Sheet

Website Design (Weekday) By Alabian Solutions Ltd , 2016

CSS Module in 2 Parts

Shane Gellerman 10/17/11 LIS488 Assignment 3

Ministry of Higher Education and Scientific Research

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 3 Introduction to CSS

COMSC-031 Web Site Development- Part 2

Web Design and Development ACS Chapter 11. Creating Lists 11/16/2017 1

Data Visualization (CIS/DSC 468)

Cascading Style Sheets (CSS)

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Block & Inline Elements

Creating and Building Websites

Client-Side Web Technologies. CSS Part I

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Cascading Style Sheets. Overview and Basic use of CSS

Reading 2.2 Cascading Style Sheets

This tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.

CSS 1: Introduction. Chapter 3

Data Visualization (DSC 530/CIS )

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Web Publishing Basics I

Designing the Home Page and Creating Additional Pages

Website Design (Weekend) By Alabian Solutions Ltd , 2016

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Chapter 3 Attractive Web Designing

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

The Importance of the CSS Box Model

Cascading Style Sheets CSCI 311

Website Development with HTML5, CSS and Bootstrap

Transcription:

COMS 359: Interactive Media

Agenda Review CSS Preview

Review Transparent GIF headline

Review JPG buttons button1.jpg button.psd button2.jpg

Review Next Step Tables CSS

Introducing CSS What is CSS? Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language like HTML. Provides more flexibility and control in the specification of presentation characteristics, enables multiple pages to share formatting, and reduces complexity and repetition.

Introducing CSS The key to understanding how CSS works is to imagine that there is an invisible box around every HTML element.

Introducing CSS Two kinds of elements: Block Elements that always start a new line <h1> <p> <ul> Inline Elements that continue on the same line <b> <i> <u> Relationships: Parent Elements that contains other elements <body> Child Elements that are contained by other elements <p> <ul> <li>

Introducing CSS CSS allow you to create rules that control the way that each individual box (and the contents of that box) is presented

Introducing CSS body {font-family: arial} h1 {color: #ff4400; font-size: 70px} p {color: #888888} b {color: #990000; font-size: 30px}

Introducing CSS

CSS Selectors Introducing CSS html element selector Matches the name of the html element, i.e. BODY, H1, P, B, etc.

Introducing CSS CSS Selectors class selector Matches an element whose class attribute has a value that matches the one specified after the period *Class names are arbitrary

Introducing CSS CSS Selectors id selector Matches an element whose id attribute has a value that matches the one specified after the # sign

Introducing CSS CSS Selectors child selector Matches an element that is the direct child (decendent) of another element. [ ]

Introducing CSS CSS Selectors descendent selector Matches an element that is the descendent of another specified element (not just a direct child). [ ]

Introducing CSS Inheritance: Properties of the parent element (i.e. <body>) extend to or are inherited by the child elements (i.e. <p> <ul> <li>). But properties of the child elements do not extend to the parent element.

Introducing CSS Three locations for style information External Style Sheet Document-level Style style Attribute

Introducing CSS 1. External Style Sheet

Introducing CSS 2. Document-Level Style Sheet Style Sheet Syntax 1. <style> container tag is situated in the <head>; it has the attribute type, which takes the value text/css 2. Specify the elements you want to effect body, h1, p 3. Enclose properties and values in braces { }; acceptable properties and their values are listed in the book. 4. Properties are associated with values by using a colon : 5. Property/value pairs are separated by a semi-colon ;

Introducing CSS 3. Tag-Level Style Attribute Style Syntax 1. Add style attribute to opening HTML container tag 2. Attribute is associated with style properties by using = 3. Style properties associated with values by using a colon : 4. Property/value pairs are separated by a semi-colon ;

Introducing CSS You can combine all three external style sheets document-level style sheets tag-level style information Different style designations are arranged in a priority or cascading hierarchy cascading style sheets (CSS)

Introducing CSS

Exercise 1 http://gunkelweb.com/coms359/lorem.html

Exercise 1 http://gunkelweb.com/coms359/lorem.html Internal Style Sheet Add a <style> element to the <head> of the document Specify selectors and property:values using CSS syntax

Exercise 1 http://gunkelweb.com/coms359/lorem.html

Exercise 2 http://gunkelweb.com/coms359/lorem.html External Style Sheet Cut what you just wrote (but without the <style> tags); Delete the <style> tags. Return the document to its original form

Exercise 2 http://gunkelweb.com/coms359/lorem.html External Style Sheet Cut what you just wrote (but without the <style> tags); Delete the <style> tags. Return the document to its original form

Exercise 2 http://gunkelweb.com/coms359/lorem.html External Style Sheet Open an new document and paste what you cut. Save this new document as stylesheet.css (save it in the same place as your html document)

Exercise 2 http://gunkelweb.com/coms359/lorem.html External Style Sheet Add a <link> tag to your html document. This tag references the style sheet document. Three attributes: href indicates the file name type indicates the kind of file rel indicates the relationship

Exercise 2 http://gunkelweb.com/coms359/lorem.html

Introducing CSS Why use an external style sheet? Separate content from design Apply consistent style to multiple pages Save time; reduce code writing

CSS Boxes CSS Box Model Every html element resides in its own virtual box. Use CSS to alter the features and appearance of these boxes: width, height, background color, border, margin, padding, etc.

background-color

width & height

min-width & max-width Min-width Specifies the smallest size a box can be displayed when the browser window is narrow Max-width Specifies the largest size a box can be displayed when the browser window is wide

min-height & max-height Problem The min-height of the box is smaller than the contents of the box. So the contents spill outside the box.

Fix 1 - overflow:hidden

Fix 2 - overflow:scroll

Exercise Modify your CSS document

Continue with CSS Preview margin, border & padding CSS layout