CSS - Cascading Style Sheets

Size: px
Start display at page:

Download "CSS - Cascading Style Sheets"

Transcription

1 CSS - Cascading Style Sheets As a W3C standard, CSS provides a powerful mechanism for defining the presentation of elements in web pages. With CSS style rules, you can instruct the web browser to render page content. With conditional rules, layout may even adapt to different environments and software solutions. Features like the viewport s size may be quite different in desktop and mobile environments. Mobile web browsers have user interfaces and interactive features that differ from the typical desktop schemes. All these differences can be taken into consideration when designing web pages. With CSS as a separate presentation layer, you can alter the layout of a document and its elements without changing the structural layer created with HTML markup. There may be no need to alter the hierarchical and semantical structure of the document to adapt styling solutions, so presentation and structure may be kept separate. One of the great advantages of CSS lies in the possibility to centrally control the styles of multiple documents in a web site. The same set of style rules may apply to all documents or a selected set of documents within a site. At the document level, you can add styles to selected element types, specific parts of the document (element groups), and even to single elements if needed Online example demonstrating CSS: An example site intended as a demonstration of what can be accomplished through CSS-based design. The same HTML-document is redesigned using only CSS rules and design specific graphics. Read the description on the page, check the designs and inspect HTML and CSS code examples from the pages: University of Tampere, COMS 1

2 CSS versions CSS standards exist in different versions and development stages (levels): CSS level1 (CSS1), CSS level2 (CSS2), CSS2.1 revision and 2.2 revision on the way. CSS versions 1 define a complete collection of definition rules and level 2 extends it further with its revisions. However, development of different parts of the standards may have different developmental stages (levels) which form independent modules which are published piece by piece instead of always providing one single complex recommendation (like CSS1 & 2). Modules can be and are developed, tested, and adapted individually making the working progress faster (also faster support by browser software is a result). Modules in level 3 (and even 4), often referred as CSS3, bring new rules that can be incorporated to newer versions of CSS (e.g. the next revision CSS 2.2). To be more up to date with the current CSS status, the W3C also issues Snapshots which give more information to implementers than actual CSS authors. Web browser support for CSS3 modules may have full or only partial support, or experimental level support with different browser specific (vendor) prefixes for different web browsers. Snapshot Introduction and background process - CSS levels - CSS 3 module example CSS Color Module Level 3 (extending the part of CSS2.1 version that is about color definitions) - Styles affecting presentation of HTML documents Web browsers apply inbuilt default styles for all opened web documents with HTML markup the collection of default browser styles is referred as User Agent Stylesheet. We have seen examples of this in the previous exercises with HTML elements. Default styles vary with web browser types and versions. There are some general guidelines and W3C recommendations how elements should be displayed by default, usually suggesting features suited for the elements meaning. Differing interpretations are somewhat common, especially for mobile browser implementations. The user may alter some of the default browser styles. Browser settings offer certain basic options to choose from e.g. font size and font family. Some browsers allow the usage of additional customized user designed style sheets that may override default browser styles and if required even author style sheets. Both browser default and user defined styles may be replaced by the web page designers with CSS style definitions (author styles) added to the web pages. Author style rules can be added as element styles affecting a single element, as document specific styles defined in the HTML document, and as site-specific styles with linked external style documents. The external style documents can be linked to any desired HTML document, which makes maintaining layout easier for multiple documents or for the entire site. All three methods can be used for adding styles to the same document. The added style rules have an increasing specificity (weight, rule strength) in affecting web page layout. The linked styles are the least specific and the element-styles are the most specific. More specific rules override less specific rules if they define overlapping styles for a selected element. Similarly, browser default styles are less specific than document specific styles added by the author. Site-wide external rules can be overridden with document specific rules e.g. to create exceptions to general rules. Both of these can be overridden at the level of individual elements with element styles. All these form a hierarchy of styles. University of Tampere, COMS 2

3 Defining style rules - syntax Style rules are added using specific syntax. CSS syntax is different from HTML syntax. To apply presentational styles, you must first specify what element or elements of the document will be affected by the style rules. You must also define which presentational features to change? How to change them? For the selection of elements, CSS selectors are used. The selector is followed by a declaration which elaborates the property (or properties, features) to change, and what values should be used to change them. selector { property: value; } A simple example: h1 { color: blue; } when added to a document within the STYLE element (document specific style), the rule means that for any h1 element defined in the document, the text color is set to blue! h1 = selector for all h1 elements in the document, selecting the element type h1 { } = marking the declaration of the styles color = property which defines text color in the selected element : (colon) = compulsory separator blue = value that corresponds to a specific color value that is used for the selected property (here text color) ; (semi-colon) = marks the end of property / value pair, acts as a separator Do not confuse properties in CSS styles with attributes in HTML elements!!! selector { property: value; } The selector in the example is an element type selector a simple selector that selects all occurrences of the specified HTML element type in a document. h1 { color: blue; } selects all H1 headings in the document, text color is changed to blue University of Tampere, COMS 3

