Using Sprites in HTML and CSS AWAR4S May 2012. 1) Create a Sprite Image A sprite is a specially formatted image which can show variants of various sub-images.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets Alternative to HTML tag style.
Advertisements

Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Working with Images and HTML
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Internet Basics & Way Beyond!
Working with Web Tables
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
 Review ◦ DMACC  P drive ◦ password: stem2014 first line  always put your  Club Web site :
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
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:
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
CSS Cascading Style Sheets Brief Introduction
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.
Kapi’olani Community College Art 128 Interface Programming 1 In-class Presentation Week 6A.
Basic HTML. HTML Background November 1990, first created by Tim Berners Lee, the father/inventor of WWW Knighted by Queen Victoria in 2004 Hypertext is.
Computing Concepts Advanced HTML: Tables and Forms.
Creating Web Pages Getting Started. Overview What Web Pages Are How Web Pages are Formatted Putting Graphics on Web Pages How Web Pages are Linked Linking.
Graphics for the Web Graphic formats and other considerations.
HTML Lesson 5 TBE 540. Prerequisites The user must be able to… –Create basic web pages with a text editor and/or a web page editor.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
Introduction to.
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.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
The Nav Bar. Nav is short for Navigation. Having a Navigation Bar makes searching for information easier on those accessing your page. Here are some common.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Understanding HTML Code
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
GAME:IT Pinball Objectives: Review skills from Introduction Introduce gravity and friction Introduce GML coding into programming.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
INTRODUCTORY Tutorial 9 Creating Frames. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Decide when to use frames for a Web site Learn.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
CSS. What does it stand for? ___________________.
HTML  HyperText Markup Language  The Language used to design web pages  Code mixed with text  Tags enclosed in angle brackets  Single tags  Paired.
CNIT 131 HTML5 - Tables.
Applying CSS to Tables Stylish Tables.
With Microsoft FrontPage 2000
Inserting and Working with Images
Look at Me Mod 4 Lesson 3 Graphics Module 4- Build a Game.
Representing Images 2.6 – Data Representation.
Presentation transcript:

Using Sprites in HTML and CSS AWAR4S May 2012

1) Create a Sprite Image A sprite is a specially formatted image which can show variants of various sub-images which are inside of it. They are frequently used in video and computer games, especially older ones. Sprites can be either animated or non-animated. Here is an example of a sprite from the w3schools tutorial:

Using Fireworks Your first step in this assignment will be to use a graphics program such as Fireworks to create a sprite. The example on the last slide, will lead to a more complicated sprite in the w3 tutorial:

In Fireworks… In Fireworks (or another graphics program which can produce bitmap images), you will design a sprite which has AT LEAST FOUR cells. The sprite below has three cells:, and the more complicated one has six cells:

Creating Your Sprite Your sprite must have at least four cells. These should be two images on top, with two variants below. If you wish, you may try to do four separate cells all in the same row, but this may be more complicated. NOTE: You will have to know where individual cells start and stop in terms of pixel count! Use different graphics programs if they help to format and count the pixels in your image. NOTE:.gif,.png, and other bitmap formats should all work. The w3schools examples all use.gifs.

Code From W3Schools Page

2) Format the Top Row Follow the instructions on the w3schools tutorial page under the heading ‘Create a Navigation List’: me=trycss_sprites_nav Note that at this point, hover effects have not yet been added!

3) Hover Effects If your sprite has two rows of variants, the next step will be to format the hovering effects which allow the second row to be displayed. The example from the w3schools page is at: =trycss_sprites_hover_nav =trycss_sprites_hover_nav NOTE: Your sprite will have different spacing from the example image which was used! NOTE: Borders between individual cells should all be exactly ONE pixel in width, as this makes finding cell dimensions incredibly easy.