Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is.

Slides:



Advertisements
Similar presentations
Week 10 Creating Positioned Layouts
Advertisements

CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Today CSS HTML A project.
Very quick intro HTML and CSS. Sample html A Web Title.
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
กระบวนวิชา 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.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Today’s objectives Site performance Padding, Margins, Borders
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Week 12: JQuery Write less, do more.. JQuery Basics Lightweight JavaScript Library – Emphasizes interaction between JavaScript and HTML – Reduces technical.
Art 128 Interface Programming 1 In-class Presentation Week 11B.
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.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
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.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Sascha Wener.  Definition from Microsoft Developer Network: “A theme is a unified set of design elements and color schemes that you apply to pages to.
INTERNAL CSS Casey Ames Different types of CSS There are three different types of CSS: ◦ External CSS ◦ Internal CSS ◦ Inline CSS In this presentation.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Responsive design - Bedrock to our site Responsive site templates included.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Forms and tables NOTE THAT FOR THE FORMS AND IFRAMED CONTENT TO BE RESPONSIVE THE CONTENT OWNER NEEDS TO MAKE THEM RESPONSIVE ACCORDING TO INTERNET RESPONSIVE.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Relative, absolute, and Floating Positioning, Cascading Style Sheet, and Inheritance.
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.
Advanced CSS. Display  Hiding an element can be done in two ways  display:none  Element is hidden and will no longer take up space on the page  Can.
Today’s objectives  Announcements  Positioning  Measurement units.
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
Ch 11 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Basic Elements of Responsive Web Design Jason Bengtson, MLIS, AHIP Emerging Technologies/R&D Librarian UNM Health Sciences Library and Informatics Center.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CSS.
Laying out Elements with CSS
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
4.01 Cascading Style Sheets
CSS Layouts: Positioning and Navbars
Concepts for fluid layout
Cascading Style Sheets
Cascading Style Sheets (Layout)
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Creating a Webpage with External CSS
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Web Client Side Technologies Raneem Qaddoura
Concepts for fluid layout
4.01 Cascading Style Sheets
ITI 133: HTML5 Desktop and Mobile Level I
Presentation transcript:

Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is uploaded into SharePoint as a zip-package with a predefined structure. The banner is embedded into the including page to a wrapping element with a special classes. The banner must not rely on external assets upon load time. The banner must be responsive and follow the defined breakpoints. The minimum proper expected width of layout is 320 px. 1.Mobile (width <= 767 px) 2.Tablet (width > 767px and width <= 960 px) 3.Desktop (width > 960 px and <= 1279 px) 4.Wide desktop (width >= 1280 px)

Package structure The banner package should contain –/banner.html – Static and valid HTML5 document. The content of element is copied as is to a wrapper element on the appropriate page. –/banner.css – The styles associated with the banner. –/banner.js – The script associated with the banner. –/assets/* – Static assets (e.g. images) needed by the banner. The banner.css and banner.js are linked to the wrapping page. All asset references must be relative to the css file, since the exact location of the assets are decided on the deployment. 2

The wrapping element The wrapping element is a div, with three special CSS classes, one of which you must define your own. The predefined classes are –"f-banner" – Present always on a banner. –"f-banner-COLS" – Supplementary class, providing additional information of the column count the banner is embedded in (e.g. "f-banner-1"). –"f-banner-CAMPAIGNID – A class defined an provided by YOU to identify the banner, (e.g. "f-banner-kraft-i-vattnet"). All styles, script must be written to use this class as working reference. To expedite your banner development, the banner package contains a full, valid HTML5 document. The content of body element is copied as is to the wrapping element. 3

The wrapping element – an example 4 Hello, World! Reference implementation of banner.html. The banner

Style requirements Because of legacy the styles are written desktop first and breakpoints will alter the desktop experience to fit onto mobile, tablet and wide desktop. A unique campaign CSS class must be defined, and it must start with "f-banner-". It must be used when referring to the campaign elements from script and style. The wrapping element will have three classes. –f-banner –f-banner-COLS (e.g. "f-banner-3") –f-banner-CAMPAIGNID (e.g. "f-banner-kraft-i-vattnet") All style selectors must be defined starting with class "f-banner-CAMPAIGNID". Classes "f-banner" and "f-banner-COLS" can be used to help implement banners that fit into different banner places. Banner must never affect flow of content outside the banner area. If floats are used, they must be cleared. 5

Style requirements – an example 6 /* Basic styles for layout 3, desktop */.f-banner-kraft-i-vattnet { position: relative; height: 450px; background: url(assets/bg.jpg) center center no-repeat; }.f-banner-kraft-i-vattnet h2 { position: absolute; top: 50px; left: 50px; color: white; (device-max-width: 691px) and /*... */ { /* Responsive styles for layout 1, mobile */.f-banner-kraft-i-vattnet { background: url(assets/bg-mobile.jpg); } The assets must be referred with a relative address. The styles must contain the three breakpoints and four sets of styles for layouts.

Script requirements Banner creators can rely that jQuery, 1.10 or newer is provided as $ symbol by the platform and should not include it. Banners wanting to perform initializations should do it via jQuery.ready or its aliases, never by setting window.onload, or adding an event listener with capture. During load time the banner must only access assets provided in the banner package. Any behavior implemented in script must support both mouse and touch fully. Banner must not manipulate document outside its wrapping HTML element. Accessing elements in the banner must be always referred with the campaign class (e.g. "f-banner-kraft-i-vattnet"). 7

Script requirement – an example 8 $(function() { var banner = $('.f-banner-kraft-i-vattnet'); banner.find('h2').on('click', function() { /* Perform an action */ }); Perform initialization always in jQuery.ready. Refer banner elements always by the campaign class