4 Changing the selector applies the style to another element: p { color: blue; } changing text color to blue for all paragraphs You can also group selectors to apply the same declaration to multiple elements: h1,p { color: blue; } The separator is a comma (,) between selectors! Here, all the occurrences of H1 and P elements are selected. There may also be more than just one property-value pair in a declaration here an example of adding color and font weight to the text of the selected element: h1 { color: blue; font-weight: normal; } The separator is a semicolon (;) is a must between property/ value pairs. You may make the rules more transparent and legible if you have multiple property / value pairs in a declaration. h1,h2 { color: red; font-size: 18px; text-transform: uppercase; } You can also place each new property on a separate line: h1,h2 { color: red; font-size: 18px; text-transform: uppercase; } In the above example, the rule selects all h1 and h2 elements in the document. color: red = all text in the both elements is red (black default) font-size: 18px = changing font size to 18 pixels (smaller then default) text-transform: uppercase = transforms all characters to uppercase University of Tampere, COMS 4

5 Adding CSS to HTML documents As described above, you can define styles as element-styles, document specific styles and linked external styles. The style syntax is the same for these (selector and declaration), except for the element-styles, which do not need a separate selector as these are added straight to HTML elements. Inline element-styles with the style attribute Style rules can be added to individual elements using the HTML style attribute. syntax: <element style= property: value > </element> The value of the style attribute must be a valid style declaration (property/value). No selectors needed since the affected element is selected by defining the style attribute in the element itself. Style declaration contains property definitions and value for these. There may be multiple property / value pairs as a value for a style attribute. If multiple properties are present, a semicolon (;) is used as separator! <element style= property:value; property:value > </element> <h1 style= color:red; font-weight:normal > </h1> The above is yielding the text in that particular h1 element rendered in red and without the default bold typeface in the heading. Note that inline element-style rules for a property will have high specificity (weight). This means that any style rules for that specific property, if defined at the document level or as linked styles, will be ignored. Element-styles are always added to individual HTML elements in the body part and the browser will interpret them as the element is parsed in the body! Document specific and linked styles are added earlier in the head part of the document and are therefore processed earlier. As a caution, do not use inline element-styles unless there is a good reason for it, since these are not very flexible style definitions as these cannot be controlled centrally (from the style element or linked styles). You do have to edit these rules inline, which may be much more burdensome. Embedding document specific styles For document specific styles, use the style element in the head part of the document! (Note that this is an element and not an attribute, as described in the previous section!) Styles added in the STYLE element are effective only for the specific document (the document they are in). Style rules here can control the layout of any selected element in the document. <head> <style> </style> </head> the style definitions go here (Optional attribute for the style element: type="text/css" is the default interpretation in HTML5, not required) <style> </style> h1 { font-size: bigger; } h2 { font-size: smaller; } University of Tampere, COMS 5

6 The rule for the h1-selector (blue text, selecting all h1) is overruled by the element style (style attribute) in the first heading (red text, element-style). External or Linked Style sheets (global/site specific styles) Instead of adding styles with style elements to every document in a web site, style definitions may be saved in separate style documents and linked to HTML files as needed. This way the same style rules can be added to any of the documents in a web site. The style rules are saved in a text file the same way as HTML documents are save, but the format ending must be.css for the style documents. There may be multiple linked style documents in a web page. Documents can selectively link to any of the external style document defined for a site. This allows further control of layout, not all the style definitions may be needed for all documents in the site. The linking is done with the link element in the head of the document (there is also rule to import external style rules, but I recommend to use the link method): <head> <link rel= stylesheet href= URL > </head> e.g. <link rel= stylesheet href= mysitestyles.css > The REL attribute must have the value stylesheet. The web browser loads the external style sheet as an external resource when the document is parsed and applies the included styles. The linked rules must be added before the document specific rules, preceding the STYLE element! This way, document specific style definitions, are more effective (have more weight, more specific) than linked definitions, and you can still make local adjustments and override site wide rules if needed. University of Tampere, COMS 6

