CSS Cascading Style Sheet CSS2 – CSS/P. The goal: see this site

Slides:



Advertisements
Similar presentations
©Marco Ronchetti 2003 CSS Cascading Style Sheet CSS2 – CSS/P Nota: tratteremo solo le proprieta definite a livello di standard ed attualmente implementate.
Advertisements

Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Today CSS HTML A project.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
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.
9-May-15 More CSS. 2 A different emphasis CSS is the same for XML as it is for HTML and XHTML, but-- XML contains no display information If you want your.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Cascading Style Sheets Controlling the Display Of Web Content.
Cascading Style Sheets Controlling the Display Of Web Content.
4.01 Cascading Style Sheets
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
14-Jul-15 CSS Applications to XML. 2 A different emphasis CSS is the same for XML as it is for HTML, but-- HTML already does a pretty good job of layout.
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.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
Website Development & Management Working with Style Rules Instructor: John Seydel, Ph.D. CIT Fall
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
CO1552 – Web Application Development Cascading Style Sheets.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
Cascading Style Sheets Objective: Create an external style sheet, embedded style sheet, and an inline style to change the look and feel of a web site.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
Copyright © 2006, Jumail, FSKSM, UTM Slide 1 Cascading Style Sheets (CSS)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
CIS234A Lecture 5 Instructor Greg D’Andrea. Font Styles Review Font-Family: generic family, font family Font-Size: em, pt, px, %, mm, cm, in Font-Style:
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
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.
S.MD.FAROOQ M.Tech., [Ph.D] Assistant Professor Department of CSE Santhiram Engineering College.
Internet & World Wide Web How to Program, 5/e 1. 2.
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
CSS Box Model.
CSS Box Model.
The Box Model in CSS Web Design – Sec 4-8
Cascading Style Sheets™ (CSS)
4.01 Cascading Style Sheets
( Cascading style sheet )
The Box Model in CSS Web Design – Sec 4-8
Creating Your Own Webpage
CSS Rule Selector Declaration Block Value Attribute Name body {
Madam Hazwani binti Rahmat
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
CSS Applications to XML 19-Sep-18.
Styles and the Box Model
Second CSS Lecture Applications to XML
CSS Box Model.
DynamicHTML Cascading Style Sheet Internet Technology.
DynamicHTML Cascading Style Sheet Internet Technology.
More CSS Page layout Boriana Koleva Room: C54
More CSS 22-Feb-19.
Part 1: Cascading Style Sheets
CSS.
CSS Box Model.
Web Design & Development
Cascading Style Sheets
4.01 Cascading Style Sheets
CSS Applications to XML 20-May-19.
CSS Applications to XML 3-Jul-19.
Cascading Style Sheets™ (CSS)
Presentation transcript:

CSS Cascading Style Sheet CSS2 – CSS/P

The goal: see this site

Style: definizione locale primo capitolo nel mezzo del cammin di nostra vita secondo capitolo mi ritrovai per una selva oscura terzo capitolo che la diritta via m'era smarrita

Style: definizione di uno stile di pagina h1 {color:blue;} primo capitolo nel mezzo del cammin di nostra vita secondo capitolo mi ritrovai per una selva oscura terzo capitolo che la diritta via m'era smarrita

Style: definizione di uno stile condiviso <link rel="StyleSheet" type="text/CSS" href="../common/lodeStyles.css" > primo capitolo nel mezzo del cammin di nostra vita secondo capitolo mi ritrovai per una selva oscura terzo capitolo che la diritta via m'era smarrita

Style: stile condiviso - documentazione A single style may also be given through multiple style sheets: <LINK REL=StyleSheet HREF="basics.css" TITLE="Contemporary" TYPE="text/css"> <LINK REL=StyleSheet HREF="tables.css" TITLE="Contemporary" TYPE="text/css"> <LINK REL=StyleSheet HREF="forms.css" TITLE="Contemporary" TYPE="text/css"> In this example, three style sheets are combined into one "Contemporary" style that is applied as a preferred style sheet. To combine multiple style sheets into a single style, each style sheet's LINK must use the same TITLE.

Style: stile condiviso - documentazione Authors can also use the LINK element to apply an external style sheet. REL=StyleSheet specifies a persistent or preferred style while REL="Alternate StyleSheet" defines an alternate style. A persistent style is one that is always applied when style sheets are enabled. The absence of the TITLE attribute indicates a persistent style. A preferred style is one that is automatically applied. The combination of REL=StyleSheet and a TITLE attribute specifies a preferred style. Authors cannot specify more than one preferred style. An alternate style is indicated by REL="Alternate StyleSheet". The user could choose to replace the preferred style sheet with an alternate one, though current browsers generally lack the ability to choose alternate styles.

Elementi di formattazione color:color background-color:color background-image:uri font-family:name font-size:xx-small|x-small|small|medium|large|x-large|xx-large| larger|smaller|absoluteSize|relativeSize|percentage|lenght font-style:normal|italic font-weight:bold|bolder|lighter|normal|100|200|...|800|900

Unita’ di lunghezza LUNGHEZZE ASSOLUTE: Sistema Internazionale cm centimetri mm millimetri Unita’ anglosassoni in inch (pollici) pt point:1/72 pollice pc pica:12 point=1/6 pollice System dependent: px pixel LUNGHEZZE RELATIVE: em altezza del font dell’elemento ex altezza estesa del font dell’elemento

Elementi di formattazione line-height:normal|length|percentage text-align:left|center|right|justify text-decoration:blink|line=through|overline|underline text-indent:lenght|percentage text-transform:none|capitalize|uppercase|lowercase

Esempio di cascata di stili p {font-size:24pt;color:green; border-width:thick;border-style:ridge; border-color:red} p.red {color:red} Pippo Pluto <p class="red" style="font-size:12pt; background:yellow">Topolino

Elementi di formattazione Element width Element height Box top Box left Box width Box height Margin Space (transparent) Border Space Padding Space Content Space

Elementi di formattazione border-bottom-width,border-top-width, border-right-width,border-left-width:thin|medium|thick|n border-color:color border-style:double|groove|none|inset|outset|ridge|solid border-width:thin|medium|thick|length margin:thickness margin-bottom,margin-left,margin-right,margin-top :thickness padding :thickness padding-bottom,padding-left,padding-right,padding-top :thickness

Elementi di formattazione - liste line-style:decimal|lower-alpha|lower-roman|upper-alpha|upper-roman line-style:circle|disc|square

Caratteristiche avanzate Selettore di adiacenzaH1+H2 {color:blue} I blocchi H1 e H2 consecutivi Selettore Padre-figlioBODY > P{color:red} I Paragrafi direttamente contenuti nel BODY Selettore di attributoP[ALIGN]{color:red} Individua solo i P[ALIGN=“left”]{color:red} Individua solo i *[ALIGN=“left”]{color:red} Individua solo qualunque tag con attributo ALIGN=“left”

Caratteristiche avanzate Pseudo-elementi P:first-letter prima lettera P:first-line prima linea Pseudo-classi A:linkancore non visitate A:activeancore nell’atto di essere cliccate A:visitedancore visitate

Esempio di posizionamento: CSS-P #aposition{position:relative;left:30;top:20} a {color:red} p {font-size:24pt;color:green;border-width:thick; border-style=ridge;border-color=red} p.red {color:red} Pippo <div style="background:orange;border-color=green; position:absolute;left:100;top:150"> Pluto <p class="red" style="font-size:12pt; background-color:yellow">Topolino

Elementi posizionabili – CSS/P Specificazione del tipo di posizionamento: position:absolute|relative Specificazione della posizione: top:size left:size Specificazione della dimensione: width:size height:size Specificazione del tipo di visibilita’: visibility:hidden|inherit|show

Elementi posizionabili – CSS/P Clip:rect(top right bottom left) Taglia un elemento lasciandolo al suo posto z-index:n stabilisce l’ordine di visualizzazione degli elementi sovrapposti