CS134 Web Design & Development

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Today CSS HTML A project.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Cascading Style Sheets Controlling the Display Of Web Content.
4.01 Cascading Style Sheets
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
The Characteristics of CSS
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
CSS Basic (cascading style sheets)
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Introduction to Cascading Style-sheets (CSS) Basharat Mahm ood, Department of Computer Science, CIIT,Islamabad, Pakistan 1.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
CSS.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
Getting Started with CSS
4.01 Cascading Style Sheets
( Cascading style sheet )
>> Introduction to CSS
Introduction to CSS.
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
>> CSS Rules Selection
Cascading Style Sheets
Cascading Style Sheets (Layout)
Intro to CSS CS 1150 Fall 2016.
CASCADING STYLE SHEET CSS.
Filezilla problems continuing
IS333: MULTI-TIER APPLICATION DEVELOPMENT
CSS Cascading Style Sheets
Website Design 3
Cascading Style Sheets - Building a stylesheet
Introduction to CSS.
Intro to CSS CS 1150 Spring 2017.
CSS.
Software Engineering for Internet Applications
DynamicHTML Cascading Style Sheet Internet Technology.
Web Programming– UFCFB Lecture 11
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
Cascading Style Sheets™ (CSS)
DynamicHTML Cascading Style Sheet Internet Technology.
Training & Development
Web Design and Development
CSS.
Introduction to CSS.
Web Design & Development
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Cascading Style Sheets III B. Com (Paper - VI) & III B
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz

Styles provide powerful control over the presentation of web pages. What is CSS? Cascading Style Sheets (CSS): is a simple mechanism for adding style (e.g. fonts, colors, layouts) to Web documents. Styles provide powerful control over the presentation of web pages.

A style sheet consists of a set of rules. Internal Style Sheet A style sheet consists of a set of rules. Each rule consists of one or more selectors and a declaration block. A declaration block consists of a list of declarations in curly braces ({}). Each declarations consists of a property, a colon (:), a value, then a semi-colon (;).

Style Sheet Syntax Explained selector property value rule

Three Different Scopes of CSS Local confined to a single element Internal affect elements in an entire page External can affect multiple pages Precedence Local > Internal > External The term cascading comes from the effect of the way the different styles are applied when more than one exists.

Local Style Sheet Example <h1 style="color:white; background:orange; font-weight:bold;">Internal Style Sheet Applied to Header 1</h1> Practice add “text-align” property to make it centered add “border” property to let it has black, 1px thick, solid border at left, right, top, and bottom Tip: use “border: xx yy zz;” format for 4 sides; use “border-<side>: xx yy zz;” for a particular side, where <side> can be left, right, top or bottom. Can apply to other similar properties.

Internal Style Sheet How to create? Put <style> </style> tag between <head> and </head> tags of your HTML page Use type attribute to indicate the style sheet type, usually type=“text/css” Specify a default style sheet language for the whole document by <meta http-equiv="Content-Style-Type" content="text/css" /> Put your set of style sheet rules in between <style> and </style> tags

Internal Style Sheet Practice Create same style in the example in the local style sheet section, but using internal style sheet instead.

How to link to external style sheet? An external style sheet is simply a text-only file that contains only CSS rules. How to link to external style sheet? <link href=“URL of CSS File" rel="stylesheet" type="text/css" /> Practice Create a file called “mystyle.css” and do the example in local style sheet, but as external style sheet