Cascading Style Sheet (CSS)

Slides:



Advertisements
Similar presentations
LIS901N: Style sheet Thomas Krichel Style sheets Style sheets are the officially sanctioned way to add style to your document We will cover.
Advertisements

Cascading Style Sheets
CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Introduction to CSS.
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.
Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
กระบวนวิชา 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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Cascading Style Sheets
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 Cascading Style Sheets
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
WebD Introduction to CSS By Manik Rastogi.
CSS.
HTML WITH CSS.
CS3220 Web and Internet Programming CSS Basics
Cascading Style Sheets™ (CSS)
4.01 Cascading Style Sheets
( Cascading style sheet )
Creating Your Own Webpage
Introducing :CSS Cascading Style Sheets in 5 Lessons.
Introduction to CSS.
Cascading Style Sheets
Cascading Style Sheet (CSS)
Chapter 6 Cascading Style Sheets™ (CSS)
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
Using Cascading Style Sheets Module B: CSS Structure
Programming the Web using XHTML and JavaScript
Cascading Style Sheet (CSS)
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
3 Configuring Color & Text With CSS.
Introduction to CSS.
Cascading Style Sheet (CSS)
Cascading Style Sheets
Software Engineering for Internet Applications
CSS Style Sheets: Intro
Stylin’ with CSS.
Cascading Style Sheets Color and Font Properties
Cascading Style Sheets
محمد احمدی نیا CSS محمد احمدی نیا
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Web Development & Design Foundations with H T M L 5
Cascading Style Sheets™ (CSS)
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
CS3220 Web and Internet Programming CSS Basics
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Introduction to CSS.
CS3220 Web and Internet Programming CSS Basics
Lesson 5 Topic B – Basic Text & Fonts
Stylin’ with CSS.
Cascading Style Sheets
4.01 Cascading Style Sheets
Web Client Side Technologies Raneem Qaddoura
Cascading Style Sheets
Stylin’ with CSS.
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets™ (CSS)
CGS 3066: Web Programming and Design Fall 2019
Cascading Style Sheets
Presentation transcript:

Cascading Style Sheet (CSS) Introduction to CSS Inline Style Document-Level or Embedded Style External Style Font Properties Color and Background Properties Text Properties Filter Properties

Introduction to CSS Style Sheet is an advanced way of presenting things; It embellishes the appearance of tags. What makes CSS better? Management is easier. CSS effects multiple tags and documents. Thus, reducing writing extra code. Access to features that HTML doesn’t allow us to do

Introduction to CSS (Continued…) Three methods of using CSS Inline Style Document-level Style External Style

Inline Style Uses style attribute, list of style properties, and its values with any tag. Allows maximum control over precise tag Difficult to maintain Usage: <tagname style=“property1:value1; property2:value2”> <h1 style=“color: blue;text-indent:20px;”>header</h1>

Document-Level or Embedded Style Enclosed between the head tag, type starting <style> and ending </style> tag Allows control of full document. Effects multiple tags of the same tag element, except for tags that contain inline style.

Document-Level or Embedded Style tagname {property1:value1;property2:value2;} <head> <style type=“text/css”> <!-- h1 {color:red;text-indent:20px;} --> </style> </head> <body> <h1>header </h1> <h1>header again</h1> </body> Effects both text since it uses h1 tag

External Style Allows one Style Sheet to effect multiple documents Write Style Sheet in a separate file and connect to it. Save it with .css extension. Use link tag to connect to External Style Sheet <head> <link type=“text/CSS” rel=“Stylesheet” href=“file.css”> </head>

Font Properties font-family: name font-style: normal, italics, oblique font-weight: normal, bolder, lighter, 100 - 900 font-size: xx-small, x-small, etc. (numbers, %) font: shorthand for all the font properties mentioned above

Color and Background Properties color: name, hexadecimal value, rgb(rv, gv, bv) background-color: name, hexadecimal value, rgb(rv, gv, bv) background-image: url(filename.gif”) background-repeat: repeat-x, repeat-y, repeat, none background: shorthand for all the properties in this category

Text Properties text-decoration: underline, line-through, none text-transform: capitalize, uppercase, lowercase text-align: right, left, center text-indent: number line-height: number vertical-align: top, bottom, middle, etc. (percentage value)

Filter Properties filter: glow(color=name, strength=number) filter: gray( ) filter: alpha(opacity=number) filter: shadow(color=name, direction=degree)