Gradients.

Slides:



Advertisements
Similar presentations
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Advertisements

Cascading Style Sheets
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Introduction to CSS.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
กระบวนวิชา 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.
Introduction to CSS CSS Backgrounds - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Colors & Backgrounds Instructor: Joseph DiVerdi,
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.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
INTERNAL CSS Casey Ames Different types of CSS There are three different types of CSS: ◦ External CSS ◦ Internal CSS ◦ Inline CSS In this presentation.
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.
CSW131 Steven Battilana 1 CSW 131 – Supplement 1 (X)HTML / CSS Not Covered or in Book Prepared by Prof. B. for use with Teach Yourself Visually Web Design.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Adding Graphics to Web Pages. CSS does not have any properties specifically aimed at formatting images Use properties you have already learned, i.e.,
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
More CSS.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
© 2001 – All Rights Reserved – Page 1 Web Graphics & Animating Web Graphics.
Gradients. What are Gradients? Gradients are graphics files that gradually blend from one shade of color to another. By using gradients as background.
Lecture 2: Cascading Style Sheets (CSS) Instructor: Dr. M. Anwar Hossain.
© 2001 – All Rights Reserved – Page 1 Web Graphic Elements Web Graphic Elements.
WEB DESIGN PRINCIPLES Dale Blasingame School of Journalism & Mass Communication Texas State University.
Web Design (15) CSS Opacity, Link Colours & Background Images.
1 ITEC 4830 Graphics Design Chapter 1 Dreamweaver MX 2004 Basics.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
More CSS.
Creating Visual Effects
Web Development & Design Foundations with HTML5 8th Edition
CSS Box Model.
CSS Box Model.
Table Styling.
CSS Table Styling.
Table Styling.
Table Styling.
Web Design M. Jacie Yang Assistant Professor
Web Development & Design Foundations with HTML5 8th Edition
Chapter 6 More CSS Basics Key Concepts
CSS Table Styling.
Images and Backgrounds
Introduction to CSS.
Colors.
Table CSS Create a new CSS called tablestyle.CSS Green Background
Fixed Positioning.
Box model, spacing, borders, backgrounds
CSS Box Model.
More CSS.
Basic Tables.
Creating a Webpage with External CSS
Web Development & Design Foundations with H T M L 5
Cascading Style Sheets™ (CSS)
SEEM4570 Tutorial 3: CSS + CSS3.0
Basic Tables.
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Basic Tables.
CSS Box Model.
Gradients.
Gradients.
Gradients.
Presentation transcript:

Gradients

Gradients A gradient is a type of background image that gradually changes from one shade of color to another: Gradients can be horizontal or vertical. Horizontal is more common, as the background color changes from the top of the page down to the bottom. There is no need to use a large image file when building a gradient effect on a page. We take advantage of the background-repeat property in CSS. Gradients can make our web pages more polished and visually appealing.

How Gradients Work Here is a simple horizontal gradient image using two shades of blue: As the small image is repeated, the tiling creates a smooth background effect. More complex gradients can run through multiple different colors from end to end. 800px In this example, the vertical gradient is 20px wide. In practice, most web designers use gradient images that are a single pixel wide, in order to minimize image file size and to make the page load a little more quickly. 20px

Gradient Example By using the gradient image for the background and with the background-repeat property, we can create a pleasant visual effect: body { background-image: url('gradient.jpg'); background-repeat: repeat-x; } h1 { color: #F1F8FE; ... <body> <h1>Welcome to my website!</h1> </body> Background gradients can be applied to other XHTML elements, including <div>, <table>, <tr>, and <td>. A powerful new feature of CSS3 is to create complex gradients programmatically, i.e. without the need for an actual image file.

Creating Gradient Images Gradient images can be created using graphics applications, such as Adobe Photoshop. There are also free tools and websites available, such as tools.dynamicdrive.com/gradient/ : Select the type of gradient. Specify the dimensions. Set the start and end colors. See a preview