7 <head> <link rel= stylesheet href= basic-styles.css > <style> </style> </head> /* the document specific style definitions */ h1 { color: red; } and the file basic-styles.css could contain the style rules e.g. h1 { font-size: bigger; font-weight: normal; } etc. The font size for h1 elements is set to a relative bigger size and have less weight for any document that has a link to the style document. In addition, the document we have here has document specific styles that set the color of h1 elements to red in this document. The color does not change based on the linked rules! Linked style sheets must be added before document specific embedded style rules (style element) in the head! This allows for document specific adjustments of styles if linked styles needed to be adjusted for the particular document. University of Tampere, COMS 7

8 Inheritance - Hierarchy in HTML and CSS - HTML documents have an implicit hierarchical structure where elements are contained by other elements at different hierarchical levels. There is a particular order for basic structural elements, which contain the elements of the page. E.g. the root element contains the head and the body elements; the body contains content with typically block-level elements like headings and paragraphs that may contain inline text elements like em, b, span, etc. An element that is contained by another element is the child of that containing element, the parent. The parent and the parent of a parent is also an ancestor and child or child of a child is a descendant. Structural relationships between HTML elements are important for CSS styles rules because some of the style properties are inherited by child elements from parent elements. This means that an inherited property and its value is passed down from the parent element to its descendants (child elements). E.g. changing text color for the body element will affect text color in all elements within the body. Text color is passed to child elements and only overruled if it is separately defined for a child element. Some of the inherited properties and certain values will affect calculated values for child elements. body { color: red; } <body> <h1>text</h1> <p>text <em>text</em> text</p> </body> The red color is inherited to all elements in the body -> h1, p and em Overlapping rules: when rules that apply to a specific property of a selected element are replaced by rules added to its child elements for the same property. Inherited styles get replaced by styles added for the child elements, the child element is on a higher hierarchical level in the HTML document. body { color: red; } p { color: blue; } The text color is overridden for the p element and its descendants. p and em body { color: red; } p { color: blue; } em { color: green; } The text color is overridden for the em element and its descendants (here no more descendants). The text color is the same property for all these selected elements. The selectors have equal weight (specificity), but the element hierarchy of the HTML elements affect the style rules. The higher the element is in the element hierarchy, the more specific the affecting rule is. This is only valid when the affected style rules are inherited from ancestor/parent elements. Only text properties are inherited by default (e.g. font-family, font-size, text color, font-weight, fontstyle, etc.), passed down to descendant elements. This makes sense as some text properties are often kept the same between different elements. E.g. setting a consistent text style for the whole document is quite simple as you can define the intended style for the body element (or other parent) and you do not need to redefine the same rule repeatedly for each text element in different levels in the University of Tampere, COMS 8

9 document hierarchy. This reduces redundancy in the styles quite a lot. You can still change the styles of specific descendant elements based on their position in the element hierarchy. The higher the element is in the element hierarchy the more weight the affecting style rule will have. However, non-inheriting properties are not passed down to child elements unless specifically instructed. There is a specific value, inherited, that makes any property inherited. This gives you more flexibility, but require more attention and more careful planning. Conflicting rules The order of the applied rules also matters. The last rule is valid when applying multiple equalweighted rules to change a single property of a selected element: p { color: blue; } p { color: red; } p { color: green; } Style Sheet Hierarchy and Cascading order As mentioned in the above examples, there are specificity (weight) based rules on how effective style rules are added to the document. The weight of a rule can be calculated. Below a simplified list of these rules in weight order (1 = least weight): 1. Browser default settings 2. User style settings (customized for the browser by the user) 3. Linked external style sheet rules. 4. Linking order of multiple external style sheets if applicable the last linked rule is applied if equal-weighted rules are applied in the linked CSS styles. 5. Embedded rules within the document (style element in the head) again the order of rules counts the last rule has more weight if otherwise equal. 6. Also the specificity rules matters, the higher the element is in the document hierarchy, the heavier the rule is, as described above! 7. Inline element-styles (added with a style-attribute), when applied, have more weight than other rules, as they are defined in elements in the body (see below). Changing element styles within the document You can create general rules to specific types of elements reoccurring in the markup. You can e.g. create style rules that select and adjust h1 heading styles for all instances of the h1 element within your documents. One may also add more specific rules that can be assigned to unique elements (id attribute is used with a unique value), to groups of elements (with added class attribute with common values), and rules that are applied conditionally depending on element hierarchy context, e.g. selecting elements within certain elements. See more about selector on the course page. These methods described above may be applied in combination, imposing the possibility of overlapping and furthermore conflicting rules. Hence the final layout is a composite of all delicate interpretations, resolution of conflicts; the cascade of rules. Hence the name: Cascading Style Sheets. University of Tampere, COMS 9

