AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

Similar documents
AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD]

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES

AGENDA. :: Add Meta Tag for Viewport (inside of head element): :: Add Script that renders HTML5 elements for older versions of Internet Explorer

AGENDA. HTML CODING YOUR HOMEPAGE [ Part IV ] :: NAVIGATION <nav> :: CSS CODING FOR HOMEPAGE [ <nav> & child elements ] CLASS :: 13.

Introduction to WEB PROGRAMMING

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

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

Responsive Design. Responsive Design Approach. Technique for building webpages

Create a three column layout using CSS, divs and floating

Chapter 7 BMIS335 Web Design & Development

Taking Fireworks Template and Applying it to Dreamweaver

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

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Lab 1: Introducing HTML5 and CSS3

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

How to lay out a web page with CSS

CSS.

Dreamweaver Basics. Planning your website Organize site structure Plan site design & navigation Gather your assets

How to set up a local root folder and site structure

Adaptations by PVII responsive and then creates your page instantly Al Sparber & Gerry Jacobsen PVII

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

Layout Manager - Toolbar Reference Guide

Dreamweaver Basics Outline

ICT IGCSE Practical Revision Presentation Web Authoring

HTML/CSS Lesson Plans

COMS 359: Interactive Media

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids.

FEWD START SCREENCAST!!!!

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Designing the Home Page and Creating Additional Pages

Introduction to Computer Science Web Development

Dreamweaver Basics Workshop

BA. (Hons) Graphics Design

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

THE HITCHHIKERS GUIDE TO HTML

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

Country Communication Pages

Getting Started with Eric Meyer's CSS Sculptor 1.0

ORB Education Quality Teaching Resources

Front-End UI: Bootstrap

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Responsive Web Design. From: Ethan Marcotte - Responsive Web Design 2011

5 Snowdonia. 94 Web Applications with C#.ASP

CLASS 6: March 5, 2014 MULTIMEDIA TOOLS: DGIM 601-W01 (127469)

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Cascading Style Sheets Level 2

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

ICT IGCSE Practical Revision Presentation Web Authoring

How to lay out a web page with CSS

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Web Site Design and Development Lecture 13

Introduction to CSS. Part 1: Simple Text Formatting. Source Files for this Exercise are available on the Course Website DW_CSS intro

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

HTML & CSS Cheat Sheet

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Responsive Web Design (RWD)

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

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

Before you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.

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

Dreamweaver CS 5.5. University Information Technology Services. Training, Outreach, Learning Technologies, and Video Production

Dear Candidate, Thank you, Adobe Education

CSS Cascading Style Sheets

ADOBE VISUAL COMMUNICATION USING DREAMWEAVER CS5 Curriculum/Certification Mapping in MyGraphicsLab

Creating a Navigation Bar with a Rollover Effect

CSS worksheet. JMC 105 Drake University

Table Basics. The structure of an table

Adobe Dreamweaver CC Tutorial

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Introduction to using HTML to design webpages

Learning Adobe DreamWeaver CC. Module 1 Contents. Chapter 1: Introduction to DreamWeaver CC

Eng 110, Spring Week 03 Lab02- Dreamwaver Session

How to Edit Your Website

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

CS7026 Media Queries II. Different Screen Size Different Design

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Using Dreamweaver CS6

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

JSN PageBuilder 3 Configuration Manual Introduction

How to deploy for multiple screens

Using CSS in Web Site Design

Figure 1 Properties panel, HTML mode

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

2004 WebGUI Users Conference

Objective % Select and utilize tools to design and develop websites.

ITSE 1401 Web Design Tools Lab Project 4 (Expression Web 4 - Units M, N, O, P) Last revised: 1/9/14

Html basics Course Outline

PUBLISHER SPECIFIC CSS RULES

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

CSS: Cascading Style Sheets


Web Structure and Style. MB2030 Section 2 Class 4

Getting your work online. behance.net cargo collective krop coroflot

Creating a Job Aid using HTML and CSS

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

Transcription:

CLASS :: 12 05.04 2018 3 Hours AGENDA CREATE A WORKS PAGE [ HTML ] :: Open index.html :: Save As works.html :: Edit works.html to modify header, 3 divisions for works, then add your content :: Edit index.html to have proper hypertext references to your works :: Test hyperlinks in your browser EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css RESPONSIVE WEB DESIGN [ CSS ] :: Viewport & Basic Syntax for Devices :: ADD rwd.css code to the end of your existing style.css document UPLOAD FILES To SERVER 1

CREATE A works.html PAGE [ HTML ] :: Open index.html and Save As works.html :: Edit <header> element [ Add class name as shown ]: :: Edit navigation menu [ Edit Hyperlinks ]: NOTE: If you wish for the works link to take you back to the homepage works thumbnails you may edit the hyperlink to appear as <a href= index.html#works >works</a>. If you wish for the contact link to take you to the bottom of the same page, you may edit the hyperlink to appear as <a href= #contact >contact</a> :: Edit 1 st <section> element [ Add class name ]: 2

