CSS Properties  Font  Color & Background  Text  List  Box Model  Visual Formatting Model (normal & float)  User Interface & Downloadable Font 

Slides:



Advertisements
Similar presentations
1 Dynamic HTML: Cascading Style Sheets™ (CSS). 2 Introduction Cascading Style Sheets (CSS) –Specify the style of your page elements –Spacing, margins,
Advertisements

Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
Working with Cascading Style Sheets
方框的CSS樣式.
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)
CASCADING STYLE SHEETS CSS. 2 What CSS means?  CSS is an extension to basic HTML that allows you to style your web pages.  It separates the part that.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Web Design & Development Cascading Style Sheets (CSS)
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Cascading Style Sheets Part 3 Fall, 2007 Modified by Linda Kenney Nov. 12, 2007.
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.
CSE CASCADING STYLE SHEETS CSS Faculty of Computer Science and Engineering.
Intro to Cascading Style Sheets IS 373—Web Standards Todd Will.
Lecture CSS: Cascading Style Sheets. What are Styles? Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics.
Cascading Style Sheets (CSS) Bartosz Sakowicz. CSS syntax Basic CSS syntax: selector { property:value } E.g.: P {font-family: Arial} H1 {font-size: 20pt}
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
CSS1-1 Cascading Style Sheets (CSS) Xingquan (Hill) Zhu
Cascading Style Sheets Example
Cascading Style Sheets CS3505. What are CSS? Method for adding style attributes consistently to HML tags Cascading because styles are applied in order.
Cascading Style Sheets Billy Toy Cascading Style Sheets Syntax review How to Implement style sheets Background properties Text properties.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 14 – Dynamic HTML: Cascading Style Sheets (CSS) Outline 14.1Introduction 14.2Inline Styles.
CSS Dvijesh Bhatt.
CSS Typography, Fonts, Spacing, Borders, Backgrounds, Opacity
1.NET Web Forms CSS: Style Sheets © 2002 by Jerry Post.
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.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Lecture # 33 Cascade Style Sheets (CSS). Cascade Style Sheets (CSS): Preserving a consistent “look and feel” of a website across multiple pages.
Class three: CSS review, backgrounds, font formatting, the box model.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
LITTLE BOXES Controlling size of boxes Box model for borders, margin and padding Displaying and hiding boxes.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
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 Part 3 Spring, 2008 Modified by Linda Kenney April 21, 2008.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
CHAPTER 2 CSS (Cascading Style Sheet). Topics Introduction Inline Styles Embedded Style Sheets Conflicting Styles Linking External Style Sheets Positioning.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
1 Introduction to Web Application Introduction to Cascading Style Sheet.
CSS Presentation CSS Typography, Fonts, Spacing, Borders, Backgrounds, Opacity Svetlin Nakov Technical Trainer Software University
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
Copyright © 2006, Jumail, FSKSM, UTM Slide 1 Cascading Style Sheets (CSS)
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Cascading Style Sheets.
CSS – Cascading Style Sheets
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
JavaScript and CSS
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
3/14/20161 Cascading Style Sheets Part 2 Modified by Linda Kenney April 5, 2011.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
03 CSS (Cascading StyleSheet) Р.Жавхлан МОНГОЛ УЛСЫН ИХ СУРГУУЛЬ Мэдээллийн технологийн сургууль Интернэт технологийн үндэс 2015 Намар.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
Welcome To Website Design, Hosting And Management Prepared By Webdev Solution ip ,223,96.
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
LEARNING CSS Techieweb Solutions Techieweb solutions.
Presentation transcript:

CSS Properties  Font  Color & Background  Text  List  Box Model  Visual Formatting Model (normal & float)  User Interface & Downloadable Font  Media Types  Visual Effects  Positioning Scheme

Font  font-family: p {font-family: Arial, Verdana, "Times New Roman"}  font-style: normal | italic p {font-style: italic}  font-variant: normal | small-caps p {font-variant: small-caps}  font-weight: normal | bold | bolder | lighter | 100–900 p {font-weight: bold} p {font-weight: 400}  font-size: xx-small | x-small | small | medium | large | x-large | xx-large font-size: larger | smaller font-size: | p {font-size: large} p {font-size: smaller} p {font-size: 200px} p {font-size: 150%}  font: [ || || ]? [/ ]? font: caption | icon | menu | message-box | small-caption | status-bar p {font: italic 12pt "Helvetica Nue", serif} p {font: bold italic large Palatino, serif} p {font: normal small-caps bold 120%/120% fantasy} p {font: x-large/20pt "new century schoolbook", serif} p {font: menu}

