Grundlæggende web design, ITU Torsdag d. 29 sept. 2005 Cascading Style Sheets.

Slides:



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

HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Cascading Style Sheets
/k/k 1212 Cascading Style Sheets Part one Marko Boon
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
Introducing CSS CIS 133 mashup Javascript, jQuery and XML 1.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
CSS Евгения Ковачева. BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 11pt; BACKGROUND: #ffffff; PADDING-BOTTOM:
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
HyperText Markup Language (HTML) Uses plain text to add markup instructions to a file. If you can't produce it with a standard keyboard, it can't go into.
Cascading Style Sheets Basics. Why use Cascading Style Sheets? Allows you to set up a series of rules for all pages in a site. The series may be changed.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
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.
1/18 ITApplications XML Module Session 5: Extensible Stylesheet Language (XSL)
CSS(Cascading Style Sheets )
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
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.
Unit 20 - Client Side Customisation of Web Pages
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.
CSS Cascading Style Sheets Brief Introduction
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
More CSS CS HTML id attribute 2 Coding Horror! Our mission is to combine programming and “human” factors with geekiness! output  A unique ID for.
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,
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
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.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets
CS3220 Web and Internet Programming CSS Basics
( Cascading style sheet )
Semester - Review.
Unit 3 - Review.
Creating Your Own Webpage
>> The “Box” Model
Cascading Style Sheets
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets 2
The Internet 10/13/11 The Box Model
CSS Borders and Margins.
Cascading Style Sheets Color and Font Properties
CS3220 Web and Internet Programming CSS Basics
CS3220 Web and Internet Programming CSS Basics
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
CS3220 Web and Internet Programming More CSS
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets
Presentation transcript:

Grundlæggende web design, ITU Torsdag d. 29 sept Cascading Style Sheets

3 måder at ændre styles på: for et html-element: (inline) for et html-dokument: (embedded) styles for en række html-dokumenter: (external) Hierarki

Selector(s) { property : value; etc. } Inline syntax: Embedded & External syntax:

Selectors: Eksisterende html elementer: body, p, td, h1... Egne klasser:.MinKlasse,.broedtext,.nyhedsboksen... Elementer med id: #topbarren, #menu1, #nyhedsboksen... f.eks. ( ) …

Pseudo klasser: a:link{ … } a:visited{ … } a:hover{ … } a:active{ … } Link Visited Hover Active => LoVe HAte Første elementer (som ikke alle browsere understøtter) : :first-letter{ … } :first-line{ … } :first-child{ … }

Flere selectors kan kommasepareres: body, table,.broedtekst, #topbarren{ property : value } … eller nestes så de er afhængige: #kolonne3.broedtekst.fed{ property : value } Og de kan raffineres løbende: body, tr, #kolonne3 { property : value } #kolonne3 { property2 : value }

Properties (og values): color : blue / #0000FF / RGB(0,0,255) font-size : 20px / 3cm / 12pt / 50% etc. (enhed SKAL angives efter tallet) font-family : Verdana, Arial, Helvetica, sans-serif text-align : left / right / center / justify text-decoration : none / underline / line-through background-color : red / #FF0000 / RGB(255,0,0) background-image : url(sti til billede) border : black solid 1px border-top-style : solid / dashed / dotted / double / groove padding-left : 10% margin-top : 15px