CSS Classes and GIMP Tutorial: Sunpreet Jassal
CSS Classes and GIMP Tutorial: Sunpreet Jassal
Sunpreet Jassal
ssjassal@uvic.ca (prefix subject with [hist481])
HIST 481
Overview
Styling a class of page elements Assigning classes to content Using CSS editor to associate styles Removing classes from content Exercise Introduction to GIMP Concepts: images, layers, selections Creating a simple image Saving images for web sites GIMP Resources
A class attribute allows us to associate style information to different elements An element can be assigned one or more class names A class name can be shared by several elements in a web page What would we use class attributes for?
Styling date, time, image labels Styling image captions, navigation elements, etc.
To open Advanced Property Editor for other elements, switch to HTML Tags mode and right-click the tag of the element to see it as a menu option.
Add a few dates (such as Feb 25, 2008) as text to your web page and style them using date-label as class name.
Create CSS class first to see menu option Assign class to date label using menu option To remove class assignment, open Advanced Property Editor from the HTML Tags mode (rightclick tag associated to the date)
Introduction to GIMP
GIMP is a tool for performing image tasks: construction, editing, retouching, composition. Supports a large variety of image formats including GIF, JPEG, PNG Free and runs on multiple platforms Native format is XCF, which preserves layers and your work in progress
10
An image is the basic entity in GIMP. A single image, such as GIF, JPEG file, is shown in a single display window. Think of an image as a book whose pages are layers. A layer is a page in the book. An image may contain one or more layers. Layers can be transparent, translucent or opaque. Selections allow you to change some parts of an image and not others. They are shown by a moving dashed line (aka marching ants).
11
12
Example:
13
GIF: supports max. 256 colors, 1 transparent color; used for small icons; offers loss-less compression JPEG: supports millions of colors; offers lossy compression but no transparency PNG: supports millions of colors and transparency; offers loss-less compression
14
15
16
GIMP Resources
17