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

Slides:



Advertisements
Similar presentations
Ripasso. 2 Proprietà del testo body { font-family: Verdana, Geneva, Arial, sans-serif; } Ciao sans-serifserif.
Advertisements

LIS901N: Style sheet Thomas Krichel Style sheets Style sheets are the officially sanctioned way to add style to your document We will cover.
DREAMWEAVER ‘ANATOMY’ EXPLAINED.
Dr. Alexandra I. Cristea CSS Dr. Alexandra I. Cristea Source:
Session 10 Dynamic HTML: Cascading Style Sheets™ (CSS), Object Model and Collections Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
CSS Títol pàgina. CSS Títol "estil.css" );
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.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
Client-Side Internet and Web Programming
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
CSS(Cascading Style Sheets )
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} //
Measurement Many CSS properties (values within the declaration) require that you specify a unit of measurement, such as spacing between elements, border.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
Cascading Style Sheets (Formatting. Slide 2 Lecture Overview At this point, you have learned how and where to create styles You have not learned much.
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Cascading Style Sheets Cyndi Hageman. Applying a Style Sheet  In-line style – used within the HTML tag  Embedded Style Sheet – located in the HTML document.
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.
Cascading Style Sheets, pt 2 ECA 225 Applied Online Programming.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
WORKING WITH CASCADING
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
1 To Create an Internal Style Sheet 1. At the top of your HTML document, between the and tags type. 2. Type the name of the tag whose properties you wish.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
CSS Cascading Style Sheet CSS2 – CSS/P. The goal: see this site
Cascading Style Sheets (Formatting)
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets™ (CSS)
( Cascading style sheet )
Creating Your Own Webpage
Introducing :CSS Cascading Style Sheets in 5 Lessons.
UNIT-II CSS.
Cascading Style Sheet List Properties Box Properties Pseudoclass
>> The “Box” Model
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Cascading Style Sheets (Formatting)
کارگاه آموزشی توسعه وب بخش دوم - CSS ارائه: عباس نادری
3.5 Property Value Forms - There are 60 different properties in 7 categories: - Fonts - Lists - Alignment of text - Margins - Colors - Backgrounds - Borders.
CSS Applications to XML 19-Sep-18.
Cascading Style Sheet List Properties Box Properties Pseudoclass
CSS – Properties & Values
CS 174: Server-Side Web Programming February 7 Class Meeting
The Internet 10/13/11 The Box Model
Second CSS Lecture Applications to XML
CMPE 280 Web UI Design and Development September 4 Class Meeting
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
List Properties Box Properties Pseudoclass
Cascading Style Sheets
More CSS 22-Feb-19.
CMPE 280 Web UI Design and Development February 7 Class Meeting
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Lesson 5 Topic B – Basic Text & Fonts
Cascading Style Sheets
CSS Applications to XML 20-May-19.
CSS Applications to XML 3-Jul-19.
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
Cascading Style Sheets
Presentation transcript:

©Marco Ronchetti 2003 CSS Cascading Style Sheet CSS2 – CSS/P Nota: tratteremo solo le proprieta definite a livello di standard ed attualmente implementate sia da Netscape che da Explorer

©Marco Ronchetti 2003 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

©Marco Ronchetti 2003 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

©Marco Ronchetti 2003 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 dellelemento ex altezza estesa del font dellelemento

©Marco Ronchetti 2003 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

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

©Marco Ronchetti 2003 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

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

©Marco Ronchetti 2003 Wrapping text on an element Un testo molto molto molto molto molto molto lungo. Un testo molto molto molto molto molto molto lungo.

©Marco Ronchetti 2003 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

©Marco Ronchetti 2003 Caratteristiche avanzate Pseudo-elementi P:first-letter prima lettera P:first-line prima linea Pseudo-classi A:linkancore non visitate A:activeancore nellatto di essere cliccate A:visitedancore visitate

©Marco Ronchetti 2003 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

©Marco Ronchetti 2003 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

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