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.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
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.
Cascading Style Sheets
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
Today CSS HTML A project.
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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript.
Lesson 12- Unit L Programming Web Pages with JavaScript.
The Web Warrior Guide to Web Design Technologies
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.
COMPSCI 345 / SOFTENG 350 TUTORIAL WEEK 8 | SAM KAVANAGH.
1 Chapter 12 Working With Access 2000 on the Internet.
COS 125 Day 25. Agenda  Assignment #7 Due  Final capstone progress report due next class  Assignment #8 Posted Due April 25 One more to go  Exam #5.
MORE Cascading Style Sheets (The Positioning Model)
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
JQuery CS 268. What is jQuery? From their web site:
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Chapter 3 Working with Text and Cascading Style Sheets.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Using Styles and Style Sheets for Design
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
DHTML Positioning and Layout. What is DHTML? HTML and xHTML CSS JavaScript or VBScript.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
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.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 7.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
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.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Positioning Objects with CSS and Tables
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 6. Dynamic Documents With JavaScript.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 22, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
THE NORMAL DOCUMENT FLOW from Quick Tip: Utilizing Normal Document Flow by Alex Rodrigues on Web tuts.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
JQuery is a fast, small, and feature-rich javascript library. It makes things like HTML document traversal and manipulation, event handling, animation,
CSS Layouts: Positioning and Navbars
CSS Layouts: Grouping Elements
DynamicHTML Cascading Style Sheet Internet Technology.
DynamicHTML Cascading Style Sheet Internet Technology.
Building ASP.NET Applications 2
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Bootstrap Direct quote from source: bootstrap/
Presentation transcript:

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 give them a consistent and attractive appearance.” 11/25/2014 2

3

1. Switchable CSS classes Switching class in top-level DOM element to change properties of underlying elements 2. Change class attribute from webpage 3. Save selected theme and apply when browsing to another page However: There are many ways to achieve it 11/25/2014 4

 Assign a class to a top-level DOM-element that contains all underlying elements 11/25/2014 5

 Create a CSS file which contains different superordinate classes for your themes: 11/25/2014 6

 Create Webpages that contain class names which are used in your CSS file  Use classes because element IDs are generated within placeholders ◦ Cannot be accessed through CSS or JS if ID unknown ◦ Elements on outside of the placeholders could use IDs for CSS 11/25/2014 7

 Add a Dropdown list or similar control to your Master page  Register an Event for Javascript 11/25/2014 8

 Include a Javascript on your Main Master Page or use and embedded one  To query the DOM we will use the jQuery library  Moreover we will use a library based on jQuery to safe and load cookies ◦ No need to reinvent the wheel ◦ Advantage: Makes the Javascript straightforward and easy to understand 11/25/2014 9

 Download the libraries: ◦ ◦  Upload them to your project directory  Include them in your Main Master Page: …  Order is important due to dependencies 11/25/

 The JS code to change class from „body“ 11/25/

 “$(document).ready(function)” is important: „A page can't be manipulated safely until the document is ‘ready.’ jQuery detects this state of readiness for you. ” 11/25/

 The JS code to save and load theme state 11/25/

 Some ASP.NET controls are heavily “translated” to HTML when they are delivered by the webserver  Controls like DetailsView consist of various different HTML elements: linklink ◦ Would need to format every single HTML element since JS and CSS does not run on the server 11/25/

Solution:  Place several identical objects with different predefined themes from VS and utilize visibility in CSS  Visible by default in Webpage aspx file 11/25/

 Different types of layouts can be used ◦ Static (”always positioned according to the normal flow of the page”) ◦ Fixed („An element with fixed position is positioned relative to the browser window”) ◦ Relative („A relative positioned element is positioned relative to its normal position.“)normal position ◦ Absolute (“An absolute position element is positioned relative to the first parent element”)  Everything can be managed in CSS 11/25/

 To center the content of a HTML div tag one can use the "text-align: center“ CSS attribute 11/25/

 This also works with several contained HTML controls 11/25/

 Alternatively one can also use „margin: 0 auto” for the div tag instead of text-align  Important that the div tag has a valid with that should be larger than the contained elements ◦ Otherwise layout wrap-around 11/25/

 You can use margins and sizes with % as an indication of size  Do math or just try different values to position the elements  If the elements should utilize variable size within the div it is important to tell them to use 100% of their available space ◦ Otherwise they dont apply the size properly  Use „display: inline-block“ to prevent incorrect wrap-around 11/25/

11/25/

 Set ChildenAsTriggers=„true“ in Update Panel ◦ Most easy way to trigger events of all subordinate controls  AutoPostBack=„true“  Define OnSelectedIndexChanged handler in DDL 11/25/

1. Locate top-level form tag 2. Find placeholder for Masterpage 3. Get Control you want to alter 4. Apply Text from DDL to the target-controls‘ „Text“ attribute 11/25/

 us/library/dd588769(v=office.11).aspx us/library/dd588769(v=office.11).aspx    core/document-ready/ core/document-ready/  ng.asp ng.asp  /position-an-html-element-relative-to-its- container-using-css /position-an-html-element-relative-to-its- container-using-css 11/25/