CLASS NOTES :: EXAMPLE OF SINGLE LARGE IMAGE WITH TITLE & CAPTION 1. DELETE <figure> elements NOTE: [ID names will match the works.html#hyperlinks of the view more buttons (located on your homepage)]. Above are coded example images. Replace the example image paths with your own images 2. CHANGE <div class= wrapper > to <div id= works1 > 3. ADD <img> element tags 4. DELETE <a> element tags 5. EDIT <figcaption> to include details of the image shown 3

:: EXAMPLE OF YOUTUBE EMBEDDED VIDEO, TITLE, & CAPTION 1. DELETE <figure> element tags 2. CHANGE <div class= wrapper > with <div id= worksnumber > tag 3. ADD Embed code (for Vimeo/YouTube), or Original video source code 4. DELETE <a> element tags 4

:: SERIES OF THUMBNAIL IMAGES WITH HYPERLINKS TO A LARGER IMAGE 1. DELETE <figure> element tags 2. CHANGE <div class= wrapper > with <div id= worksnumber > tag 3. ADD <a> [hyperlink] & <img> [thumbnail] elements 4. DELETE <h2> & <figcaption> elements 5

:: SERIES OF ELEMENTS CONTAINING THUMBNAIL IMAGES, TITLE, & CAPTION 1. Replace <figure> element tags with <div> tag, plus class name :: Select the entire <section id= about > element [ DELETE ENTIRE ELEMENT ] 6

EDIT index.html PAGE :: Edit Hyperlinks to your view more buttons (IF NEEDED) [ This will link your view more buttons to named anchors on your work.html page ] NOTE: Class example images are coded above. Use your own image paths TEST IN BROWSER :: Preview your site in Google Chrome :: Test all of your hyperlinks 7

CSS QUIZ-ISH :: How do you select an element without an id or class name? :: How do you select an element with an id name? :: How do you select an element without a class name? Style the following: HTML ELEMENT works.html 1 <header class= works-page-header > 2 <section class= works-page-section > CSS STYLE PROPERTY/VALUE style.css ADD background image Edit the height [Optional] Change the height to auto Edit the background color [Optional] SINGLE LARGE IMAGE stylesheet SET-UP 3 <div id= works1 > ADD 5% padding Align text to the center 4 <div id= works1 ><img> Make width of images 90% or less of browser window 5 <div id= works1 ><h2> 6 <div id= works1 ><figcaption> Change font-size to 3em or less [Optional] Change font color [Optional] Change font-size to 2em or less [Optional] Change width to 90% or less Change margin [ make sure left and right margins will equal 100% when added to the width. i.e. if you have a width of 100% the left margin should =5%, and the right margin should = 5% --- margin:10px 5% 0 5% --- ] 8

CLASS NOTES VIDEO, TITLE, & CAPTION stylesheet SET-UP 7 Repeat the same steps for <div id= works2 > SERIES OF IMAGES with HYPERLINKS stylesheet SET-UP 8 <div id= works3 > Align text to the center ADD padding: top&bottom 7%, left&right 0 Edit background color [Optional] SERIES OF IMAGES with HYPERLINKS stylesheet SET-UP 9 <div class= image-container > Float the elements left Adjust the width to accommodate the number of elments you wish to line up in a row. Keep in minde you re your browser is 100%... if you wish to have 4 elements in a row the width of each floating element would be 25 minus the amount of left and right padding. i.e. width:23%; padding:7% 1% 0 1%; 10 <div class= image-container ><img> Ensure the maximum width is 100% 11 <div class= image-container ><h2> Align text to the center 12 <div class= image-container ><figcaption> Justify text [Optional] UPLOAD TO IRIS 9

:: Define Your Site At Home [Page 1-3] + [Page 7] URL: http://iris.nyit.edu/~dmyrick/dgim601-w01/docs/defining-a-website.pdf :: Upload Site or Files to Your Iris Server Space URL: http://iris.nyit.edu/~dmyrick/dgim601-w01/docs/dw_upload-files.pdf 10

CHANGING YOUR WEBSITE s FONT w/ WEB SAFE FONTS :: To change your entire website s font, you will go to your style.css document and type in the selector for the body element. Inside of the curly brackets, you will add the font-family property, then choose a web-safe font from the drop-down menu. body { font-family : Proper font name, sans-serif ; } SEE LIST OF WEB SAFE FONTS: https://www.w3schools.com/cssref/css_websafe_fonts.asp EMBEDDING CUSTOM FONTS :: Embed Fonts & Style Text If you wish to have a non-default web font for your website, you may follow these steps:: 1. Go to dafont.com or fontsquirrel.com 2. Install the font on your local machine [ How to Install Fonts on Mac & PC ] 3. Go to https://onlinefontconverter.com/ 4. Click font-face, then choose SELECT FONT(S): 5. Click Choose Files Button 6. Navigate to your Downloads, Desktop, or System Fonts Folder [Font Book] 7. Select all versions [regular, bold, italic] of the font you will use 11

8. In the lower left corner of the pop-up window, double-click the file(s) icon (the icon at the BOTTOM LEFT will show number of files you selected ( 3 files selected ): 9. Your fonts should appear in the drop zone: @fontface is a set of css style rules that will allow you to use the font of your choice when referenced in HTML & CSS. (SEE EXAMPLE BELOW) 10. Click Done 11. Choose SAVE YOUR FONTS 12. Click My Device [In the Left Column], then the Download All Attachments Button: 13. Extract or Double-Click your.zip file, then open the extracted file 12

14. Open the converted-files folder then select all the files: 15. Copy and Paste the files into your public_html folder 16. In Dreamweaver, Open font.css 17. Copy Code from font.css and paste into your style.css file [at the top of the document ] 18. See Next page for assigning fonts to your webpage HTML CODE HOW TO ASSIGN FONT FAMILY TO ELEMENT CSS CODE 1. Save the newly edited style.css 2. The code below will ensure your font displays in multiple browsers and platforms <body> <p> A bunch of text </p> <h1>gallery</h1> </body> PASTE CSS CODE body{font-family: Antonio-Bold, sans-serif; font-size:1em;} h1{font-family: Antonio-Bold, sans-serif; font-size:35px;} NOTE: You you downloaded different versions of the font, you will have to repeat the process 13

RESPONSIVE WEB DESIGN REFERENCES: Viewport URL:: http://www.w3schools.com/css/css_rwd_viewport.asp Standard Device List [ for queries ] URL:: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ LECTURE/DEMO: SETTING UP THE FIRST QUERY: @media only screen and (min-width: 300px) and (max-width: 768px) { } Above is a CSS [ media query ] selector set-up for applying styles to devices between 300px and 768 pixels wide. RULES FOR QUERIES: 1. Queries are used to change the property values of pre-existing styles (to correctly display in smaller/larger devices than originally coded) 2. Media Queries are placed at the end of your existing css document 3. You may add as many queries as you wish and change the min-width & max-width values (based on devices) 4. The new style rules must be placed between the opening { and closing } curly braces In this class, we will be testing your site with the set-up in the images to follow; however, you may add an orientation to the query (i.e. portrait or landscape) to further influence your site s look, and target the device width exclusively: PORTRAIT @media only screen and (min-device-width: 300px) and (max-device-width: 768px) and (orientation: portrait) { FOR DEVICE WIDTHS BETWEEN 300px 768px LANDSCAPE @media only screen and (min-device-width: 300px) and (max-device-width: 768px) and (orientation: landscape) { /*ADD NEW STYLE RULES HERE*/ /*ADD NEW STYLE RULES HERE*/ } } 14

DOWNLOAD ASSETS [ CSS ] :: Media Query ADD HTML META TAG & IE SCRIPT [ HTML ] :: Add Meta Tag for Viewport (inside of head element): <meta name="viewport" content="width=device-width, initial-scale=1.0"> :: Add Script that renders HTML5 elements for older versions of Internet Explorer <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> ADD & EDIT MEDIA QUERIES [ CSS ] :: Open rwd.css: http://iris.nyit.edu/~dmyrick/dgim601-w01/docs/rwd.css :: Copy all of the code :: Paste into your existing style.css document [ at The END of the style.css document] 15

For PHONES & HANDHELDS [ portrait ] Styles for the header, nav, & logo element :: Styles for Works Section :: Styles for About/Bio Section :: Styles for Footer :: Styles for Works Page :: 16

Media Query Selector For PHONES & HANDHELDS [ landscape ] @media only screen and (min-device-width: 300px) and (max-device-width: 768px) and (orientation: landscape) { } /*ADD NEW STYLE RULES HERE*/ 17

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) { } CLASS NOTES Media Query Selector For ipad (landscape mode) /*ADD NEW STYLE RULES HERE*/ NOTE: You may also create a query for portrait and landscape mode for ipads. Test first to see if you wish to add those options For Laptops EDIT STYLE DECLARATIONS selector { property:value; } TO YOUR LIKING TEST IN BROWSER UPLOAD ALL FILES TO IRIS TEST ON HANDHELD DEVICE [ Phones/iPads/etc. ] 18

OPTIMIZE WEB IMAGES Lessen your page load time by optimizing your images In Dreamweaver: 1. Go to Your File Panel 2. Open your images folder 3. Right-Click > the image to optimize 4. Choose Open With Adobe Photoshop CC 2017.app 5. In Photoshop, Go to the Menu Bar > File > Export > Save For Web (Legacy) 6. In the pop-up panel, ensure you choose the same file type [.jpg,.png,.gif ] as the original image in your site 7. You may lessen the quality if your file size is humongous [ NOTE: Don t confuse File Size with Image Size ] 8. Choose Save > Replace the existing File > Close Photoshop 9. In Dreamweaver, refresh the file panel and view the new file size 19

REVIEW :: HW-12 Homework DUE :: 05.11 1. Class Notes DO :: Ensure your webpage displays correctly Ensure your images are sized correctly Ensure your code is error free Ensure all of your buttons are hyperlinked to the correct location Test and adjust @medias queries to ensure your site display well on laptop & mobile devices SEE HOMEWORK PAGE FOR COMPLETE DETAILS BRING :: HW-12 1 index.html 2 style.css 20