Scrolling Down vs. Multiple Pages

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

© 2010 Delmar, Cengage Learning Chapter 9 Positioning Objects with AP Div Tags.
1 Web Site Design Overview of the Internet Cookie Setton.
Working with Behaviors in DW Marion Setton. You may be familiar with divs and how to construct them generally using Dreamweaver CS5, but you can also.
15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
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.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
Good Websites. 2. Submit one good web interface. This website is a good because of it usability and appears of the website.
Week 12: JQuery Write less, do more.. JQuery Basics Lightweight JavaScript Library – Emphasizes interaction between JavaScript and HTML – Reduces technical.
Art 128 Interface Programming 1 In-class Presentation Week 11B.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
CA Professional Web Site Development Class 23 - CSS Positioning, Image Replacement & Print Styles.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
ITP 104.  While you can do things like this:  Better to use styles instead:
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Cascading Style Sheets CSS. CSS Positioning Normal Flow Top -> bottom | left -> right Arranged in the order they appear in the code make room for one.
Cascading Style Sheets CSS. div … Used like a container to group content Gives context to the elements in the grouping Give it a descriptive name with.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
 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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
 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.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Web111a_chapt05.ppt HTM: Section 5 Frames A section of the browser window capable of displaying an entire web page Display multiple web pages on the screen.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
CIT 256 CSS Intro & Dreamweaver Built-in Layouts Dr. Beryl Hoffman.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 6 1 Creating Dynamic Pages.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
JQuery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation.
Cascading Style Sheets for layout
Cascading Style Sheets Layout
Implementing Responsive Design
CSS Layouts: Grouping Elements
12/04/12 JQuery I took these slides from the site because they were pretty good looking. Instructions for editing school and department titles: Select.
Concepts for fluid layout
Css Units: REM, VH & VW Adrian Horsham.
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Lecture 3 Sarsenova Zhibek.
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Cascading Style Sheets for layout
Programming the Web using XHTML and JavaScript
>> CSS Layouts.
Styles and the Box Model
Fixed Positioning.
Tutorial 6 Creating Dynamic Pages
..
SEEM4570 Tutorial 3: CSS + CSS3.0
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Positioning.
Common Page Design Elements
Introduction to DHTML, the DOM, JS review
CSS Boxes CS 1150 Fall 2016.
Multipage Sites.
Concepts for fluid layout
The div Element and CSS for layout
Cascading Style Sheets
Positioning Boxes Using CSS
Presentation transcript:

Scrolling Down vs. Multiple Pages Long Page Scrolling Down vs. Multiple Pages

ViewPort Viewport = the active port through which viewing your page – i.e. the browser window Can be resized while person viewing your site Use dimensions of the viewport to size elements

A New Units Related to viewport vh: viewport height vw: viewport width Value is a number representing % of viewport Example: Div’s height is 20% of the viewport height

Navigation on the side

HTML

Build the Framework 1st Don’t worry about content Make every div (or other page divider element) a different color so you can easily see them

Body Structure Navigation with Links to Bookmarks based on div ID’s 1 big div around all other page content Each div will be a separate panel that takes up full height of screen

CSS

body

Only take up left 20% of page width Navigation Only take up left 20% of page width Keeps it in place at top left of screen even when other content scrolls

#wrap – outer div around other content So doesn’t ever overlap the navigation Takes up 80% (right) of screen width

All 3 have this class – will take up full height of viewport (100%) Panel Div’s All 3 have this class – will take up full height of viewport (100%) Set to different colors so can easily see their edges while working on them

Navigation on Top: Only Changes shown It would be much better if these links were styled to make them go ACROSS the top instead of down in a list…but we’ll leave that for you to figure out

navigation Stretch across full viewport Height is top 10% of viewport Still want to keep it in place while scrolling happens

No longer needs width restricted #wrap – outer div No longer needs width restricted

.panel Stretch across full height of viewport Keep content out of way of top 10% of viewport so nav doesn’t hide it

Once you have everything in place, you can style it to actually look good!

The Fancy Stuff Animated Scrolling

A Tiny Piece of Script made of jQuery, a JavaScript library, to make the page animate the scrolling when links in your nav are clicked Place it in the head section

A version of this you can copy and paste is on the next page

<script src="https://ajax. googleapis. com/ajax/libs/jquery/2. 1 $(document).ready(function () { $("a").click(function (event) { event.preventDefault(); var targetID = $(this).attr('href'); $('html,body').animate({ scrollTop: $(targetID).offset().top }, 1000, 'swing'); }); </script>