10 Using the Inspect element tool in Chrome to check style rules and specificity Developer tools in Chrome is perfect for inspecting style rules added to elements. The tool also shows rule origin, specificity, inheritance, the whole cascade of style rules (which rules are inherited, which are overridden, etc.). When an HTML document is opened in Chrome, open the tool with the Inspect command (SHFT+CTRL+I or from the context menu Inspect) to show how the browser sees the document (Elements tab, for HTML), and element styles (Styles tab, for CSS). See below (CTRL + SHFT + I, and undock the panel ) : You can inspect CSS style rules applied to a selected element, the style rules are listed in the Styles tab. The rules are organized in specificity order, increasing weight from bottom to top. Overruled styles show up strike-through, meaning that the style is redefined or replaced by a heavier rule. Web browser default styles (user agent stylesheet) show with gray background. There is also a reference (on the right) where the rule is originated - user agent, linked, embedded styles, element.styles (style attribute). A simple example, the BODY element is selected (elements tab) for inspection. You can click on an element in the elements tab to see all the styles affecting it in the Styles tab. Body styles here (see below) include the default user agent styles and added text color as an embedded style in the document head (style element): You can also select any element from the browser s viewport with the arrow tool (image below). Select the tool (blue) and click on an element in the browser window. The style tab will show the selected element s styles: University of Tampere, COMS 10

11 Style inheritance example in the Developer Tool: Here, the em element is selected from the document. You can see the elements of the document in the Elements tab, click the triangles to open the nested elements. The bottom left indicates the element hierarchy for the selected element. Here: html > body > p > em The style tab shows styles applied for the selected element both browser styles (user agent stylesheet, mid gray) and author styles, here added in the style element. University of Tampere, COMS 11

12 The style tab shows all style rules that affect the presented styles of the selected element. On the top, the declaration (color: green) of the em type selector, which override inherited rules below. Browser default styles (user agent stylesheet) apply here, the text in em elements is renderd with italic style (cursive text). It is also visible that besides the em element, there are other elements that get the same style (i, cite, var, address, dfn) by default. The em element also inherits text styles (here, text color) from its parents. The em element is in a paragraph (p) and the paragraph is a child of the body element. The inherited styles for text colors are overridden by the more specific em selector, element hierarchy for the em element is higher. Both styles inherited from the p and body elements are stroke through (these are overridden): Some overridden relative values may still affect the final styles of the element! The inspector also displays the origin of the style rule. On the right after each selector, there is a reference to the origin of the rule. In the image above, selector-1.html:8 and selector-1.html:7 suggest that the rules are document specific (selector-1.html is the example HTML file name). The University of Tampere, COMS 12

13 digits 8 and 7 are references to the line numbers the rules are added to the document (see below, view-source CTRL+U). If there are styles originated from an external stylesheet, the there is a reference to that stylesheet. Here below some additional rules are added from a separate stylesheet example.css. <head> <meta charset="utf-8"> <title>page Title</title> <link rel="stylesheet" href="example.css"> <style> body { color: red; } p { color: blue; } em { color: green; } </style> The file contains the following rule: em { font-weight: bold; } University of Tampere, COMS 13

14 em { font-weight: bold; } is on line 1 of the linked CSS file example.css. em { color: green; } is displayed above the linked style, since it is defined in the style element within the document. Document specific styles must be defined after the linked styles to allow document specific changes when needed. If the linked style sheet would have overlapping styles with document specific styles (em { font-weight: bold; color: purple; } in example.css), the document specific styles win (color: green): University of Tampere, COMS 14

15 Inspecting more complex element styles from the examples (css-hierarchy.html): The HTML code of the selected element in the image above: <h1 id="orange2" class="purple blue" style="color:black">heading text</h1> Besides the added styles in the style element, the above example element also contains elementstyles added with the style attribute (element.style). Element-styles, when used, are on the top as these are more specific than other added styles. University of Tampere, COMS 15

16 Comments in HTML and CSS Comments may be added to both HTML and CSS code to guide and to help the editor in maintaining and updating of the document. Comments will not affect the content or interpretation of the page and are not visible on the page. HTML comment syntax: <!-- --> <!-- Text of the comment that is hidden from the user, not displayed as a part of the page --> CSS comment syntax: /* */ /* CSS comments to be added among the definitions */ HTML comments are only valid in the HTML part of the document (everywhere outside the STYLE element). CSS comments are valid only within the STYLE tag and in external CSS files. CSS <style> h1{ color: red; } /* red main heading */ /* style comments in the style element or external style documents */ </style> HTML (anywhere in the HTML document except for the style element) <!-- document content start --> <h1>this is an HTML heading 1</h1> DO NOT MIX syntax, you cannot use HTML markup nor HTML comments in style definitions! Also, style rules must be within style attributes and/or style elements within an HTML document. University of Tampere, COMS 16