Teks  text-indent: | p {text-indent: 5em}  text-align: left | right | center | justify p {text-align: justify}  text-decoration: none | [ underline || overline || line-through || blink ] p {text-decoration: underline overline}  text-shadow: none | [ || ? ] h1 {text-shadow: 3px 3px 5px red}  text-transform: capitalize | uppercase | lowercase | none h1 {text-transform: capitalize}  letter-spacing: none | p {letter-spacing: 3px} p {letter-spacing: -1px}  word-spacing: none | p {word-spacing: 2em}  line-height: normal | | | p {line-height: 1.5}  white-space: normal | pre | nowrap p {white-space: pre}

Color & Background  color: p {color: red} p {color: #448F2C} p {color: rgb(255,0,0)} p {color: rgb(100%,50%,25%)} p {color: #f25}  background-color: | transparent body {background-color: transparent}  background-image: | none body {background-image: none} body {background-image: url(  background-repeat: repeat | repeat-x | repeat-y | no-repeat body {background-repeat: no-repeat}  background-attachment: scroll | fixed body {background-attachment: fixed}  background-position: [ | ]{1,2} background-position: [ top | center | bottom] || [ left | center | right] body {background-position: 50%} body {background-position: 200px 50%} body {background-position: center} body {background-position: right bottom}  background: [ || || || || ] body {background: url("chess.png") gray 50% repeat fixed }

List  list-style-type: disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-alpha | lower-latin | upper-alpha | upper-latin | none ul {list-style-type: circle}  list-style-image: | none ul {list-style-image: url(smiley.gif)}  list-style-position: inside | outside ul {list-style-position: inside}  list-style: || || ol {list-style: lower-alpha outside url(smiley.gif)} outside inside

Box Model (1)  margin-[top|right|bottom|left]: | | auto div {margin-top: 10px} div {margin-right: 20%} div {margin-bottom: -5px} div {margin-left: 20pt}  margin: [ | | auto ]{1,4} div {margin: 3em} div {margin: 1em 2em} div {margin: 5em 2em 3em} div {margin: 8em 4em 15em 10em}  padding-[top|right|bottom|left]: | | auto div {padding-top: 10px} div {padding-right: 20%} div {padding-bottom: -5px} div {padding-left: 20pt}  padding: [ | | auto ]{1,4} div {padding: 8em 4em 15em 10em}  border-[top|right|bottom|left]-width: thin | medium | thick | div {border-top-width: thin} div {border-right-width: 6px} div {border-bottom-width: 2em} div {border-left-width: 10}  border-width: {1,4} div {border-width: thin medium 10 20}

Box Model (2)

Box Model (3)  border-[top|right|bottom|left]-color: div {border-top-color: green}div {border-right-color: #ff66cc} div {border-bottom-color: rgb(0,128,0)}div {border-left-color: #ee3}  border-color: {1,4} | transparent div {border-color: green #ff66cc rgb(128,128,128) #ee3}  border-[top|right|bottom|left]-style: hidden | double | solid | dashed | dotted | ridge | outset | groove | inset | none div {border-top-style: double}div {border-right-style: solid} div {border-bottom-style: outsetdiv {border-left-style: dashed}  border-style: {1,4} div {border-style: solid dashed solid dotted}  border-[top|right|bottom|left]: || || div {border-top: solid red} div {border-right: thick double} div {border-bottom: red dashed blue} div {border-left: outset 10}  border: || || div {border: red solid 1}  width: | | auto img {width: 40%}  height: | | auto img {height: 100px}

Visual Formatting Model (normal & float)  display: inline | block | list-item | none p {display: block} b {display: inline} li {display: list-item} img {display: none}  float: left | right | none img {float: left}  clear: left | right | both | none img {float: left}

User Interface & Downloadble Font  cursor: [,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ] p {cursor : crosshair} p {cursor : url("mything.cur"), url("second.csr"), text}  color: ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText p {color: WindowText; background-color: Window}  Downloadable { font-family: "Robson Celtic"; src: url(" } H1 { font-family: "Robson Celtic", serif }

Media print { body {font-size: 10pt; background-color: white}.iklan.menu {display: screen { body {font-size: 12pt; background-color: screen, print { body {line-height: 1.2}} body {line-height: 1.2} Recognized medias : all, aural, braille, embossed, handheld, print, projection, screen, tty, tv

Visual Effects  overflow: visible | hidden | scroll | auto div {overflow: auto}  clip: | auto div {clip: rect(5px, 10px, 10px, 5px)}  visibility: visible | hidden div {visibility: hidden} overflow: auto clip: rect(5px, 10px, 10px, 5px) visibility: hidden

Positioning Scheme  position: static | relative | absolute | fixed div {position: absolute}  top|right|bottom|left: | | auto div {top: 50}  z-index: | auto div {z-index: 2} staticrelative absolute fixed