Files you will need ... Black Goose Bistro Summer Menu

Slides:



Advertisements
Similar presentations
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Advertisements

Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Web Development & Design Foundations with HTML5
Technologies for web publishing Ing. Václav Freylich Lecture 6.
1 CSS Styling with Fonts and Colors. 2 CSS Cascading Style Sheets and fonts CSS provides Style or Presentation options for our html pages CSS properties.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
© 2007 D. J. Foreman CSS-1 Cascading Style Sheets Styles.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 09: Cascade Style Sheets - Spring 2011.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
Typography.  Introduction to Typography  Font Collections ▪ Serif ▪ They have small strokes at the end of the character strokes ▪ Ex: Times New Roman,
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
Class three: CSS review, backgrounds, font formatting, the box model.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Cascading Style Sheets (css) HTML and css 2012 Brian Davison.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
Introduction to CSS CSS Fonts - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Font Control Instructor: Joseph DiVerdi, Ph.D.,
Text and Fonts in CSS. Customizing fonts In CSS, fonts are divided into “font families” Only certain fonts are commonly installed on most computers Therefore.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Fonts The following CSS properties will be described: 1.Font-family 2.Font-style 3.Font-variant 4.Font-weight 5.Font-size 6.Font.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
CSS with XHTML Please use speaker notes for additional information!
Cascading Style Sheets
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
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.
1 Web Development CSS (Cascading Style Sheet). 2 1.Setting rules for multiple elements To decrease the amount of typing for setting rules for multiple.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
Developing Web Applications with HTML and CSS “Selectors and Properties”
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
Style Sheets. Coding Style Sheets  Style sheets use RULES to create the style  A selector (a tag or user-defined style name)  and then declarations.
CSS Cascading Style Sheets *referenced from
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
CSCE Chapter 3 (Cascading Style Sheets) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.
Formatting with Styles. Choosing a Font Family font-family property has a special characteristics: you can specify more than one font h1, h2 {font-family:”Arial.
CSS DHS Web Design. Location Between the & Start with – End with –
Cascading Style Sheets Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents Dr. Irwan Sembiring,ST.,M.Kom.
The Internet 10/11/11 Fonts and Colors
Presentation transcript:

Files you will need ... Black Goose Bistro Summer Menu Formatting Text in CSS Files you will need ... Black Goose Bistro Summer Menu

Core Web Fonts from Microsoft Serif – Georgia, Times New Roman Sans Serif – Arial, Arial Black, Trebuchet MS, Verdana Monospace – Courier New, Andale Mono Miscellaneous – Comic Sans, Impact, Webdings

Formatting the Summer Menu We are going to use an embedded style sheet for this exercise. <head> <title> Black Goose Bistro </title> <style type=“text/css”> </style> </head>

Formatting the Summer Menu continued... Lets have all the text on the page to appear in Verdana or some other sans-serif font. Instead of writing a rule for every element in the document, we will write one rule for the body element. <style type=“text/css”> body {font-family: Verdana, sans-serif; } </style>

Formatting the Summer Menu continued... It would be nice if the body text for the document appear smaller than the common 16 pixel default. We will set the size of the body to small, which renders approximately 12 pixels. body {font-family: Verdana, sans-serif; font-size: small}

Formatting the Summer Menu continued... Now, lets get the giant h1 under control. Lets make it one and a half times larger than the body text size with the em measurement. h1 { font-size; 1.5em; }

Formatting the Summer Menu continued... Lets make all of the menu item names to be in bold text. dt { font-weight: bold; } Because the menu items are now bold, lets make the strong elements stand out by being italic. strong { font-style: itazlic; }

Formatting the Summer Menu continued... Now lets change the first level headings (h1) to small caps so we can try the font-variant property. h1 { font-size: 1.5em; font-variant: small-caps;}

Formatting the Summer Menu continued... Lets make h2 headings bold, Georgia (serif) typeface to stand out from the surrounding text. We also want it to be 1.2 times larger than the body font. h2 { font: bold 1.2em Georgia, serif; }

Formatting the Summer Menu continued... Add some color to the “new item” elements next to certain menu item names. strong { color: maroon; } That works, but now the strong element “very spicy” in the description is maroon too. dt strong { color: maroon; }

Formatting the Summer Menu continued... Look at the document source and you will see that the content has been divided into three unique divs: header, appetizers, and entrees. We can use the divs to our advantage when it comes to styling. Change the text in the header to be teal. #header { color: teal; } To get a little fancier, we can make the paragraph inside the header italic. #header p { font-style: italic; }

Formatting the Summer Menu continued... Now we want to give special treatment to all of the prices on the menu. Luckily they have all been marked up as span elements. So now all we have to do is write a rule using a class selector to change the font to Georgia or some serif font and make them italic. .price { font-style: italic; font-family: Georgia, serif; }

Formatting the Summer Menu continued... Similarly, We can change the appearance of the text in the header that has been marked up as belonging to the “label” class to make them stand out. .label { font-weight: bold; font-variant: small-caps; font-style: normal; }

Formatting the Summer Menu continued... Finally, there is a warning at the bottom of the page that we want to make small and red. p.warning, sup{ font-size: x-small; color: red; }

Formatting the Summer Menu continued... We are going to make a few changes to the body element. body { font-family: Georgia, serif; font-size: small; line-height: 175%; }

Formatting the Summer Menu continued... We are also going to redesign the h1 element. We are going to delete some style elements and make some changes. #header { color: teal; } (delete) h1 { font-size: 1.5em; font-variant: small-caps; (delete) color: purple; } #header p { font-style: italic; color: gray; } #header, h2, #appetizers p, # entrees p { text-align: center; }

Formatting the Summer Menu continued... We are also going to make “Appetizer” and “Main Courses” kind of special. h2 { font: bold 1em Georgia, serif; text-transform: uppercase; letter-spacing: 8px; color: purple; } dt { font-weight: bold; color: olive; }