Scalable and Modular Architecture for CSS. The Workshop
|
|
- Jasmin Flowers
- 5 years ago
- Views:
Transcription
1 Scalable and Modular Architecture for CSS The Workshop
2 Tweet Use the hashtag #smacss
3 Part 1: Overview
4 CSS gone wild
5 .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; }
6 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}
7 What is SMACSS?
8 1SMACSS is Categorization
9 2SMACSS is Naming Convention
10 3SMACSS is Decoupling CSS from HTML
11 4SMACSS is Increasing Semantics
12 5SMACSS is State-based Design
13 Categorization Base Layout Module State Theme
14 Base
15 html { background-color: #FFF; font-family: Arial, Helvetica, sans-serif; font-size: 14px; } body { margin: 0; padding: 0; } h1, h2, h3 { margin: 1em 0; }
16 a {} a:hover {} a:focus {}
17 Layout
18
19 Major Sections
20 Header Sidebar Content
21 .header { } width: 100%;.sidebar { float: left; width: 20%; }.content { float: right; width: 80%; }
22 Naming Convention Naming convention clarifies intent
23 .layout-header { } width: 100%;.layout-sidebar { float: left; width: 20%; }.layout-content { float: right; width: 80%; }
24 Use Class over ID Specificity is dangerous
25 Specificity Inline ID Class (pseudo-classes and attribute selectors) Element (pseudoelements) style="..." #article.article :hover [attr=val] a :first-child
26 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>
27 Specificity Buster!!important
28 Specificity Buster!!important
29 Grid Systems Like 960.gs
30 .container_12,.container_16 { margin-left: auto; margin-right: auto; width: 960px; }
31 .container_12.grid_4 { } width: 300px;.container_12.grid_5 { } width: 380px;.container_12.grid_7 { } width: 540px;
32 Module
33 Tabs Customized List Button
34 .tab {}.listview {}.btn {}
35 Sub-modules
36 Search Dark Small Large
37 .btn {}.btn-large {}.btn-small {}.btn-default {}.btn-search {}
38 Naming Convention Naming convention clarifies intent
39 Prefix Prefix sub-modules with name of module
40 State
41 Active State Default State
42 .tab {}.is-tab-active {}
43 Naming Convention Naming convention clarifies intent
44 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
45 Theme
46
47
48 .theme-header {}.theme-border {}.theme-background {}
49
50 .text-plus1 {}.text-minus1 {}
51 Part 2: In Depth
52 Depth of Applicability Because modules can exist inside other modules, limit their impact
53 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}
54 #content a { color: #039; } #sidebar a { color: #333; }
55 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900; }
56 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900; }
57 #content a { color: #039; } #sidebar a { color: #333; } #sidebar.callout a { color: #900; }
58 #content a { color: #039; } #sidebar a { color: #333; } #sidebar.callout a, #content.callout a { color: #900; }
59 #content a { color: #039; } #sidebar a { color: #333; }.callout a { color: #900!important; }
60 Reduce the Depth Use less selectors, preferably one Use child selectors to limit depth
61 #comments.comment.meta.authorname {} #comments.comment.meta.commentnumber a {}
62 .comment-author {}.comment-number > a {}
63 #content a { color: #039; } #sidebar a { color: #333; }
64 a { color: #039; }.nav > a { color: #333; }.callout > a { color: #900; }
65 State Representation Classes Pseudo-classes Attribute Selectors Media Queries
66 Class-based State
67 /* class-based state */.is-hidden { }
68 /* class-based state that only applies to a specific module */.is-module-active { }
69 Avoid Avoid a state affecting more than one module at a time.
70 /* avoid this! */.btn.is-active.menu { display: block; }
71 Pseudo-class State
72 /* Pseudo-class state */.callout:hover { }
73 .input-option { } display: none; /* Pseudo-class state */ input:checked ~.input-option { display: block; }
74 <input type="checkbox" id="opt"> <label for="opt">other?</label> <div class="input-other"> <input type="text" id="other"> <label for="other">please specify:</ label> </div>
75 Attribute Selector State
76 .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>
77 // bind a click handler to each button $(".btn").bind("click", function(){ // change the state to pressed $(this).attr('data-state', 'pressed'); });
78 Media Query State
79 @media screen and (max-width: 400px) { }.layout-content { float: none; }
80 Modular Media Queries Include media queries with the modules they affect
81 /* 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; } }
82 /* 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; } }
83 Modularize Find repeatable patterns Accept that class names may describe a visual state e.g.: big, small Keep em separated
84 Place everything in their own files base.css layout.css grid.css button.css carousel.css modal.css
85 Integrating JavaScript Scripts are written for individual modules States are modified, not inline styles
86 $('.btn').click(function(){ }); $(this).addclass('is-pressed');
87 Part 3: Process
88 Preprocessors Sass Less Stylus
89 Preprocessors Variables Nesting Functions (aka Mixins) Handles compilation of files into final product
90 gem install sass # or even better: gem install compass
91 $ sass --watch before:after
92
93 /* Variables */ $color: #369; body { } color: $color;.callout { } border-color: $color;
94 body { } color: #369;.callout { } border-color: #369;
95 /* Nesting */.nav { margin: 0; padding: 0; li { float: left; } }
96 /* Nesting */.nav { margin: 0; padding: 0; }.nav li { float: left; }
97 // beware of deep nesting #content {.nav { width: 500px; li { float:left; width: 100px; a { display:block; } } } }
98 // beware of deep nesting #content { } #content.nav { width: 500px; } #content.nav li { float:left; width:100px; } #content.nav li a { display:block; } }
99 /* Nested Media Queries */.nav > li { width: screen and (min-width: 320px) { width: 100px; float: left; screen and (min-width: 1200px) { width: 250px; } }
100 .nav > li { width: 100%; screen and (min-width: 320px) {.nav > li { width: 100px; float: left; } screen and (min-width: 1200px) {.nav > li { width: 250px; } }
101 /* Mixins border-radius($size) { -webkit-border-radius: $size; -moz-border-radius: $size; border-radius: $size; }.callout { border-radius(5px);
102 /* Mixins */.callout { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }
103 /* Functions */ $btncolor: #036;.btn { background-color: $btncolor; }.btn:hover { background-color: lighten($btncolor, 20%); }
104 .btn { background-color: #003366; }.btn:hover { background-color: #0066cc; }
105 /* Extending Classes */.btn { display: block; padding: 5px 10px; background-color: #003366; }.btn-default background-color: #0066cc; }
106 /* Extending Classes */.btn,.btn-default { display: block; padding: 5px 10px; background-color: #003366; }.btn-default { background-color: #0066cc; }
107 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
108 Proto Engine JSON HTML Template CSS l11n JavaScript
109
110 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
111
112
113 Larger Teams
114 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)
115 Small vs Large Sites
116 Small vs Large Sites Smaller sites don t have multiple people on it Smaller sites don t change as often
117 Small vs Large Sites SMACSS still works just as well
118 Part 4: Examples
119 Twitter Bootstrap
120 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
121 /* MODULE */.btn {} /* SUB-MODULE */.btn-large {}.btn-small {}.btn-mini {}
122 /* Layouts using LESS*/ // Fixed
123 /* Layouts using LESS*/.span1 { 1); }.span2 { 2); }.span3 { 3); }.span4 { 4); }
124 /* class states */.btn.active {}.btn.disabled {} /* pseudo-class states */.btn:hover {}.btn:focus {}
125 /* Media Queries */ // TABLETS AND BELOW // (max-width: 979px) {.navbar-fixed-top.navbar-inner { padding: 5px; } }
126
127 OOCSS
128 OOCSS a CSS object is a repeating visual pattern Separate structure and skin Separate container and content
129 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
130
131 /* Media Object */.media { overflow:hidden; *overflow:visible; zoom:1; }.media.img {float:left; }.media.img img {display:block;}.media.imgext {float:right;}
132 Icon Module
133
134 <ul class="menu"> <li class="menu-inbox">inbox</li> <li class="menu-drafts">drafts</li> </ul>
135 .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;
136 <li><i class="ico ico-16 ico-inbox"></i> Inbox</li>
137 .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; }
138
139 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 Wifi SSID: GTRI-CONF Password: STINGER! Username: may-conf Password: Indiana298 Ask Questions Get the most out of today Tweet Use the hashtag #smacss
More informationScalable 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 informationZen Garden. CSS Zen Garden
CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS
More informationI 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 informationUnit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors
Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!
More informationIntroduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
More informationNAVIGATION 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 informationUnveiling 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 informationCSS. https://developer.mozilla.org/en-us/docs/web/css
CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties
More information<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***
Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with
More informationCSC309 Programming on the Web week 3: css, rwd
CSC309 Programming on the Web week 3: css, rwd Amir H. Chinaei, Spring 2017 Office Hours: M 3:45-5:45 BA4222 ahchinaei@cs.toronto.edu http://www.cs.toronto.edu/~ahchinaei/ survey 1 in survey 1, you provide
More informationAPEX 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 informationGIMP 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 informationModule 2 (VII): CSS [Part 4]
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (VII): CSS [Part 4] Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals
More informationCOMS 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 informationIndex. 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 informationHTML & 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 informationCOMS 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 informationREADSPEAKER 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 informationMake 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 informationIN4MATX 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 informationGIMP 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 informationWebsite 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 informationCSS: The Basics CISC 282 September 20, 2014
CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML
More informationMultimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3
Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows
More informationPUBLISHER SPECIFIC CSS RULES
PUBLISHER SPECIFIC CSS RULES Solita Oy Helsinki Tampere Oulu 26.1.2016 2 (24) Document History Version Date Author Description 0.1 August 17, 2015 J. Similä First draft 0.2 January 26, 2015 A. Autio Fixed
More informationCSS. 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 informationHTML & 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 informationWebsite 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 informationWeb 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 informationSigns 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 informationHTML & 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 informationAPEX 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 informationAGENDA :: 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 informationScalable 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 informationCascading Style Sheets Level 2
Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin
More informationCSS 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 informationMedia 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 informationWebsite 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 informationCSC309 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 informationFriday, 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 informationCSS 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 informationCSS. 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 informationIntroduction 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 information5 Snowdonia. 94 Web Applications with C#.ASP
94 Web Applications with C#.ASP 5 Snowdonia In this and the following three chapters we will explore the use of particular programming techniques, before combining these methods to create two substantial
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More information/* ========================================================================== 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 informationCSS: Layout, Floats, and More
CSS: Layout, Floats, and More CISC 282 September 27, 2017 Pseudo Selectors CSS selectors are typically document-related Reflect an element's context in the page Nesting, containing block, tag, class(es)...
More informationOddsMatrix. 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 informationCSS: Cascading Style Sheets
CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 6 Slide 1 of 28 Week 6 Agenda
More informationSession 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style
Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use
More informationUsing 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 informationUI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
More informationData 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 informationGIMP 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 informationCascading Style Sheets (CSS)
Cascading Style Sheets (CSS) Mendel Rosenblum 1 Driving problem behind CSS What font type and size does introduction generate? Answer: Some default from the browser (HTML tells what browser how)
More informationPage 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 informationCSS for Page Layout Robert K. Moniot 1
CSS for Page Layout 2015 Robert K. Moniot 1 OBJECTIVES In this unit, you will learn: How to use style sheets for layout Controlling text flow, margins, borders, and padding Controlling visibility of elements
More informationTutorial 4: Creating Special Effects with CSS
Tutorial 4: Creating Special Effects with CSS College of Computing & Information Technology King Abdulaziz University CPCS-403 Internet Applications Programming Objectives Work with CSS selectors Create
More informationAdvanced Dreamweaver CS6
Advanced Dreamweaver CS6 Overview This advanced Dreamweaver CS6 training class teaches you to become more efficient with Dreamweaver by taking advantage of Dreamweaver's more advanced features. After this
More informationYouTube Break. https://www.youtube.com/watch?v=lvtfd_rj2he
Layout Jeff Avery YouTube Break https://www.youtube.com/watch?v=lvtfd_rj2he Positioning Visual Components Previously, we learned about event handling and model-view-control architecture. Next, we need
More informationBuilding 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 informationIndex 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 informationCreating 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 informationStyling 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 informationStyles, Style Sheets, the Box Model and Liquid Layout
Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 7 More on Links, Layout, and Mobile Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links
More informationCSS مفاهیم ساختار و اصول استفاده و به کارگیری
CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate
More informationCSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC
CSS3 Basics From www.w3schools.com & CSS Visual Dictionary Learning Curve Books, LLC CSS Box Model Margin (top, right, bottom, left) Shorthand property, equivalent to Border-width border-style border-color
More informationUsing CSS for page layout
Using CSS for page layout Advantages: Greater typographic control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control Increased accessibility
More informationCascading Style Sheets for layout II CS7026
Cascading Style Sheets for layout II CS7026 Understanding CSS float The CSS float property is also a very important property for layout. It allows you to position your Web page designs exactly as you want
More informationGetting Started with Eric Meyer's CSS Sculptor 1.0
Getting Started with Eric Meyer's CSS Sculptor 1.0 Eric Meyer s CSS Sculptor is a flexible, powerful tool for generating highly customized Web standards based CSS layouts. With CSS Sculptor, you can quickly
More informationCSS FOUNDATIONS IN-DEPTH. The nitty-gritty of css...
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css... What is CSS? Cascading Style Sheets Style sheets define formatting rules that are applied to text, images, forms, and embedded and layout elements. A
More informationCascading 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 informationIBM 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 informationData 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 informationMedia Stylesheets and Navigation with CSS goodness. Webpage Design
Media Stylesheets and Navigation with CSS goodness Webpage Design Printing web pages the problem Here s a nice enough website that is clearly designed for the screen. The links are there because they work
More informationMedia-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 informationGetting 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 informationCreating 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 informationUniversal 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 information3.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
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 informationBuilding Responsive Layouts
Building Responsive Layouts by Zoe Mickley Gillenwater @zomigi zomigi.com December 5, 2012 CSS Dev Conf hello nice to meet you 2 I don t use a mobile phone I have a process for eating these why responsive
More informationCSS: Cascading Style Sheets
What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML
More informationParashar 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 informationManaging CSS Projects with ITCSS. DaFED Novi Sad, November 2014
Hello, Serbia! Managing CSS Projects with ITCSS DaFED Novi Sad, November 2014 #itcss Harry Roberts Consultant Front-end Architect. Products, long-running projects, large teams, big codebases. @csswizardry
More informationThe 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 informationDeccansoft 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 informationChapter 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 informationCOMP519 Web Programming Lecture 7: Cascading Style Sheets: Part 3 Handouts
COMP519 Web Programming Lecture 7: Cascading Style Sheets: Part 3 Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University
More informationAssignments (4) Assessment as per Schedule (2)
Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like
More information12/9/2012. CSS Layout
Dynamic HTML CSS Layout CSS Layout This lecture aims to teach you the following subjects: CSS Grouping and nesting Selectors. CSS Dimension. CSS Display.. CSS Floating. CSS Align. 1 CSS Grouping and nesting
More informationGuidelines 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 information1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014
1/6/2019 12:28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 CATALOG INFORMATION Dept and Nbr: CS 50A Title: WEB DEVELOPMENT 1 Full Title: Web Development 1 Last Reviewed:
More informationCOPYRIGHTED 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 informationWelcome Please sit on alternating rows. powered by lucid & no.dots.nl/student
Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS
More informationUsing 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