COMS 359: Interactive Media

Similar documents
COMS 359: Interactive Media

CSS for Page Layout Robert K. Moniot 1

Web Engineering CSS. By Assistant Prof Malik M Ali

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

TAG STYLE SELECTORS. div Think of this as a box that contains things, such as text or images. It can also just be a

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

Introduction to WEB PROGRAMMING

12/9/2012. CSS Layout

Block & Inline Elements

CSS Layout Part I. Web Development

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

CSS Cascading Style Sheets

Styles, Style Sheets, the Box Model and Liquid Layout

Creating Layouts Using CSS. Lesson 9

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

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

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES

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

Positioning in CSS: There are 5 different ways we can set our position:

Web Design and Development Tutorial 03

Cascading Style Sheets CSCI 311

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

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

There are 3 places you can write CSS.

CSS: Cascading Style Sheets

BIM222 Internet Programming

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

NAVIGATION INSTRUCTIONS

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

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

Module 2 (VII): CSS [Part 4]

The Importance of the CSS Box Model

CSS Box Model. Cascading Style Sheets

Assignments (4) Assessment as per Schedule (2)

Web Design and Development ACS-1809

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

CSS worksheet. JMC 105 Drake University

Certified CSS Designer VS-1028

Web Design and Implementation

ADOBE 9A Adobe Dreamweaver CS4 ACE.

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

Web Authoring and Design. Benjamin Kenwright

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

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

Ministry of Higher Education and Scientific Research

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids.

Getting Started with CSS Sculptor 3

CSS Cascading Style Sheets

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Responsive Web Design. From: Ethan Marcotte - Responsive Web Design 2011

Appendix D CSS Properties and Values

2005 WebGUI Users Conference

CSS: The Basics CISC 282 September 20, 2014

HTML and CSS COURSE SYLLABUS

IMY 110 Theme 6 Cascading Style Sheets

Introduction to Cascading Style Sheet (CSS)

CSC309 Winter Lecture 2. Larry Zhang

Chapter 3 Style Sheets: CSS

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

Creating HTML files using Notepad

HTML Organizing Page Content

CSS.

COMS 359: Interactive Media

HTML and CSS a further introduction

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

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

Page Layout Using Tables

Website Development (WEB) Lab Exercises

COMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS

FLOATING AND POSITIONING

Web Site Design and Development Lecture 9. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

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

Building Page Layouts

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

YouTube Break.

Website Design (Weekday) By Alabian Solutions Ltd , 2016

Using Dreamweaver CS6

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Using CSS for page layout

Produced by. Web Development. Eamonn de Leastar Department of Computing, Maths & Physics Waterford Institute of Technology

Navigation. Websites need a formalized system of links to allow users to navigate the site

CSS Module in 2 Parts

Designing the Home Page and Creating Additional Pages

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

Getting Started with Eric Meyer's CSS Sculptor 1.0

CSC309 Programming on the Web week 3: css, rwd

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

THE HITCHHIKERS GUIDE TO HTML

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

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

EECS1012. Net-centric Introduction to Computing. Lecture 5: Yet more CSS (Float and Positioning)

Create a three column layout using CSS, divs and floating

Internet Programming 1 ITG 212 / A

Deccansoft Software Services

Lab Introduction to Cascading Style Sheets


Website Design (Weekend) By Alabian Solutions Ltd , 2016

Website Development with HTML5, CSS and Bootstrap

Transcription:

COMS 359: Interactive Media

Agenda Review CSS Layout Preview

Review Introducting CSS What is CSS? CSS Syntax Location of CSS The Cascade Box Model Box Structure Box Properties

Review

Style is cascading when there is an established precedence among different ways of specifying style specifications; this precedence is established by the W3C Review

Internal Style Sheet Add a <style> element to the <head> of the document Specify selectors and property:values using CSS syntax

External Style Sheet

Review 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.

Review Properties background-color width height min-width max-width min-height max-height overflow

Continue with CSS Today margin, border & padding CSS layout

Every CSS box has three properties that can be adjusted to control its appearance: - Border - Margin - Padding

CSS - Box Model Padding Empty space around the page element

Border Outside edge of the page element

Margin Empty space around the box

Border Properties

border-style img {border-style:solid}

border-width img {border-style:solid; border-width:30px} Note: In order for border-width to work you must first specify a border. You do this by using border-style

border-color img {border-style:solid; border-width:30px; border-color:#338800} Note: In order for border-color to work you must first specify a border. You do this by using border-style

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

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

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

Padding Properties

Margin Properties

padding: 50px margin:30px

Exercise 2 add padding and margin

Shorthand notation Values are in clockwise order: top, right, bottom, left

display The display property allows you to turn an inline element into a block level element or vice-versa.

display:inline Causes a block-level element to act like an inline element display:block Causes an inline element to act like a block-level element display:inline-block Causes a block-level element to flow like an inline element, while retaining other features of a block-level element display:none Causes an element to be hidden and not displayed

Exercise 3 alter the display of the <li> element

CSS Layout Options for Page Layout Project #1 Project #2 <table> CSS positioning

Positioning Schemes CSS Layout Lorem Ipsum Lorem Ipsum Lorem Ipsum Normal Flow Every block element appears on a new line. New elements move down the page and do not flow around to the side. (default positioning) Relative Position Moves an element to a new position defined in relation to where it would have sat in the normal flow of things. Absolute Position Box is taken out of normal flow and no longer affects the position of the other elements on the page.

Positioning Schemes CSS Layout Lorem Ipsum Lorem Ipsum Fixed Position A form of absolute positioning that positionis the element in relation to the browser window. Stays in the same fixed place when the user scrolls up or down the page. Float Takes an element out of the normal flow and allows subsequent elements to flow along side them. Useful for multiple columns.

Exercise 4 Use float to position elements side-by-side Normal Flow Float

Exercise 4 Use float to position elements side-by-side 1. <link> Add a <link> tag to the basic HTML document. Set the value of the href to stylesheet4.css

2. Stylesheet Make a new CSS document. Save as stylsheet4.css

Apply float:left to all <p> elements. This will float each paragraph to the left and flow the rest of the page elements around to the right. In effect, this will produce three columns of text, since the body is 900px wide and each of the three paragraphs are 260px. Apply clear:left to the <h5> footer element. This will prevent the footer from flowing around to the right of the floated <p> elements and return it to normal flow positioning.

Exercise 5 Use absolute positioning to get same layout 1. <link> Add a <link> tag to the basic HTML document. Set the value of the href to stylesheet5.css

Exercise 5 Use absolute positioning to get same layout 2. Class Attributes Add a class attribute to each of the <p> tags. The values of this attribute will be: column1, column2 and column3

3. Stylesheet Make a new CSS document. Save as stylsheet5.css No change to the first four elements: body, h1, li, a

Add classes for.column1.column2.column3 Use absolute positioning

Add absolute positioning to the <h5> element

Project #2 Deliverables Jump Drive Online Label Preview Name Email Address Name of first file or URL