Media-Specific Styles
|
|
- Kristopher Greer
- 6 years ago
- Views:
Transcription
1 Media-Specific Styles Same HTML, Different CSS R. Scott Granneman r Jans Carton R. Scott Granneman Last updated You are free to use this work, with certain restrictions. For full licensing information, please see the last slide/page.
2 Notes & URLs for this presentation can be found» underneath the link to this slide show on granneman.com» at files.granneman.com/presentations/webdev/css- Media-Specific-Styles.txt
3 Overview
4 A media query allows you to change how content is presented in different media without having to change the content itself A media query consists of» a media type (a device; e.g., print or screen)» zero or more media features (a test for a single, specific feature of the device or browser; e.g., min-width or orientation)
5 A media query is either true (apply it!) or false (ignore it!) Media queries are applied first, & then the rendering engine applies the CSS cascade
6 2 ways to specify media queries» <link> element» Within a stylesheet
7 Link element <link rel="stylesheet" media="screen" href="screen.css"> <link rel="stylesheet" media="(max-width: 800px)" href="screen.css">
8 Within a stylesheet (max-width: 600px) { aside { display: none; } } </style>
9 Which is best?
10 Media-specific rule sets in the same screen { body { font-size: 1em; background: black; } print { body { font-size: 10pt; background: white; } } OK, but why go to the trouble of specifying screen?
11 Linking to 2 style sheets: 1 for screen & 1 for print <head> <link rel="stylesheet" href="screen.css" media="screen"> <link rel="stylesheet" href="print.css" media="print"> </head> Bad because» Overly-specific» Extra, probably unnecessary, server call
12 Linking to 2 style sheets: 1 for all & 1 for print (which inherits from all) <head> <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="print.css" media="print"> </head> Bad because extra, probably unnecessary, server call
13 Do this: create a single style sheet & link to it in <head> <head> <link rel="stylesheet" href="main.css"> </head> Put your styles for everything at the top, with specific media styles at the end [styles for all print { } [styles for print]
14 html { } font-size: 16px; background: black; aside { } width: print { body { font-size: 12pt; background: white; } aside { display: none; } }
15 Media Types
16 You ve been using this code HTML 4.01 <link rel="stylesheet" type="text/css" href="main.css"> HTML5 <link rel="stylesheet" href="main.css">
17 Actually, <link rel="stylesheet" href="main.css"> is the same as <link rel="stylesheet" href="main.css" media="all">
18 Media Queries Level 4* defines 4 media types» all: all media type devices (default)» print: printers & Print Preview» speech: screenreaders (was aural)» screen: all devices that aren t matched by print or speech * Working Draft as of June 3, 2014
19 Deprecated media types:» braille: Braille tactile feedback devices» embossed: paged Braille printers» handheld: small or handheld devices» projection: projected presentations» tty: fixed-pitch character grid (teletypes & terminals)» tv: television-type devices
20 Media Styles in Action
21
22
23
24 #content-branding <h1>
25 h1 { <h1> float: left; width: 40%; margin-left: 20px; padding-left: 75px; background: # url(/files/theme/h1.png) #content-branding no-repeat 0 0; font-size: 200%; } #content-branding { border-bottom: 1px solid #fff; padding: 1.5em 0; background-color: #000; }
26
27 h1 { font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 180%; } #content-branding { } display: none;
28 /* screen */ /* print */ h1 { float: left; width: 40%; margin-left: 20px; padding-left: 75px; background: # url(/files/theme/ h1 { font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 180%; } h1.png) no-repeat 0 0; font-size: 200%; }
29 /* screen */ /* print */ #content-branding { border-bottom: 1px solid #fff; #content-branding { } display: none; padding: 1.5em 0; background-color: #000; }
30
31
32 A hint: to test your print styles, use Print Preview instead of actually printing
33 Common Print Styles
34 body { color: black; background-color: white; font-size: 12pt; }
35 a:link, a:visited { color: black; text-decoration: underline; }
36 a:link::after, a:visited::after { color: black; text-decoration: underline; content: " (" attr(href) ") "; }
37 h1, h2, h3 { color: black; padding-bottom: 1px; border-bottom: 1px solid black; }
38 aside, nav,.adbanner { display: none; }
39 Print CSS
40 Properties
41 Terms First page is easy Left page or right page? If the first page s writing direction is» left-to-right: it s a :right page» right-to-left: it s a :left page
42 page-break-after page-break-before page-break-inside widows orphans
43 page-break-after Adjusts page breaks after the current block element Values» auto: automatic page breaks (default)» always: always force page breaks» avoid: avoid page breaks» left: force page breaks so the next page is formatted as a left page» right: force page breaks so the next page is formatted as a right page
44 /* Move to a new page after footnotes */.footnotes { } page-break-after: always;
45 page-break-before Adjusts page breaks before the current block element Values» auto: automatic page breaks (default)» always: always force page breaks before the element» avoid: avoid page breaks before the element» left: force page breaks before the element so the next page is formatted as a left page» right: force page breaks before the element so the next page is formatted as a right page
46 /* avoid page break before notes */.note { } page-break-before: avoid;
47 page-break-inside Adjusts page breaks inside the current block element Values» auto: automatic page breaks (default)» avoid: avoid page breaks before the element
48 /* avoid page breaks inside the lead & summary paragraphs */ article > p:first-child,.summary { } page-break-inside: avoid;
49 A note about page-break-after & page-break-before from the Mozilla Developer Network: this property is in progress of being replaced by the more generic break-after (which no one supports!)
50 page-break-after *?? page-break-before *?? page-break-inside ?? * avoid, left, & right is not supported
51
52 Widows & orphans? Widow: last line of a paragraph that falls at the beginning of the following page Orphan: first line of a paragraph that appears by itself at the bottom of a page A mnemonic: An orphan is alone from the beginning; a widow is alone at the end
53 widows Defines minimum lines in a block container that must be left on top of a new page Must be a positive <integer> Defaults to 2
54 orphans Set minimum number of lines in a block container that must be left at the bottom of a page Must be a positive <integer> Defaults to 2
55 widows 8 25 orphans
56 Pseudo-Classes & at-rule
57 :first :left
58 :first Selects the 1st page when printing a document
59 :left Selects any left page when printing a document
60 :right Selects any right page when printing a document
61 Why :left & :right? Because the W3C is helping you create a printed book, & you want to change the right margin on the left page, & the left margin on the right page
62 { Outer Margin Top Margin Gutter Outer Margin Left (Verso) Page Right (Recto) Page Inner Margins Bottom Margin
63 @page Modifies some CSS properties when printing a document:» margin: absolute <length> units only» orphans» widows» page-break-after, page-break-before, & pagebreak-inside Can modify only the page box, not the document content!
64 @page :first { } margin: 2in 3in;
65 :first 8???? :left 8???? :right ??
66 Media Features
67 You limit the style sheet s scope based on media features, such as width, height, & color Almost all media features can be prefixed with» min-: greater than or equal to» max-: less than or equal to
68 @media (min-width: 769px) {.hamburger-nav { display: none; } } min-width is a media feature (min-width: 769px) is an expression If the media (in this case, the viewport) has a minwidth of 769px, then the style rules are applied to it
69 @media (orientation: portrait) {.sidebar { float: none; } } orientation is a media feature (orientation: portrait) is an expression If the media (in this case, the viewport) has an orientation of portrait, then the style rules are applied to it
70 @media (min-width: 700px) and (orientation: landscape) { } min-width & orientation are media features (min-width: 700px) & (orientation: landscape) are expressions and is a logical operator (others are not & only) (min-width: 700px) and (orientation: landscape) is a complex media query If the media has a min-width of 700px AND an orientation of landscape, then the style rules are applied to it
71 Media features are either viewport-centric (which we care about for responsive web design) or device-centric (for special cases)
72 Viewport-centric» width: width of viewport» height: height of viewport» aspect-ratio: <ratio> of horizontal pixels to vertical pixels of viewport» orientation: landscape or portrait
73 Device-centric» color: bit depth of a standard display» color-index: number of colors in an indexed color display» monochrome: bit depth of monochrome display» device-width: width of screen in pixels» device-height: height of screen in pixels» device-aspect-ratio: <ratio> of horizontal pixels to vertical pixels of screen» resolution: pixel density of the output device» grid: grid device or a bitmap device» scan: scanning process of television
74 @media Media Features
75 Thank you! websanity.com
76 Media-Specific Styles Same HTML, Different CSS R. Scott Granneman r Jans Carton R. Scott Granneman Last updated You are free to use this work, with certain restrictions. For full licensing information, please see the last slide/page.
77 Changelog : Minor wording changes : Updated compatibility chart in Media Features
78 Changelog : Renamed Media Queries to Media Features; moved much of Overview to Media Types; added new content to Overview; made it clearer which method of specifying media queries is best; minor fixes : Improved recommendation at end of Overview : Added more details on media features; corrected list of media types; more details on :right &:left : Fixed minor errors
79 Licensing of this work This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit You are free to:» Share copy and redistribute the material in any medium or format» Adapt remix, transform, and build upon the material for any purpose, even commercially Under the following terms: Attribution. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. Give credit to: Scott Granneman scott@granneman.com Share Alike. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original. No additional restrictions. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. Questions? scott@granneman.com
Media Types & Media Features
Media Types & Media Features Same HTML, Different CSS R. Scott Granneman r Jans Carton 1.6 2008 R. Scott Granneman Last updated 2018-08-21 You are free to use this work, with certain restrictions. For
More informationCSS for Designers. Capabilities to Know & Pitfalls to Avoid. R. Scott Granneman. Jans Carton
CSS for Designers Capabilities to Know & Pitfalls to Avoid R. Scott Granneman Jans Carton 1.1 2009 R. Scott Granneman Last updated 2015-01-16 You are free to use this work, with certain restrictions. For
More informationCSS Data Types. One of Those Things You Have To Know
CSS Data Types One of Those Things You Have To Know R. Scott Granneman r Jans Carton 1.4 2013 R. Scott Granneman Last updated 2018-09-02 You are free to use this work, with certain restrictions. For full
More informationTables & Lists. Organized Data. R. Scott Granneman. Jans Carton
Tables & Lists Organized Data R. Scott Granneman Jans Carton 1.3 2014 R. Scott Granneman Last updated 2015-11-04 You are free to use this work, with certain restrictions. For full licensing information,
More informationRFID Chips Are Here. What You Need to Know. Washington University in St. Louis. ! R. Scott Granneman
RFID Chips Are Here What You Need to Know Washington University in St. Louis R. Scott Granneman 2013 R. Scott Granneman Last updated 20131116 You are free to use this work, with certain restrictions. For
More informationDecorating with CSS. Cool Ways to Make Things Pretty. R. Scott Granneman. Jans Carton
Decorating with CSS Cool Ways to Make Things Pretty R. Scott Granneman Jans Carton 1.4 2013 R. Scott Granneman Last updated 2015-01-14 You are free to use this work, with certain restrictions. For full
More informationCS7026 Media Queries. Different Screen Size Different Design
CS7026 Media Queries Different Screen Size Different Design Introduction Users no longer view web content only on traditional desktop systems, but are increasingly using smartphones, tablets, and other
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21/ Week 3 Slide 1 of 16 Week 3 Agenda
More informationCSS. https://developer.mozilla.org/en-us/docs/web/css
CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties
More informationINTRODUCTION TO HTML5! CSS Styles!
INTRODUCTION TO HTML5! CSS Styles! Understanding Style Sheets HTML5 enables you to define many different types of content on a web page, including headings, paragraphs, lists, images, input fields, canvases,
More informationCSS: The Basics CISC 282 September 20, 2014
CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML
More informationCascading Style Sheets (CSS)
Cascading Style Sheets (CSS) Mendel Rosenblum 1 Driving problem behind CSS What font type and size does introduction generate? Answer: Some default from the browser (HTML tells what browser how)
More informationIn the early days of the Web, designers just had the original 91 HTML tags to work with.
Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,
More informationDesign Process. Discover, Design, Develop, Deploy. R. Scott Granneman. Jans Carton
Design Process Discover, Design, Develop, Deploy R. Scott Granneman Jans Carton 1.1 2013 R. Scott Granneman Last updated 2015-06-10 You are free to use this work, with certain restrictions. For full licensing
More informationIntroduction to Web Design CSS Reference
Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:
More informationIntroduction to Web Design CSS Reference
Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:
More informationTo link to an external stylesheet, the link element is placed within the head of the html page:
CSS Basics An external style sheet is simply a text file (use BBEdit or Textwrangler) containing style rules, saved with the.css extension. It s best practice to keep style sheets for a site grouped within
More informationZen Garden. CSS Zen Garden
CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS
More informationTutorial 4: Creating Special Effects with CSS
Tutorial 4: Creating Special Effects with CSS College of Computing & Information Technology King Abdulaziz University CPCS-403 Internet Applications Programming Objectives Work with CSS selectors Create
More informationCMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you
More informationResponsive Web Design. From: Ethan Marcotte - Responsive Web Design 2011
Responsive Web Design From: Ethan Marcotte - Responsive Web Design 2011 Motivation Browser windows have their inconsistencies and imperfections Once web pages are published online, the designs are immediately
More informationSession 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties
Session 4 Style Sheets (CSS) 1 Reading Reading & References en.wikipedia.org/wiki/css Style Sheet Tutorials www.htmldog.com/guides/cssbeginner/ A reference containing tables of CSS properties web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html
More informationCS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013
CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 Part I. (50%) Multiple Guess Choice. 1. What does CSS stand for? a. Creative Style Sheets b. Computer Style Sheets c. Cascading Style
More information<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.
CSS Formatting Background When HTML became popular among users who were not scientists, the limited formatting offered by the built-in tags was not enough for users who wanted a more artistic layout. Netscape,
More informationCSS: Cascading Style Sheets
CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS
More informationCOSC 2206 Internet Tools. CSS Cascading Style Sheets
COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it
More informationCascading Style Sheets
4 TVEZEWXYHMNR LSTVSKVEQY-RJSVQEXMOENITSHTSVSZ RETVSNIOXIQ RERGSZER Q^)ZVSTWO LSWSGM PR LSJSRHYEVS^TS XYLPEZR LSQ WXE4VEL] 4VELE)9-RZIWXYNIQIHSZE% FYHSYGRSWXM CSS Cascading Style Sheets Lukáš Bařinka barinkl@fel.cvut.cz
More informationACSC 231 Internet Technologies
ACSC 231 Internet Technologies Lecture 7 Web Typography Efthyvoulos Kyriacou - Assoc. Prof. Frederick University Resources: C. Markides (Frederick University) Slide 1 ACSC 231: Internet Technologies 23/12/2008
More informationYouTube Break. https://www.youtube.com/watch?v=lvtfd_rj2he
Layout Jeff Avery YouTube Break https://www.youtube.com/watch?v=lvtfd_rj2he Positioning Visual Components Previously, we learned about event handling and model-view-control architecture. Next, we need
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with
More informationAdding CSS to your HTML
Adding CSS to your HTML Lecture 3 CGS 3066 Fall 2016 September 27, 2016 Making your document pretty CSS is used to add presentation to the HTML document. We have seen 3 ways of adding CSS. In this lecture,
More informationCSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC
CSS3 Basics From www.w3schools.com & CSS Visual Dictionary Learning Curve Books, LLC CSS Box Model Margin (top, right, bottom, left) Shorthand property, equivalent to Border-width border-style border-color
More informationWanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.
Wanted! Introduction In this project, you ll learn how to make your own poster. Step 1: Styling your poster Let s start by editing the CSS code for the poster. Activity Checklist Open this trinket: jumpto.cc/web-wanted.
More informationCascading Style Sheets
Cascading Style Sheets Formatting Using Standards Washington University in St. Louis R. Scott Granneman scott@granneman.com www.granneman.com 2002-2009 R. Scott Granneman Last updated 20091114 You are
More informationCSC309 Programming on the Web week 3: css, rwd
CSC309 Programming on the Web week 3: css, rwd Amir H. Chinaei, Spring 2017 Office Hours: M 3:45-5:45 BA4222 ahchinaei@cs.toronto.edu http://www.cs.toronto.edu/~ahchinaei/ survey 1 in survey 1, you provide
More informationScripting for Multimedia LECTURE 5: INTRODUCING CSS3
Scripting for Multimedia LECTURE 5: INTRODUCING CSS3 CSS introduction CSS Level 1 --> CSS Level 2 --> CSS Level 3 (in modules) More than 50 modules are published Cascading style sheets (CSS) defines how
More informationWelcome Please sit on alternating rows. powered by lucid & no.dots.nl/student
Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS
More informationSession 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style
Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use
More informationCascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor
Styles? Cascading Style Sheet http://www.eie.polyu.edu.hk/~nflaw/biclustering/index.html Request string: GET /~nflaw/biclustering/index.html HTTP/1.1 Host: www.eie.polyu.edu.hk 1 Response string: HTTP/1.1
More informationHTML5. 10 Things to Know. Webster University. ! R. Scott Granneman
HTML5 10 Things to Know Webster University R. Scott Granneman 2009 R. Scott Granneman Last updated 20140221 You are free to use this work, with certain restrictions. For full licensing information, please
More informationStyles, Style Sheets, the Box Model and Liquid Layout
Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of
More informationLab Introduction to Cascading Style Sheets
Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,
More informationReading 2.2 Cascading Style Sheets
Reading 2.2 Cascading Style Sheets By Multiple authors, see citation after each section What is Cascading Style Sheets (CSS)? Cascading Style Sheets (CSS) is a style sheet language used for describing
More informationGetting Started with Eric Meyer's CSS Sculptor 1.0
Getting Started with Eric Meyer's CSS Sculptor 1.0 Eric Meyer s CSS Sculptor is a flexible, powerful tool for generating highly customized Web standards based CSS layouts. With CSS Sculptor, you can quickly
More informationAssignments (4) Assessment as per Schedule (2)
Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like
More informationHTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.
HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information
More information- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values
3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification
More informationWeb Information System Design No.4 Put Style to Web Documents. Tatsuya Hagino
Web Information System Design No.4 Put Style to Web Documents Tatsuya Hagino (hagino@sfc.keio.ac.jp) 1 Web Page Components Combine orthogonal technologies content style programming style JavaScript Programming
More informationChapter 7 BMIS335 Web Design & Development
Chapter 7 BMIS335 Web Design & Development Site Organization Use relative links to navigate between folders within your own site o Sometimes dividing your site into folders makes maintenance and updating
More information<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***
Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember
More informationCascading Style Sheets (CSS)
Cascading Style Sheets (CSS) Web Architecture and Information Management [./] Spring 2009 INFO 190-02 (CCN 42509) Erik Wilde, UC Berkeley School of Information [http://creativecommons.org/licenses/by/3.0/]
More informationINFS 2150 Introduction to Web Development
Objectives INFS 2150 Introduction to Web Development Create a media query Work with the browser viewport Apply a responsive design Create a pulldown menu with CSS Create a flexbox 5. Mobile Web INFS 2150
More informationINFS 2150 Introduction to Web Development
INFS 2150 Introduction to Web Development 5. Mobile Web Objectives Create a media query Work with the browser viewport Apply a responsive design Create a pulldown menu with CSS Create a flexbox INFS 2150
More informationCSS. Shan-Hung Wu CS, NTHU
CSS Shan-Hung Wu CS, NTHU CSS Zen Garden 2 Outline The Basics Selectors Layout Stacking Order 3 Outline The Basics Selectors Layout Stacking Order 4 Grammar selector { property: value; 5 Example /* for
More informationCASCADING STYLESHEETS
CASCADING STYLESHEETS Cascading StyleSheets (CSS) has been mainly created because HTML is just not the right tool for precision and flexibility. HTML is not a very effective for designing web pages. Most
More informationUnit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors
Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!
More informationPUBLISHER SPECIFIC CSS RULES
PUBLISHER SPECIFIC CSS RULES Solita Oy Helsinki Tampere Oulu 26.1.2016 2 (24) Document History Version Date Author Description 0.1 August 17, 2015 J. Similä First draft 0.2 January 26, 2015 A. Autio Fixed
More informationCSS مفاهیم ساختار و اصول استفاده و به کارگیری
CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate
More informationModule 2 (VII): CSS [Part 4]
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (VII): CSS [Part 4] Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals
More informationCascading Style Sheets Level 2
Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin
More informationThis tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.
About the Tutorial CSS is used to control the style of a web document in a simple and easy way. CSS stands for Cascading Style Sheets. This tutorial covers both the versions CSS1 and CSS2 and gives a complete
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More informationCSS. Selectors & Measurments. Copyright DevelopIntelligence LLC
CSS Selectors & Measurments 1 Back to descendants remember walking down the document tree structure and see how parents and children interact not only is it important to know about inheritance walking
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 6 Slide 1 of 28 Week 6 Agenda
More informationCSS. (Cascading Style Sheets) HTML (Hyper Text Markup Language) HTML: styles. 07/07/2011(mar'09) A.Lioy - Politecnico di Torino ( ) F.
CSS (Cascading Style Sheets) Antonio Lioy < lioy@polito.it it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica HTML (Hyper Text Markup
More informationHTML (Hyper Text Markup Language) CSS. (Cascading Style Sheets) HTML: problems with styles. HTML: styles. CSS: specifications.
CSS (Cascading Style Sheets) Antonio Lioy < lioy@polito.it it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica HTML (Hyper Text Markup
More informationCSS: Cascading Style Sheets
What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML
More informationWEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5
WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 In this chapter, you will learn how to... LEARNING OUTCOMES Code relative hyperlinks to web pages in folders within a website Configure
More informationIntroduction to Web Tech and Programming
Introduction to Web Tech and Programming Cascading Style Sheets Designed to facilitate separation of content and presentation from a document Allows easy modification of style for an entire page or an
More informationIntroduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
More informationCSS Styles Quick Reference Guide
Table 1: CSS Font and Text Properties Font & Text Properties Example(s) font-family Font or typeface font-family: Tahoma font-size Size of the font font-size: 12pt font-weight Normal or bold font-weight:
More informationResponsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002
1 of 13 CS1115/CS5002 Web Development 1 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Mobile vs desktop web sites A few organization have two web sites, one
More informationBefore you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.
9 Now it s time to challenge the serious web developers among you. In this section we will create a website that will bring together skills learned in all of the previous exercises. In many sections, rather
More informationAppendix D CSS Properties and Values
HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by
More informationCOMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts
COMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University
More informationIntermediate Web Publishing: Working with Styles
Intermediate Web Publishing: Working with Styles Jeff Pankin Information Services & Technology Contents Introduction... 2 In this class you will:... 2 Set the Preferences... 2 General... 2 Invisible Elements...
More informationCSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):
CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look
More informationGoSquared Equally Rounded Corners Equally Rounded Corners -webkit-border-radius -moz-border-radius border-radius Box Shadow Box Shadow -webkit-box-shadow x-offset, y-offset, blur, color Webkit Firefox
More informationCOMP519 Web Programming Lecture 7: Cascading Style Sheets: Part 3 Handouts
COMP519 Web Programming Lecture 7: Cascading Style Sheets: Part 3 Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University
More information**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.
CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look
More informationCSS means Cascading Style Sheets. It is used to style HTML documents.
CSS CSS means Cascading Style Sheets. It is used to style HTML documents. Like we mentioned in the HTML tutorial, CSS can be embedded in the HTML document but it's better, easier and neater if you style
More informationWeb Recruitment Module Customisation
Web Recruitment Module Customisation Introduction The People Inc. Web Recruitment add-on enables users to publish details of vacancies on their web site. This information is integrated seamlessly into
More information5 Snowdonia. 94 Web Applications with C#.ASP
94 Web Applications with C#.ASP 5 Snowdonia In this and the following three chapters we will explore the use of particular programming techniques, before combining these methods to create two substantial
More informationChapter 11 CSS2. Presented by Thomas Powell. Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A.
Chapter 11 CSS2 Presented by Thomas Powell Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A. Powell CSS2 CSS2 (http://www.w3.org/tr/rec-css2/ ) was finalized in May 1998
More informationTaking Fireworks Template and Applying it to Dreamweaver
Taking Fireworks Template and Applying it to Dreamweaver Part 1: Define a New Site in Dreamweaver The first step to creating a site in Dreamweaver CS4 is to Define a New Site. The object is to recreate
More informationWeb Design and Development Tutorial 03
Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...
More informationCSS. (Cascading Style Sheets)
CSS (Cascading Style Sheets) Antonio Lioy < lioy@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica HTML (Hyper Text Markup Language)
More informationUsing CSS for page layout
Using CSS for page layout Advantages: Greater typographic control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control Increased accessibility
More informationCSS. Location, Inheritance & the Cascade. Copyright DevelopIntelligence LLC
CSS Location, Inheritance & the Cascade 1 CSS: Location Where do these rules go? 3 places External CSS files, Embedded style sheets, Inline styles External style sheet place to put CSS one external style
More informationCSS for Page Layout Robert K. Moniot 1
CSS for Page Layout 2015 Robert K. Moniot 1 OBJECTIVES In this unit, you will learn: How to use style sheets for layout Controlling text flow, margins, borders, and padding Controlling visibility of elements
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 7 More on Links, Layout, and Mobile Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links
More informationStyle Sheet Reference Guide
Version 8 Style Sheet Reference Guide For Password Center Portals 2301 Armstrong St, Suite 2111, Livermore CA, 94551 Tel: 925.371.3000 Fax: 925.371.3001 http://www.imanami.com This publication applies
More informationICT IGCSE Practical Revision Presentation Web Authoring
21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:
More informationCOMP519 Web Programming Autumn Cascading Style Sheets
COMP519 Web Programming Autumn 2015 Cascading Style Sheets Content vs. Presentation Most HTML tags define content type, independent of how that content is to be presented. There are a few obvious exceptions
More informationSanta Tracker. Release Notes Version 1.0
Santa Tracker Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen and on the right sidebar click on Manage in the App Parameters area. Edit any
More informationMultimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3
Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 3 Configuring Color and Text with CSS Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links
More informationhttp://nma.kcc.hawaii.edu/gargiulo/data/johndoe/spring/art128/2014/companyname1_step3/index.html 1 2 3 4 5 company Name 6 7
More informationCSS 1: Introduction. Chapter 3
CSS 1: Introduction Chapter 3 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development What is CSS? You be styling soon CSS is a W3C standard
More informationWeb Publishing Intermediate 2
Web Publishing Intermediate 2 Building a Three Column Site with divs and float Jeff Pankin Information Services and Technology Table of Contents Course Objectives... 2 The CIG Web Site... 3 Using the Div
More information