2. Write style rules for how you d like certain elements to look.

2. Write style rules for how you d like certain elements to look. CSS for presentation Cascading Style Sheet Orientation CSS Cascading Style Sheet is a language that allows the user to change the appearance or presentation of elements on the page: the size, style, and

More information

The Benefits of CSS. Less work: Change look of the whole site with one edit

The Benefits of CSS. Less work: Change look of the whole site with one edit 11 INTRODUCING CSS OVERVIEW The benefits of CSS Inheritance Understanding document structure Writing style rules Attaching styles to the HTML document The cascade The box model CSS units of measurement

More information

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

INTRODUCTION TO CSS. Mohammad Jawad Kadhim INTRODUCTION TO CSS Mohammad Jawad Kadhim WHAT IS CSS Like HTML, CSS is an interpreted language. When a web page request is processed by a web server, the server s response can include style sheets,

More information

CSS. Location, Inheritance & the Cascade. Copyright DevelopIntelligence LLC

CSS. 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 information

CSS: The Basics CISC 282 September 20, 2014

CSS: 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 information

CSS exercise - Part 1

CSS exercise - Part 1 ITIY3 Introduction to Web Publishing 1 CSS exercise - Part 1 Adding text styles to an HTML document To start the exercise open the exercise file in the editor (Notepad++ or other). Inspect the element

More information

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Review CSS Preview Review Transparent GIF headline Review JPG buttons button1.jpg button.psd button2.jpg Review Next Step Tables CSS Introducing CSS What is CSS? Cascading

More information

Assignments (4) Assessment as per Schedule (2)

Assignments (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 information

CSS. https://developer.mozilla.org/en-us/docs/web/css

CSS. 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 information

INTRODUCTION TO HTML5! CSS Styles!

INTRODUCTION 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 information

Chapter 3 Style Sheets: CSS

Chapter 3 Style Sheets: CSS WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE JEFFREY C. JACKSON Chapter 3 Style Sheets: CSS 1 Motivation HTML markup can be used to represent Semantics: h1 means that an element is a top-level heading

More information

CSS: Cascading Style Sheets

CSS: 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 information

Web Design and Development ACS-1809

Web Design and Development ACS-1809 Web Design and Development ACS-1809 Chapter 4 Cascading Style Sheet Cascading Style Sheets A style defines the appearance of a document A style sheet - a file that describes the layout and appearance of

More information

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML & CSS SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML: HyperText Markup Language LaToza Language for describing structure of a document Denotes hierarchy of elements What

More information

Cascading Style Sheets Level 2

Cascading 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 information

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx

More information

CSS 1: Introduction. Chapter 3

CSS 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 information

ITNP43: HTML Lecture 4

ITNP43: HTML Lecture 4 ITNP43: HTML Lecture 4 Niederst, Part III (3rd edn) 1 Style versus Content HTML purists insist that style should be separate from content and structure HTML was only designed to specify the structure and

More information

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model) INTRO TO CSS RECAP HTML WHAT IS CSS ADDING CSS TO YOUR HTML DOCUMENT CSS IN THE DIRECTORY TREE CSS RULES A FEW CSS VALUES (colour, size and the box model) CSS SELECTORS SPECIFICITY WEEK 1 HTML In Week

More information

CSS: Cascading Style Sheets

CSS: 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 information

BIM222 Internet Programming

BIM222 Internet Programming BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements

More information

Data Visualization (CIS/DSC 468)

Data Visualization (CIS/DSC 468) Data Visualization (CIS/DSC 468) Web Programming Dr. David Koop Definition of Visualization Computer-based visualization systems provide visual representations of datasets designed to help people carry

More information

APPLIED COMPUTING 1P01 Fluency with Technology

APPLIED COMPUTING 1P01 Fluency with Technology APPLIED COMPUTING 1P01 Fluency with Technology Cascading Style Sheets (CSS) APCO/IASC 1P01 Brock University Brock University (APCO/IASC 1P01) Cascading Style Sheets (CSS) 1 / 39 HTML Remember web pages?

More information

Data Visualization (DSC 530/CIS )

Data Visualization (DSC 530/CIS ) Data Visualization (DSC 530/CIS 602-01) HTML, CSS, & SVG Dr. David Koop Data Visualization What is it? How does it differ from computer graphics? What types of data can we visualize? What tasks can we

More information

Cascading Style Sheets (CSS)

Cascading 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 information

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University

More information

To link to an external stylesheet, the link element is placed within the head of the html page:

To 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 information

Which is why we ll now be learning how to write in CSS (or cascading sheet style)

