Introduction to Web Design CSS Reference

Similar documents
Introduction to Web Design CSS Reference

Appendix D CSS Properties and Values

Controlling Appearance the Old Way

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS Lecture 16 COMPSCI 111/111G SS 2018

CSS: The Basics CISC 282 September 20, 2014

Reading 2.2 Cascading Style Sheets

Cascading Style Sheet Quick Reference

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Cascade Stylesheets (CSS)

Three Ways to Use CSS:

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

COSC 2206 Internet Tools. CSS Cascading Style Sheets

CSS for Styling CS380

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

CSC 443: Web Programming

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

CSS Selectors. element selectors. .class selectors. #id selectors

CSS Cascading Style Sheets

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

Chapter 3 Style Sheets: CSS

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

escuela técnica superior de ingeniería informática

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

Web Development & Design Foundations with HTML5

HTML/XML. HTML Continued Introduction to CSS

Web Development & Design Foundations with HTML5

Lab Introduction to Cascading Style Sheets

CSS Box Model. Cascading Style Sheets

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

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

Fundamentals of Web Programming a

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

CSS Styles Quick Reference Guide

Adding CSS to your HTML

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

Assignments (4) Assessment as per Schedule (2)

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Introduction to Cascading Style Sheets

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

CSS.

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

CSS: Cascading Style Sheets

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

CSc 337 LECTURE 3: CSS

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

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

Web Design and Development Tutorial 03

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

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

ACSC 231 Internet Technologies

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:

> > > > Cascading Style Sheets basics

Chapter 12: FORMATTING TEXT

Cascading Style Sheets

By Ryan Stevenson. Guidebook #3 CSS

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

ID1354 Internet Applications

ITNP43: HTML Lecture 5

CSE 154 LECTURE 3: MORE CSS

CASCADING STYLESHEETS

Web Engineering CSS. By Assistant Prof Malik M Ali

Cascading Style Sheets (CSS)

To link to an external stylesheet, the link element is placed within the head of the html page:

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

HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.

Internet Programming 1 ITG 212 / A

Creating Layouts Using CSS. Lesson 9

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

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

Salvedicta. - Hans Selye CSC 210

ICT IGCSE Practical Revision Presentation Web Authoring

DAY 4. Coding External Style Sheets

Parashar Technologies HTML Lecture Notes-4

Zen Garden. CSS Zen Garden

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

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

Style Sheet Reference Guide

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

More CSS. <link href="filename" type="text/css" rel="stylesheet" /> CS380

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

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

CSC309 Programming on the Web week 3: css, rwd

CSC 337. Cascading Style Sheets. Marty Stepp, Rick Mercer

Lecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

HTML (Hyper Text Markup Language) CSS. (Cascading Style Sheets) HTML: problems with styles. HTML: styles. CSS: specifications.

CSS. (Cascading Style Sheets) HTML (Hyper Text Markup Language) HTML: styles. 07/07/2011(mar'09) A.Lioy - Politecnico di Torino ( ) F.

Creating and Building Websites


Faculty of Engineering Department of Computer Engineering. CSS Tutorial. Eng. Ahmed J. Alajrami

Transcription:

Inline Style Syntax: <selector style="property:value;"> Introduction to Web Design CSS Reference Example: <p style="color:red;">text</p> Internal Style Sheet Syntax: selector {property: value; Example: <head> <style type="text/css"> p { color: red; </style> </head> External Style Sheet Syntax: selector {property: value; Example (XHTML document): <head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> Example (CSS style sheet): p { color: red; Comment Syntax: /* This is a CSS comment. */

Shorthand Syntax: padding/margin: <all four sides> padding/margin: <top and bottom> <right and left> padding: <padding-top> <padding-right> <padding-bottom> <padding-left> margin: <margin-top> <margin-right> <margin-bottom> <margin-left> border: <border-width> <border-style> <border-color> (all four sides) Examples: padding: 10px; margin: 10px 5px; padding: 20px 10px 5px 15px; margin: 5px 10px 15px 0px; border: 2px solid black; Classes and IDs Syntax: #idname {property: value;.classname {property: value; Example: #idname { text-align: center;.classname { font-style: italic; <p id="idname" class="classname">text</p> CSS Cascade Rank: 1. Inline style (highest priority) 2. Internal style sheet (second priority) 3. External style sheet (third priority) 4. Web browser default (only if not defined elsewhere) CSS 2.1 Color Names and Hex Codes: White #FFFFFF Silver #C0C0C0 Gray #808080 Black #000000 Red #FF0000 Maroon #800000 Yellow #FFFF00 Olive #808000 Lime #00FF00 Green #008000 Aqua #00FFFF Teal #008080 Blue #0000FF Navy #000080 Fuchsia #FF00FF Purple #800080 Orange #FFA500

Web-Safe Fonts: Sans-serif: Arial Arial Black Century Gothic Comic Sans MS Lucida Sans Unicode Tahoma Trebuchet MS Verdana Serif: Book Antiqua Courier New Georgia Palatino Linotype Times New Roman Box Model:

CSS Property Description Common Values background-color background-image background-repeat border-collapse border-color border-style border-width border bottom clear color float font-family font-size font-style Sets the background color of the content and padding area of an element. Sets a background image for an element. By default, image will tile horizontally and vertically to fill the space available. Determines if background image tiles to fill the available space. Determines if table cells share a common border or maintain their own borders. Sets the color of the border of an element. Defines a paragraph of content with white space above and below the content. Sets the thickness of the border of an element. Shorthand property to set the border between an element s padding and margin. See Shorthand moves an element up from its default location. Discontinues elements from being displayed alongside floated elements, forcing them to the next empty line. Defines the color of text within an element. Determines if other elements will display alongside an element instead of below it. Sets a preference list of fonts to be used for affected text. If first choice is not available, second choice will be used, and so on. Specifies the font size of text. Determines if text is displayed in italics or not. <file location> no-repeat, repeat repeat-x, repeat-y collapse separate none, solid, dashed, dotted, double, inset, outset, groove, ridge thin, medium, thick <border width> + <border style> + <border color> none, both left, right none left right Arial, Tahoma, Verdana, Georgia, Times New Roman, sans-serif, serif <size in pixels> <size in percentage> xx-small, x-small, small, medium, large, x-large, xx-large italic normal

CSS Property Description Common Values font-weight height left margin padding position right text-align text-decoration top width z-index Determines if text is displayed in bold or not. Defines the vertical height of an element. moves an element right of its default location. Shorthand property to set the space between an element s border and outer edge. See Shorthand Shorthand property to set the space between an element s content and border. See Shorthand Determines the position of an element in a web document. Used in conjunction with bottom, top, right, and left properties. moves an element left of its default location. Determined the horizontal location of an element (not just text) on the page. Defines whether text has any special features. moves an element down from its default location. Defines the horizontal width of an element. Sets the visual priority of elements that overlap on the screen, determining which ones are on top of others. bold normal auto auto absolute, fixed, relative, static center, justify, left, right blink, line-through, none, overline, underline <integer>