Post-Module CSS BTM 395: Internet Programming. Web browser usability and compatibility Web standards are a goal, but support for standards is a moving.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Introduction to HTML & CSS
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
Cascading Style Sheets
Cascading Style Sheets (CSS) “Styles” for short. Pg. 418.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Chapter 3 Working with Text and Cascading Style Sheets.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
CSS Basics LIS Webteam April 8, Why CSS? What’s wrong with HTML? Structure vs Style Early web design used hacks to style webpages with HTML – like.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
The.htm/.html Mystery When saving the template files in Internet Explorer, they will be named.htm by default. To be consistent with how the code was written.
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
The Characteristics of CSS
Using Styles and Style Sheets for Design
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  float & clear  display & visibility.
HTML with Style!. What is a Style Sheet? CSS? Style Sheet CSSCascading Style Sheets A “language” for defining style rules. Rules that tell the browser.
12/20/20151 Color Fall, 2010 Modified by Linda Kenney 10/26/10.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
MTA EXAM HTML5 Application Development Fundamentals.
CSS: Cascading Style Sheets Part II. Style Syntax.
IN THE DOCUMENT OBJECT MODEL, EACH LINE OF HTML IS AN ELEMENT (AN OBJECT), ABLE TO HAVE ATTRIBUTES, PROPERTIES AND VALUES. CSS TELLS THE BROWSER HOW TO.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Tutorial 3 Designing a Web Page with CSS
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Introduction to CSS: Selectors
Cascading Style Sheets
>> CSS Rules Selection
Cascading Style Sheets Color and Font Properties
Working with Text and Cascading Style Sheets
Web Design and Development
Presentation transcript:

Post-Module CSS BTM 395: Internet Programming

Web browser usability and compatibility Web standards are a goal, but support for standards is a moving target –Which browsers support which features: –Polyfills can be used to make up for lacksPolyfills Cross-browser testing –Many options, free and paid, existMany options Browser market share gives an idea whom you may choose to ignoreBrowser market share

The CSS Box Model: 2D Source:

The CSS Box Model: 3D Source:

Colours in HTML and CSS

Hexadecimal numbers (Hex) Binary numbers (base 2) – –Computer love it, humans… ??? Decimal numbers (base 10) –36619 –Humans love it, computers… ??? Hexadecimal numbers (base 16) –1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F –8F0B –Computers love it, computer scientists love it Binary Hex 8F0B

Color combinations Computer monitors use the primary colours of LIGHT (RED, GREEN, BLUE) Source: primary-colors-edition.htmlhttp://triadstrategies.typepad.com/triadvocate/2012/02/friday-happy-hour- primary-colors-edition.html

HTML colour names Source:

The Cascade Fundamental rule of precedence –inline style > ID > class > element –Interpret “>” to mean “has greater precedence than” –The more specific the selector, the higher the precedence it gets –For pseudo-elements, consider their meaning and scope to determine precedence Other points to note –User style sheets may exist; browser style sheets always exist –!important jumps precedence, but avoid using it—work within normal precedence rules –Avoid using inline styles, since it makes overriding precedence harder

Various CSS tips

CSS properties to note Font sizing –Various options exist, but em or % are most consistent and easiest to work withVarious options exist –Line height can be quite trickyLine height Display vs. visibility –display: none removes element from a page— it no longer exists (except in the DOM) –visibility: hidden hides the element, but leaves its space Shortcut codes exist for various propertiesShortcut codes –Order usually doesn’t matter, since values are normally mutually exclusive

Form elements For the form label element, the for attribute refers to the id, not to the name of the referenced element label Radio buttons must share the same name attribute in order to work mutually exclusivelyRadio buttons

Other CSS tips There are many, many selectors available Case sensitivity –HTML: case insensitive –CSS: generally case insensitive, except that class and ID names are case sensitive –JavaScript: case sensitive –PHP: case sensitive –Conclusion: make your life easier and always assume case sensitivity! Web fonts let you specify fonts that you can guarantee your user will seeWeb fonts