Images in HTML Images in the foreground –src loaded separately; relative to home directory –Width & height set aside space in page; do not use this to.

Slides:



Advertisements
Similar presentations
Quiz #3 - CSS Lecture Code: Get Neighbors’ URLs for MP1
Advertisements

Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
CHAPTER 12 UNLEASHING JAVASCRIPT USING JQUERY. LEARNING OBJECTIVES How to download the JQuery library. How to integrate the JQuery library into an HTML.
CSS Dvijesh Bhatt.
Cascading style sheets (CSS)
Basics of Smarajit Dasgupta.
Tutorial 4 Creating Special Effects with CSS
CSS Sprites. What are sprites? In the early days of video games, memory for graphics was very low. So to make things load quickly and make graphics look.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
To Proudly supported by ferrycake.com. We will be printing Cash for your Community tokens every week in the Carmarthen Journal and Llanelli Star. The.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Adding Image, audio and video files to web pages Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
Adding Graphics to Web Pages. CSS does not have any properties specifically aimed at formatting images Use properties you have already learned, i.e.,
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer
Planning your site/organization on the Web Please use speaker notes for additional information!
Chcslonline.org Text –wrapping around Images. chcslonline.org To wrap text around an image, lets set up a style in our style sheet. open a new notepad.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
Colors and backgrounds The following CSS properties will be explained: 1.color 2.background-color 3.background-image 4.background-repeat 5.background-attachment.
CSS animations CSS transitions can be regarded as simple animations, –where we have only two keyframes, one at the start and one at the end In contrast,
So far, we have looked at CSS selectors that correlate with HTML tags Now, we’ll see how you can define your own selectors using class and ID selectors.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 11: Deeper into CSS - Spring 2011.
Small group worksheet Lecture Code:
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
Colors and backgrounds The following CSS properties will be explained: 1.color 2.background-color 3.background-image 4.background-repeat 5.background-position.
Dawn Pedersen Art Institute. What Are CSS Sprites? Back in the day, sprites were the images in games that swapped one little image for another in a specific.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Tutorial 4 Creating Page Layouts with CSS
What to Style? Styles for elements establish consistency –Styles for HTML or body become the default –Only create styles for pre-defined elements* Styles.
Web Design (15) CSS Opacity, Link Colours & Background Images.
JQuery Animation. If you look at example1.html, you will see that it is a basic web page with links to the jquery library, and a script.js file and some.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Creating Image Based Rollovers with CSS Mike Takahashi Office of Instructional Development.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
JQuery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation.
CSS.
CSS Layouts: Grouping Elements
CSS Transitions and Animations
Web Systems & Technologies
CSS Transitions and Animations
Chapter 7 Page Layout Basics Key Concepts
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 7th Edition
The Web Wizard’s Guide To DHTML and CSS
CSS Borders and Margins.
JavaScript & jQuery Timers, Effects, and Animations
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
Putting An Image on Your Web Page
Creating a Webpage with External CSS
Web Development & Design Foundations with H T M L 5
Cascading Style Sheets™ (CSS)
An Introduction to Animation
Web Programming and Design
Presentation transcript:

Images in HTML Images in the foreground –src loaded separately; relative to home directory –Width & height set aside space in page; do not use this to reduce images! –Alt for web readers Images in the background –Background-image –Background-repeat –Background-position

Image Maps Indicate a map for the image Define the map, with areas for links

Image Sprites Putting multiple images in 1 file reduces download times Create links Use CSS to show 1 at a time #navlist li, #navlist a{height:44px;display:block;} #home{left:0px;width:46px; #home{background:url('img_navsprites_hover.gif') 0 0;} #home a:hover{background: url('img_navsprites_hover.gif') px;}

Image Slideshow with CSS Put all your images in a single image Show animation in a div with no overflow #slideshow { overflow: hidden; } Put a div in that, where background is animated #slideshow div { background: url("myshow.jpg") 0 0; height: 200px; width: 1000px; position:absolute; top:0; left:0; animation: myslideshow 60s linear infinite; -webkit-animation: myslideshow 60s linear infinite; -moz-animation: myslideshow 60s linear infinite; }

CSS Slideshow (con't) Define animations –animation-name –animation-duration –animation-timing-function Define myslideshow { 0% {left: 0px;} 100% {left: 200%;} myslideshow { 0% {left: 0px;} 100% {left: 200%;} }

Image Slideshow with jQuery The animate method changes a selector's styles over time (selector).animate({styles},speed,easing,callback) –Property names are "camel-cased" –Speed in milliseconds (400 default) –Easing: swing (default) vs. linear –Callback is executed after animation completes The fade method allows a selector to fade in or out over a specified timeframe (selector).fadeIn(speed,callback) (selector).fadeOut(speed,callback)