Which is why we ll now be learning how to write in CSS (or cascading sheet style) STYLE WITH CSS My word is changing things in HTML difficult! Can you imagine if we had to do that for every single thing we wanted to change? It would be a nightmare! Which is why we ll now be learning

More information

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS cristina gena dipartimento di informatica cgena@di.unito.it http://www.di.unito.it/~cgena/ materiale e info sul corso http://www.di.unito.it/~cgena/teaching.html

More information

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

<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 information

Introduction to WEB PROGRAMMING

Introduction 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 information

CSS Cascading Style Sheets

CSS 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 information

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148 Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,

More information

Three Ways to Use CSS:

Three Ways to Use CSS: Introduction to CSS CSS Defined: Short for "Cascading Style Sheets". Determines how the elements in our XHTML documents are displayed and formatted. Designed to separate the content of a web page from

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

Client-Side Web Technologies. CSS Part I

Client-Side Web Technologies. CSS Part I Client-Side Web Technologies CSS Part I Topics Style declarations Style sources Selectors Selector specificity The cascade and inheritance Values and units CSS Cascading Style Sheets CSS specifies the

More information

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Review CSS Layout Preview Review Introducting CSS What is CSS? CSS Syntax Location of CSS The Cascade Box Model Box Structure Box Properties Review Style is cascading

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Presented by Roel Fermont 1 Today more than ever, Cascading Style Sheets (CSS) have a dominant place in online business. CSS

More information

Block & Inline Elements

Block & Inline Elements Block & Inline Elements Every tag in HTML can classified as a block or inline element. > Block elements always start on a new line (Paragraph, List items, Blockquotes, Tables) > Inline elements do not

More information

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

What is CSS? NAME: INSERT OPENING GRAPHIC HERE: What is CSS? NAME: INSERT OPENING GRAPHIC HERE: Highlight VOCABULARY WORDS that you need defined. Put a? mark in any area that you need clarified. 1 What is CSS? CSS stands for Cascading Style Sheets Styles

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

CST272 ASP.NET Style Sheets Page 1

CST272 ASP.NET Style Sheets Page 1 CST272 ASP.NET Style Sheets Page 1 1 2 3 4 5 6 Style Sheets in ASP.NET CST272 ASP.NET Creating Cascading Style Sheets (CSS) Stores information on how to present the site Cascading style sheets allow content

More information

HTML CS 4640 Programming Languages for Web Applications

HTML CS 4640 Programming Languages for Web Applications HTML CS 4640 Programming Languages for Web Applications 1 Anatomy of (Basic) Website Your content + HTML + CSS = Your website structure presentation A website is a way to present your content to the world,

More information

Cascading Style Sheets. Overview and Basic use of CSS

Cascading Style Sheets. Overview and Basic use of CSS Cascading Style Sheets Overview and Basic use of CSS What are Style Sheets? A World Wide Web Consortium (W3C) defined standard A way for web page designers to separate the formatting of a document from

More information

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

8/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 information

Cascading Style Sheet

Cascading Style Sheet Extra notes - Markup Languages Dr Nick Hayward CSS - Basics A brief introduction to the basics of CSS. Contents Intro CSS syntax rulesets comments display Display and elements inline block-level CSS selectors

More information

singly and doubly linked lists, one- and two-ended arrays, and circular arrays.

singly and doubly linked lists, one- and two-ended arrays, and circular arrays. 4.1 The Tree Data Structure We have already seen a number of data structures: singly and doubly linked lists, one- and two-ended arrays, and circular arrays. We will now look at a new data structure: the

More information

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em> Introduction to CSS Review Question 1 Which tag is used to create a link to another page? 1. 2. 3. 4. Review Question 1 Which tag is used to create a link to another page? 1. 2.

More information

CPET 499/ITC 250 Web Systems. Topics

CPET 499/ITC 250 Web Systems. Topics CPET 499/ITC 250 Web Systems Introduction to Cascading Style Sheet (CSS) Text Book: * Chapter 3: Cascading Style Sheet, Fundamentals of Web Development, 2015, by Randy Connolly and Ricardo Hoar, published

More information

CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS

CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS BASICS OF WEB DESIGN CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS 1 LEARNING OUTCOMES Describe the purpose of Cascading Style Sheets List advantages of using Cascading Style Sheets Configure color

More information

Welcome 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 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 information

ID1354 Internet Applications

ID1354 Internet Applications ID1354 Internet Applications CSS Leif Lindbäck, Nima Dokoohaki leifl@kth.se, nimad@kth.se SCS/ICT/KTH What is CSS? - Cascading Style Sheets, CSS provide the means to control and change presentation of

