Scalable and Modular Architecture for CSS. The Workshop

Size: px
Start display at page:

Download "Scalable and Modular Architecture for CSS. The Workshop"

Transcription

1 Scalable and Modular Architecture for CSS The Workshop

2 Wifi SSID: GTRI-CONF Password: STINGER! Username: may-conf Password: Indiana298

3 Ask Questions Get the most out of today

4 Tweet Use the hashtag #smacss

5 Thanks!

6 Part 1: Overview

7 CSS gone wild

8 .block { display:block!important; }.inline { display:inline!important; }.hide { display:none!important; }.s-none { margin:0!important; }.s { margin:10px!important; }.ss { margin:20px!important; }.sr { margin-right:10px!important; }.p-none { padding:0!important; }.p { padding:10px!important; }.pp { padding:20px!important; }.pt { padding-top:10px!important; }.w-auto { width:auto!important; }

9 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}

10 What is SMACSS?

11 1SMACSS is Categorization

12 2SMACSS is Naming Convention

13 3SMACSS is Decoupling CSS from HTML

14 4SMACSS is Increasing Semantics

15 5SMACSS is State-based Design

16 Categorization Base Layout Module State Theme

17 Base

18 html { background-color: #FFF; font-family: Arial, Helvetica, sans-serif; font-size: 14px; } body { margin: 0; padding: 0; } h1, h2, h3 { margin: 1em 0; }

19 a {} a:hover {} a:focus {}

20 Layout

21

22 Major Sections

23 Header Sidebar Content

24 .header { } width: 100%;.sidebar { float: left; width: 20%; }.content { float: right; width: 80%; }

25 Naming Convention Naming convention clarifies intent

26 .layout-header { } width: 100%;.layout-sidebar { float: left; width: 20%; }.layout-content { float: right; width: 80%; }

27 Use Class over ID Specificity is dangerous

28 Specificity Inline ID Class (pseudo-classes and attribute selectors) Element (pseudoelements) style="..." #article.article :hover [attr=val] a :first-child

29 a { color: #039; }.subdued { color: #666; } #cancel { color: #900; } <a href="...">link</a> <a href="..." class="subdued">link</a> <a href="..." id="cancel">link</a> <a href="..." id="cancel" class="subdued">link</a>

30 Specificity Buster!!important

31 Specificity Buster!!important

32 Grid Systems Like 960.gs

33 .container_12,.container_16 { margin-left: auto; margin-right: auto; width: 960px; }

34 .container_12.grid_4 { } width: 300px;.container_12.grid_5 { } width: 380px;.container_12.grid_7 { } width: 540px;

35 Module

36 Tabs Customized List Button

37 .tab {}.listview {}.btn {}

38 Sub-modules

39 Search Dark Small Large

40 .btn {}.btn-large {}.btn-small {}.btn-default {}.btn-search {}

41 Naming Convention Naming convention clarifies intent

42 Prefix Prefix sub-modules with name of module

43 State

44 Active State Default State

45 .tab {}.is-tab-active {}

46 Naming Convention Naming convention clarifies intent

47 Prefix Prefix states with is- is- prefix indicates likelihood of JavaScript dependency is- indicates a toggleable state. States that are specific to a module should include module name

48 Theme

49

50

51 .theme-header {}.theme-border {}.theme-background {}

52

53 .text-plus1 {}.text-minus1 {}

54 Part 2: In Depth

55 Is it Base?

56 <button> <table> <input>

57 button { display: inline-block; padding: 3px 30px; border-radius: 25px; background-color: #4A6F81; background-image: linear-gradient(..); box-shadow: px #4A6F81; text-decoration: none; color: white; font-weight: bold; font-size: 150%; }

58 .btn { display: inline-block; padding: 3px 30px; border-radius: 25px; background-color: #4A6F81; background-image: linear-gradient(..); box-shadow: px #4A6F81; text-decoration: none; color: white; font-weight: bold; font-size: 150%; }

59 table { width: 100%; border: solid black; border-width: 1px 0; } td { border: solid black; border-width: 1px 0; }

60 table { } width: 100%;.comparison { border: solid black; border-width: 1px 0; }.comparison td { border: solid black; border-width: 1px 0; }

61 Depth of Applicability Because modules can exist inside other modules, limit their impact

62 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}

63 #content a { color: #039; } #sidebar a { color: #333; }

64 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900; }

65 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900; }

66 #content a { color: #039; } #sidebar a { color: #333; } #sidebar.callout a { color: #900; }

67 #content a { color: #039; } #sidebar a { color: #333; } #sidebar.callout a, #content.callout a { color: #900; }

68 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900!important; }

