Create a cool image gallery using CSS visibility and positioning property

Similar documents
Implementing a chat button on TECHNICAL PAPER

A designers guide to creating & editing templates in EzPz

Introduction to HTML5

HTML Overview. With an emphasis on XHTML

Lab 4 CSS CISC1600, Spring 2012

What is XHTML? XHTML is the language used to create and organize a web page:

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

CS134 Web Site Design & Development. Quiz1

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

introduction to XHTML

First, create a web page with a submit button on it (remember from creating forms in html?):

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

Dreamweaver: Portfolio Site

Positioning in CSS: There are 5 different ways we can set our position:

Modify cmp.htm, contactme.htm and create scheduleme.htm

I Can t Believe It s Not

Dreamweaver CS3 Lab 2

How the Internet Works

To place an element at a specific position on a page use:

CREATING A BUTTON IN PHOTOSHOP

COMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS

Web Publishing Intermediate 2

Block & Inline Elements

Title: Dec 11 3:40 PM (1 of 11)

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CSCI 1100L: Topics in Computing Spring 2018 Web Page Project 50 points

Wireframe :: tistory wireframe tistory.

Web Publishing Basics I

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Vebra Search Integration Guide

COPYRIGHTED MATERIAL. Tabs

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

CSS Selectors. element selectors. .class selectors. #id selectors

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Micronet International College

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

XHTML & CSS CASCADING STYLE SHEETS

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Dreamweaver CS5 Lab 2

ASP.NET Pearson Education, Inc. All rights reserved.

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

CSS Positioning Using Expression Web Style Tools

Responsive Web Design (RWD)

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Fundamentals: Client/Server

Parashar Technologies HTML Lecture Notes-4

PROFILE DESIGN TUTORIAL KIT

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

CSS.

TRAINING GUIDE. Rebranding Lucity Web

12/9/2012. CSS Layout

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

Navigation. Websites need a formalized system of links to allow users to navigate the site

Cascading Style Sheets (CSS)

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

CSS means Cascading Style Sheets. It is used to style HTML documents.

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

What is the Box Model?

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

CSS: Cascading Style Sheets

LESSON LEARNING TARGETS

Lesson 5 Introduction to Cascading Style Sheets

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

Getting Started with Eric Meyer's CSS Sculptor 1.0

IMY 110 Theme 11 HTML Frames

CIS 228 (Fall 2011) Exam 1, 9/27/11

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

CSS (CASCADING STYLE SHEETS) LAYOUT: INTRODUCTION ON PAGE BACKGROUNDS. By Ted Mitchell

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Page Layout Using Tables

Chapter 7 BMIS335 Web Design & Development

NAVIGATION INSTRUCTIONS

INFS 2150 Introduction to Web Development

Tips from Bryan. (past student)

INFS 2150 Introduction to Web Development

In the early days of the Web, designers just had the original 91 HTML tags to work with.

Bookmarks to the headings on this page:

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Air Quality Health Index: Web Widget Use Document. Prepared by Alberta Environment and Sustainable Resource Development

Create a three column layout using CSS, divs and floating

Using an ArcGIS Server.Net version 10

Inline Elements Karl Kasischke WCC INP 150 Winter

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

Assignments (4) Assessment as per Schedule (2)

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Part A Short Answer (50 marks)

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

HTML: The Basics & Block Elements

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

The Marketer s Guide to. Responsive Design

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

COMS 359: Interactive Media

Web Design and Implementation

More cool scripts: Slide Show: What the settimeout() function does:

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

Transcription:

GRC 275 A8 Create a cool image gallery using CSS visibility and positioning property 1. Create a cool image gallery, having thumbnails which when moused over display larger images 2. Gallery must provide a minimum of 25 thumbnails (sized approximately 80x60) with links to 25 larger images (sized approx 640x480 or larger) 3. Must use example of absolute positioning and fixed positioning 4. Use the batch image feature in Fireworks or Photoshop to speed up the process of sizing images 5. Add box model styling to all images using CSS, must have a border type style around them 6. Make website visually interesting, try adding a darker background or a large dark radial gradient, this will make the viewer focus on the images 7. You can use an internal stylesheet if you prefer 8. Optional: organize images into categories

CSS Positioning primer CSS Positioning Positioning is one of the areas in which CSS provides formatting possibilities that are simply not available through HTML, and CSS positioning is not difficult. The essential properties used for positioning are: Position Left Top Width Height Z-Index (layers/layering) (z-index:1 Default z-index is 0. Z-index -1 has lower priority. Meaning it will go behind any text or graphics in this same area) Definition The position property places an element in a static, relative, absolute or fixed position. Inherited: No Section 1.01 Possible Values Value static relative absolute fixed Description Default. An element with position: static always has the position the normal flow of the page gives it (a static element ignores any top, bottom, left, or right declarations) An element with position: relative moves an element relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position An element with position: absolute is positioned at the specified coordinates relative to its containing block. The element's position is specified with the "left", "top", "right", and "bottom" properties An element with position: fixed is positioned at the specified coordinates relative to the browser window. The element's position is specified with the "left", "top", "right", and "bottom" properties. The element remains at that position regardless of scrolling. Works in IE7 (strict mode)

CSS gallery code explanation: /*this class hides the larger images adjust dimensions and position location as desired*/.hide { visibility: hidden; position: fixed; left: 300px; /* this rule selects only hyperlinked images with the class hide and only on their hover state and makes them visible */ a:hover.hide { visibility:visible /*this class styles a div, sets width and positioning, the div contains the thumbs at a desired location*/.leftmargin { position: absolute; width: 150px; left: 50px; The following example (on the next pages) uses only two thumbnail images and two full size images. The thumbnails were sized 80x60and the full size were 640x480. You will need to have a total of 25 thumbs and 25 larger images.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>a8 Example</title> <style type="text/css">.hide { visibility: hidden; position: fixed; left: 300px; a:hover.hide { visibility:visible.leftmargin { position: absolute; width: 150px; left: 50px;.hide,.thumbs { border: 3px solid #CCCCCC; body { background-color: #000000; </style> </head> <body> <div class="leftmargin"> <img class="thumbs" src ="1_thumbs.jpg" /> <img class="hide" src="1.jpg" /> <img class="thumbs" src ="2_thumbs.jpg" /> <img class="hide" src="2.jpg" /> <!--extra images go here inside the div--> </div. </body> </html>

Note: Add additional images by adding the following code inside of the div and changing the two filenames. You will need to add this code 23x for the additional 23 images so that you have a total of 25 images. <img class="thumbs" src ="thumb_filename_goes_here.jpg" /> <img class="hide" src="larger_image_filename_goes_here.jpg" /> -end