More information

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). WDI Fundamentals Unit 4 CSS Cheat Sheet Rule The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). Declaration A declaration is made

More information

CITS1231 Web Technologies. Introduction to Cascading Style Sheets

CITS1231 Web Technologies. Introduction to Cascading Style Sheets CITS1231 Web Technologies Introduction to Cascading Style Sheets The Problems with HTML Poor Coding No consistency in the way a document is developed. The same markup can often be written a number of ways.

More information

CSS: formatting webpages

CSS: formatting webpages CSS: formatting webpages Why CSS? separate content from formatting (style) style can be changed easily without rewriting webpages keep formatting consistent across website allows more advanced formatting

More information

Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS

Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS Level 1 Topics Workspaces Basic HTML Basic CSS Tour the Workspace The arrangement of panels and menus you use to interact with a document is called the workspace. Much of Illustrator is customizable: you

More information

To Ponder. Which one wins? .draft div.warning li { }.draft div #main li {!important; } div #main ul li { }.draft.warning ul li { }

To Ponder. Which one wins? .draft div.warning li { }.draft div #main li {!important; } div #main ul li { }.draft.warning ul li { } To Ponder Which one wins?.draft div.warning li { }.draft div #main li {!important; } div #main ul li { }.draft.warning ul li { } CSS Cont'd: Cascading Style Sheets Computer Science and Engineering College

More information

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

CSS مفاهیم ساختار و اصول استفاده و به کارگیری 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 information

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

CSS is applied to an existing HTML web document--both working in tandem to display web pages. CSS Intro Introduction to Cascading Style Sheets What is CSS? CSS (Cascading Style Sheets) is a supplementary extension to allowing web designers to style specific elements on their pages and throughout

More information

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

- 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 information

Using Dreamweaver CS6

Using Dreamweaver CS6 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just

More information

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags Recap on HTML and creating our template file Introduction

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets 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 information

Web Publishing Basics I

Web Publishing Basics I Web Publishing Basics I Jeff Pankin Information Services and Technology Contents Course Objectives... 2 Creating a Web Page with HTML... 3 What is Dreamweaver?... 3 What is HTML?... 3 What are the basic

More information

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100 Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!

More information

E , Fall 2007 More with stylesheets

E , Fall 2007 More with stylesheets I hope that you ll appreciate my use of the waterfall both as a way to calm your frayed nerves and to provide you with a metaphor for the style sheets In this document, I d like to step back a little and

More information

CSS Cont'd: Cascading Style Sheets

CSS Cont'd: Cascading Style Sheets CSS Cont'd: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 15 Recall: Example body.warning p.draft em h2 span.university.warning h2.university

More information

Web Development & Design Foundations with HTML5

Web Development & Design Foundations with HTML5 Web Development & Design Foundations with HTML5 KEY CONCEPTS Copyright Terry Felke-Morris 1 Learning Outcomes In this chapter, you will learn how to... Describe the evolution of style sheets from print

More information

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 LEARNING OUTCOMES In this chapter, you will learn how to... Describe the evolution of style sheets from print media to the Web List

More information

Web Development & Design Foundations with HTML5

Web Development & Design Foundations with HTML5 1 Web Development & Design Foundations with HTML5 CHAPTER 3 CSS BASICS Copyright Terry Felke-Morris 2 Learning Outcomes In this chapter, you will learn how to... Describe the evolution of style sheets

More information

Introduction to Cascading Style Sheet (CSS)

Introduction to Cascading Style Sheet (CSS) Introduction to Cascading Style Sheet (CSS) Digital Media Center 129 Herring Hall http://dmc.rice.edu/ dmc-info@rice.edu (713) 348-3635 Introduction to Cascading Style Sheets 1. Overview Cascading Style

More information

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles Using Dreamweaver 6 So far these exercises have deliberately avoided using HTML s formatting options such as the FONT tag. This is because the basic formatting available in HTML has been made largely redundant

More information

Reading 2.2 Cascading Style Sheets

Reading 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 information

In the early days of the Web, designers just had the original 91 HTML tags to work with.

In 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 information

Objective % Select and utilize tools to design and develop websites.

Objective % Select and utilize tools to design and develop websites. Objective 207.02 8% Select and utilize tools to design and develop websites. Hypertext Markup Language (HTML) Basic framework for all web design. Written using tags that a web browser uses to interpret

More information

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS3 is on its way - CSSs provide the means to control and change presentation of HTML documents - CSS is not

More information

INTRODUCTION TO CSS. Topics MODULE 5