69 Reduce the Depth Use fewer selectors, preferably one Use child selectors to limit depth

70 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}

71 .comment-author {}.comment-number > a {}

72 #content a { color: #039; } #sidebar a { color: #333; }

73 a { color: #039; }.nav > a { color: #333; }.callout > a { color: #900; }

74 State Representation Classes Pseudo-classes Attribute Selectors Media Queries

75 Class-based State

76 /* class-based state */.is-hidden { }

77 /* class-based state that only applies to a specific module */.is-module-active { }

78 Avoid Avoid a state affecting more than one module at a time.

79 /* avoid this! */.btn.is-active.menu { display: block; }

80 Pseudo-class State

81 /* Pseudo-class state */.callout:hover { }

82 .input-option { } display: none; /* Pseudo-class state */ input:checked ~.input-option { display: block; }

83 <input type="checkbox" id="opt"> <label for="opt">other?</label> <div class="input-option"> <input type="text" id="other"> <label for="other">please specify:</ label> </div>

84 Attribute Selector State

85 .btn[data-state=default] { color: #333; }.btn[data-state=pressed] { color: #000; }.btn[data-state=disabled] { opacity:.5; pointer-events: none; } <!-- HTML --> <button class="btn" datastate="disabled">disabled</button>

86 // bind a click handler to each button $(".btn").bind("click", function(){ // change the state to pressed $(this).attr('data-state', 'pressed'); });

87 Media Query State

88 @media screen and (max-width: 400px) { }.layout-content { float: none; }

89 Modular Media Queries Include media queries with the modules they affect

90 /* default state for nav items */.nav > li { float: none; } /* alternate state for nav items on larger screens screen and (min-width: 400px) {.nav > li { float: left; } }

91 /* default layout */.l-content { float: left; width: 75%; }.l-sidebar { float: right; width: 25%; } /* alternate state for layout on small screens screen and (max-width: 400px) {.l-content,.l-sidebar { float: none; width: auto; } }

92 Modularize Find repeatable patterns Accept that class names may describe a visual state e.g.: big, small Keep em separated

93 Place everything in their own files base.css layout.css grid.css button.css carousel.css modal.css

94 Integrating JavaScript Scripts are written for individual modules States are modified, not inline styles

95 $('.btn').click(function(){ }); $(this).addclass('is-pressed');

96 Part 3: Process

97 Preprocessors Sass Less Stylus

98 Preprocessors Variables Nesting Functions (aka Mixins) Handles compilation of files into final product

99 gem install sass # or even better: gem install compass

100 $ sass --watch before:after

101

102 /* Variables */ $color: #369; body { } color: $color;.callout { } border-color: $color;

103 body { } color: #369;.callout { } border-color: #369;

104 /* Nesting */.nav { margin: 0; padding: 0; li { float: left; } }

105 /* Nesting */.nav { margin: 0; padding: 0; }.nav li { float: left; }

106 // beware of deep nesting #content {.nav { width: 500px; li { float:left; width: 100px; a { display:block; } } } }

107 // beware of deep nesting #content { } #content.nav { width: 500px; } #content.nav li { float:left; width:100px; } #content.nav li a { display:block; }

108 /* Nested Media Queries */.nav > li { width: screen and (min-width: 320px) { width: 100px; float: left; screen and (min-width: 1200px) { width: 250px; } }

109 .nav > li { width: 100%; screen and (min-width: 320px) {.nav > li { width: 100px; float: left; } screen and (min-width: 1200px) {.nav > li { width: 250px; } }

110 /* Mixins border-radius($size) { -webkit-border-radius: $size; -moz-border-radius: $size; border-radius: $size; }.callout { border-radius(5px);

111 /* Mixins */.callout { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }

112 /* Functions */ $btncolor: #036;.btn { background-color: $btncolor; }.btn:hover { background-color: lighten($btncolor, 20%); }

113 .btn { background-color: #003366; }.btn:hover { background-color: #0066cc; }

114 /* Extending Classes */.btn { display: block; padding: 5px 10px; background-color: #003366; }.btn-default background-color: #0066cc; }

115 /* Extending Classes */.btn,.btn-default { display: block; padding: 5px 10px; background-color: #003366; }.btn-default { background-color: #0066cc; }

116 Prototyping Build and test individual components Allows for front-end development independent of engineering Create centralized repository for multiple projects Proto Engine can use different technology than engineering

117 Proto Engine JSON HTML Template CSS l11n JavaScript

118

119 Performance Pull in style sheets when you need them Smaller rule sets make it easier on browsers Google Page Speed recommends a single ID or class selector

120

121

122 Larger Teams

123 Larger Teams Separation of files allows multiple members of the team to work on separate files Modular approach works well with OOP on server side (hence OOCSS)

124 Small vs Large Sites

125 Small vs Large Sites Smaller sites don t have multiple people on it Smaller sites don t change as often

126 Small vs Large Sites Change Large Small Time

127 Part 4: Examples

128 Twitter Bootstrap

129 Twitter Bootstrap Scoping families of classes with a prefix (e.g.,.modal-header instead of.modal.header) Stopping the cascade of CSS, or at least limiting it (e.g.,.modal-title instead of.modal h3) Avoid element tags in selectors

130 /* MODULE */.btn {} /* SUB-MODULE */.btn-large {}.btn-small {}.btn-mini {}

131 /* Layouts using LESS*/ // Fixed

132 /* Layouts using LESS*/.span1 { 1); }.span2 { 2); }.span3 { 3); }.span4 { 4); }

133 /* class states */.btn.active {}.btn.disabled {} /* pseudo-class states */.btn:hover {}.btn:focus {}

134 /* Media Queries */ // TABLETS AND BELOW // (max-width: 979px) {.navbar-fixed-top.navbar-inner { padding: 5px; } }

135

136 OOCSS

137 OOCSS a CSS object is a repeating visual pattern Separate structure and skin Separate container and content

138 OOCSS Base: Uses base reset and font declarations from YUI Layout: Has a grid system Modules: comes with a few modules out of the box Theme: Creates a greater separation between structure and skin

139

140 /* Media Object */.media { overflow:hidden; *overflow:visible; zoom:1; }.media.img {float:left; }.media.img img {display:block;}.media.imgext {float:right;}

141 Icon Module

142

143 <ul class="menu"> <li class="menu-inbox">inbox</li> <li class="menu-drafts">drafts</li> </ul>

144 .menu li { background: url(/img/sprite.png) norepeat 0 0; padding-left: 20px; }.menu.menu-inbox { } background-position: 0-20px;.menu.menu-drafts { } background-position: 0-40px;

145 <li><i class="ico ico-16 ico-inbox"></i> Inbox</li>

146 .ico { display: inline-block; background: url(/img/sprite.png) norepeat; line-height: 0; vertical-align: bottom; }.ico-16 { height: 16px; width: 16px; }.ico-inbox { background-position: 20px 20px; }.ico-drafts { background-position: 20px 40px; }

147

148 Fin Resources to be posted at: Feedback can be sent to Thank you!

Scalable and Modular Architecture for CSS. The Workshop

Scalable and Modular Architecture for CSS. The Workshop Scalable and Modular Architecture for CSS The Workshop Tweet Use the hashtag #smacss Part 1: Overview CSS gone wild .block { display:block!important; }.inline { display:inline!important; }.hide { display:none!important;

More information

Scalable and Modular Architecture for CSS. The Workshop

Scalable and Modular Architecture for CSS. The Workshop Scalable and Modular Architecture for CSS The Workshop Wifi SSID: ISITE Guest Password: DareToDelight! Ask Questions Get the most out of today Tweet Use the hashtag #smacss Part 1: Overview CSS gone wild

More information

Zen Garden. CSS Zen Garden

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

I need two demo sites. And I need them in two days

I need two demo sites. And I need them in two days smacss your up @minamarkham I need two demo sites And I need them in two days CSS is easy. hard CSS is easy. CSS is bullshit. Modular CSS Focusing on creating healthy front-end modules instead of complete

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

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

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple

More information

NAVIGATION INSTRUCTIONS

NAVIGATION INSTRUCTIONS CLASS :: 13 12.01 2014 NAVIGATION INSTRUCTIONS SIMPLE CSS MENU W/ HOVER EFFECTS :: The Nav Element :: Styling the Nav :: UL, LI, and Anchor Elements :: Styling the UL and LI Elements CSS DROP-DOWN MENU

More information

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

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

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

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

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

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR DYNAMIC BACKGROUND IMAGE Before you begin this tutorial, you will need

More information

Module 2 (VII): CSS [Part 4]

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

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 Advanced Skinning Guide Introduction The graphical user interface of ReadSpeaker Enterprise Highlighting is built with standard web technologies, Hypertext Markup

More information

APEX Developers Do More With Less!! How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4.

APEX Developers Do More With Less!! How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4. APEX Developers Do More With Less!! Roel Hartman Copyright 2016 APEX Consulting 2 How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4. Attribute 3 How do YOU

More information

APEX Developers - Do More With Less!!

APEX Developers - Do More With Less!! APEX Developers - Do More With Less!! Roel Hartman Copyright 2014 APEX Consulting 2 LESS Leaner CSS SASS Syntactically Awesome StyleSheets SCSS Sassy CSS OOCSS Object Oriented CSS Issue 1 You need a CSS

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

CSC309 Programming on the Web week 3: css, rwd

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

IN4MATX 133: User Interface Software

IN4MATX 133: User Interface Software IN4MATX 133: User Interface Software Lecture 21: SASS and Styling in Ionic Professor Daniel A. Epstein TA Jamshir Goorabian TA Simion Padurean 1 Class notes Quiz 4 (Tuesday) will cover November 5th s lecture

More information

CSC309 Winter Lecture 2. Larry Zhang

CSC309 Winter Lecture 2. Larry Zhang CSC309 Winter 2016 Lecture 2 Larry Zhang 1 Announcements Assignment 1 is out, due Jan 25, 10pm. Start Early! Work in groups of 2, make groups on MarkUs. Make sure you can login to MarkUs, if not let me

More information

Signs of Spring App. Release Notes Version 1.0

Signs of Spring App. Release Notes Version 1.0 Signs of Spring App Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen. On the right sidebar, click on Manage in the App Parameters area. Edit

More information

PUBLISHER SPECIFIC CSS RULES

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

Website Development with HTML5, CSS and Bootstrap

Website Development with HTML5, CSS and Bootstrap Contact Us 978.250.4983 Website Development with HTML5, CSS and Bootstrap Duration: 28 hours Prerequisites: Basic personal computer skills and basic Internet knowledge. Course Description: This hands on

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

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

CSS. Shan-Hung Wu CS, NTHU

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

Media Types & Media Features

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 information

Building Page Layouts

Building Page Layouts Building Page Layouts HTML & CSS From Scratch Slides 3.1 Topics Display Box Model Box Aesthetics Float Positioning Element Display working example at: h9ps://;nker.io/3a2bf Source: unknown. Please contact

More information

/* ========================================================================== PROJECT STYLES

/* ========================================================================== PROJECT STYLES html { box-sizing: border-box; *, *:before, *:after { box-sizing: inherit; img { max-width: 100%; border: 0; audio, canvas, iframe, img, svg, video { vertical-align: middle; /* Remove gaps between elements

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

CSS. MPRI : Web Data Management. Antoine Amarilli Friday, December 7th 1/43

CSS. MPRI : Web Data Management. Antoine Amarilli Friday, December 7th 1/43 CSS MPRI 2.26.2: Web Data Management Antoine Amarilli Friday, December 7th 1/43 Overview Cascading Style Sheets W3C standard: CSS 1 1996 CSS 2 1998 CSS 2.1 2011, 487 pages CSS 3.0 Ongoing (various modules),

More information

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

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

CSS Selectors. element selectors. .class selectors. #id selectors

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

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

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

5 Snowdonia. 94 Web Applications with C#.ASP

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

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

HTML & CSS November 19, 2014

HTML & CSS November 19, 2014 University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Digital Humanities Workshop Series Center for Digital Research in the Humanities 11-19-2014 HTML & CSS November 19, 2014

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

CSS worksheet. JMC 105 Drake University

CSS worksheet. JMC 105 Drake University CSS worksheet JMC 105 Drake University 1. Download the css-site.zip file from the class blog and expand the files. You ll notice that you have an images folder with three images inside and an index.html

More information

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever

More information

Friday, January 18, 13. : Now & in the Future

Friday, January 18, 13. : Now & in the Future : Now & in the Future CSS3 is Modular Can we use it now? * Use it for non-critical things on the experience layer. * Check sites that maintain tables showing browser support like http://www.findmebyip.com/litmus

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

Website Design (Weekday) By Alabian Solutions Ltd , 2016

Website Design (Weekday) By Alabian Solutions Ltd ,  2016 Website Design (Weekday) By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 TECHNOLOGIES DATE TIME Day 1 HTML Part 1 Intro to the web The web Clients Servers

More information

HTML & CSS. Rupayan Neogy

HTML & CSS. Rupayan Neogy HTML & CSS Rupayan Neogy But first My Take on Web Development There is always some tool that makes your life easier. Hypertext Markup Language The language your web browser uses to describe the content

More information

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES CLASS :: 13 12.01 2014 AGENDA SIMPLE CSS MENU W/ HOVER EFFECTS :: The Nav Element :: Styling the Nav :: UL, LI, and Anchor Elements :: Styling the UL and LI Elements TEMPLATE CREATION :: Why Templates?

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

Web Design & Dev. Combo. By Alabian Solutions Ltd , 2016

Web Design & Dev. Combo. By Alabian Solutions Ltd ,  2016 Web Design & Dev. Combo By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 HTML PART 1 Intro to the web The web Clients Servers Browsers Browser Usage Client/Server

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

Media-Specific Styles

Media-Specific Styles Media-Specific Styles Same HTML, Different CSS R. Scott Granneman r Jans Carton 1.5 2008 R. Scott Granneman Last updated 2017-06-13 You are free to use this work, with certain restrictions. For full licensing

More information

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS: WEBSITE PROJECT 2 PURPOSE: The purpose of this project is to begin incorporating color, graphics, and other visual elements in your webpages by implementing the HTML5 and CSS3 code discussed in chapters

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

OddsMatrix. Everything is possible. SASS Code Standards

OddsMatrix. Everything is possible. SASS Code Standards OddsMatrix Everything is possible. SASS Code Standards Why do we need SASS standards? Switching projects (when we need to, when we want to) Maximizing efficiency (finding stuff fast) Fast bug-fixing Fast

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

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

Deccansoft Software Services

Deccansoft Software Services Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module

More information

Creating and Installing Custom Plesk for Windows Skins

Creating and Installing Custom Plesk for Windows Skins SWsoft, Inc. Creating and Installing Custom Plesk for Windows Skins Plesk 7.5 for Windows Revision 1.0 (c) 1999-2005 SWsoft, Inc. 13755 Sunrise Valley Drive Suite 325 Herndon VA 20171 USA Phone: +1 (703)

More information

Website Design (Weekend) By Alabian Solutions Ltd , 2016

Website Design (Weekend) By Alabian Solutions Ltd ,  2016 Website Design (Weekend) By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 TECHNOLOGIES DATE TIME Day1 Section 1 HTML Part 1 12am 5pm Intro to the web The web

More information

Scalable and Modular Architecture for CSS. A flexible guide to developing sites small and large. by Jonathan Snook

Scalable and Modular Architecture for CSS. A flexible guide to developing sites small and large. by Jonathan Snook } Scalable and Modular Architecture for CSS A flexible guide to developing sites small and large. by Jonathan Snook Copyright 2012 Jonathan Snook All Rights Reserved SMACSS: Scalable and Modular Architecture

More information

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles Using Dreamweaver CC 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

More information

Getting Started with Eric Meyer's CSS Sculptor 1.0

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

Introduction to using HTML to design webpages

Introduction to using HTML to design webpages Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the

More information

Creating and Building Websites

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

Getting your work online. behance.net cargo collective krop coroflot

Getting your work online. behance.net cargo collective krop coroflot Getting your work online behance.net cargo collective krop coroflot behance online presence behance.net has a free and pro version. The free version is fine for getting internships. Free Version Pros networked

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

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML 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

Lab Introduction to Cascading Style Sheets

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

Creating Layouts Using CSS. Lesson 9

Creating Layouts Using CSS. Lesson 9 Creating Layouts Using CSS Lesson 9 CSS Page Layout Advantages Greater typography control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control

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

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

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

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

Styling Web Applications Presented by Roel Fermont

Styling Web Applications Presented by Roel Fermont Styling Web Applications Presented by Roel Fermont As Graphic Designer at Data Access, I have helped many developers making wellrunning applications look great. I ll show you what great results can be

More information

Parashar Technologies HTML Lecture Notes-4

Parashar Technologies HTML Lecture Notes-4 CSS Links Links can be styled in different ways. HTML Lecture Notes-4 Styling Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.). a { color: #FF0000; In addition,

More information

Creating a Navigation Bar with a Rollover Effect

Creating a Navigation Bar with a Rollover Effect Creating a Navigation Bar with a Rollover Effect These instructions will teach you how to create your own navigation bar with a roll over effect for your personal website using Adobe Dreamweaver CS4. Your

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

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii CONTENTS IN DETAIL FOREWORD by Joost de Valk PREFACE xvii xix INTRODUCTION xxi The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

More information

Web Engineering CSS. By Assistant Prof Malik M Ali

Web Engineering CSS. By Assistant Prof Malik M Ali Web Engineering CSS By Assistant Prof Malik M Ali Overview of CSS CSS : Cascading Style Sheet a style is a formatting rule. That rule can be applied to an individual tag element, to all instances of a

More information

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1 59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The

More information

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

Guidelines for doing the short exercises

Guidelines for doing the short exercises 1 Short exercises for Murach s HTML5 and CSS Guidelines for doing the short exercises Do the exercise steps in sequence. That way, you will work from the most important tasks to the least important. Feel

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

CSS Futures. Web Development

CSS Futures. Web Development CSS Futures Web Development CSS Futures CSS3 CSS Preprocessors: SASS & LESS CSS Frameworks CSS3 CSS3 is the latest standard for CSS Combined with HTML5, CSS3 makes it possible to create highly interactive

More information

Web Application Styling

Web Application Styling 1 PRESENTED BY ORYX Web Application Styling Presented by Roel Fermont & Harm Wibier 2 Todays goals is to learn how to make your highly functional applications look great! We ll show you where to start

More information

Web Authoring and Design. Benjamin Kenwright

Web Authoring and Design. Benjamin Kenwright CSS Div Layouts Web Authoring and Design Benjamin Kenwright Outline Review Why use Div Layout instead of Tables? How do we use the Div Tag? How to create layouts using the CSS Div Tag? Summary Review/Discussion

More information

Index LICENSED PRODUCT NOT FOR RESALE

Index LICENSED PRODUCT NOT FOR RESALE Index LICENSED PRODUCT NOT FOR RESALE A Absolute positioning, 100 102 with multi-columns, 101 Accelerometer, 263 Access data, 225 227 Adding elements, 209 211 to display, 210 Animated boxes creation using

More information

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning Page Layout contents of this presentation are Copyright 2009 Marty Stepp and Jessica Miller 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning 2 1 4.1

More information

Wireframe :: tistory wireframe tistory.

Wireframe :: tistory wireframe tistory. Page 1 of 45 Wireframe :: tistory wireframe tistory Daum Tistory GO Home Location Tags Media Guestbook Admin 'XHTML+CSS' 7 1 2009/09/20 [ ] XHTML CSS - 6 (2) 2 2009/07/23 [ ] XHTML CSS - 5 (6) 3 2009/07/17

More information

Universal CSS Navigation Menu: Advanced Styling Patrick Julicher Universal CSS Navigation Menu: Advanced Styling

Universal CSS Navigation Menu: Advanced Styling Patrick Julicher Universal CSS Navigation Menu: Advanced Styling Universal CSS Navigation Menu: Advanced Styling Page 1 of 15 Content 1. Introduction... 3 2. How to use... 3 2.1. Editing existing CSS Styles... 3 2.2. Creating new CSS Styles... 6 3. Explanation of styles...

More information

HTML and CSS a further introduction

HTML and CSS a further introduction HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few

More information

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

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

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

Cascading Style Sheets CSCI 311

Cascading Style Sheets CSCI 311 Cascading Style Sheets CSCI 311 Learning Objectives Learn how to use CSS to style the page Learn to separate style from structure Styling with CSS Structure is separated from style in HTML5 CSS (Cascading

More information

Web Recruitment Module Customisation

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