INTRODUCTION TO CSS. Topics MODULE 5 MODULE 5 INTRODUCTION TO CSS Topics > Cascading Style Sheets (CSS3) Basics Adding a Style Sheet Selectors Adding Dynamic Styles to Elements CSS3 Properties CSS3 Box Model Vendor Prefixes Cascading Style

More information

Programmazione Web a.a. 2017/2018 HTML5

Programmazione Web a.a. 2017/2018 HTML5 Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text

More information

CS193X: Web Programming Fundamentals

CS193X: Web Programming Fundamentals CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) Today's schedule Announcements: - Office Hours now posted Schedule: - HTML and CSS - Inline vs block - Classes and Ids

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css charlie.jpg Linking to your HTML You need to link to your css in the of your HTML file.

More information

Book III. Working Like the Pros

Book III. Working Like the Pros Book III Working Like the Pros Contents at a Glance Chapter 1: Looking Good with Cascading Style Sheets (CSS) Chapter 2: Building Sites with Templates Chapter 3: Using Library Items and Server-Side Includes

More information

Table of Contents Chapter 9. Working with Cascading Style Sheets ... 1

Table of Contents Chapter 9. Working with Cascading Style Sheets ... 1 Table of Contents Chapter 9.... 1 Introduction... 1 Introducing Cascading Style Sheets... 2 Create CSS Styles... 2 Attribute Styles... 2 Style Types... 3 Creating a Web Page with a CSS Layout... 4 Create

More information

Web 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 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 information

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6 CS 350 COMPUTER/HUMAN INTERACTION Lecture 6 Setting up PPP webpage Log into lab Linux client or into csserver directly Webspace (www_home) should be set up Change directory for CS 350 assignments cp r

More information

Cascade Stylesheets (CSS)

Cascade Stylesheets (CSS) Previous versions: David Benavides and Amador Durán Toro (noviembre 2006) Last revision: Manuel Resinas (october 2007) Tiempo: 2h escuela técnica superior de ingeniería informática Departamento de Lenguajes

More information

IBM Forms V8.0 Custom Themes IBM Corporation

IBM Forms V8.0 Custom Themes IBM Corporation IBM Forms V8.0 Custom Themes Agenda 2 Overview Class Names How to Use Best Practice Styling Form Items Test Custom CSS Sample Overview 3 To create custom theme you must be familiar with the basic concept

More information

HTML/CSS. HTML review and extra CSS review CSS Color

HTML/CSS. HTML review and extra CSS review CSS Color HTML/CSS HTML review and extra CSS review CSS Color ID Every HTML element can carry the id attribute ID is used to uniquely identify that element from other elements on the page Can be used to allow the

More information

Introduction to Web Tech and Programming

Introduction 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 information

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS. Lecture 16 COMPSCI 111/111G SS 2018 CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS Styles A style changes the way the HTML code is displayed Same page displayed using different styles http://csszengarden.com Same page with a style sheet

More information

Setting a Background Image

Setting a Background Image More CSS More CSS Features Let's take a look at some more features available to us via CSS, as well as some techniques to make our CSS declarations more precise and efficient: Setting images as the background

More information

Tutorial 3: Working with Cascading Style Sheets

Tutorial 3: Working with Cascading Style Sheets Tutorial 3: Working with Cascading Style Sheets College of Computing & Information Technology King Abdulaziz University CPCS-665 Internet Technology Objectives Review the history and concepts of CSS Explore

More information

Appendix D CSS Properties and Values

Appendix 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 information

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank Multiple Choice. Choose the best answer. 1. Cascading Style Sheet rules are comprised of: a. Selectors and Declarations b. Properties and Declarations c. Selectors and Attributes 2. When CSS is coded in

More information

First Name Last Name CS-081 March 23, 2010 Midterm Exam

First Name Last Name CS-081 March 23, 2010 Midterm Exam First Name Last Name CS-081 March 23, 2010 Midterm Exam Instructions: For multiple choice questions, circle the letter of the one best choice unless the question explicitly states that it might have multiple

More information

Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview

Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview Mike Hamilton V.P. Product Evangelism MadCap Software mhamilton@madcapsoftware.com Presenter Information Mike Hamilton MadCap V.P. of

More information

How to Control and Override CSS by Including a CSS Link

How to Control and Override CSS by Including a CSS Link How to Control and Override CSS by Including a CSS Link Using CSS Includes User Documentation for OU By Lucero, 6-25-2014 CSS styles and definitions can be overwritten and subsequently controlled and defined

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 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 information

CS193X: Web Programming Fundamentals

CS193X: Web Programming Fundamentals CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) Today's schedule Schedule: - HTML: Background and history - Complex selectors - Box model - Debugging with Chrome Inspector

More information