FLUID IMAGES Being friendly to computers and mobiles, don’t discriminate.

Slides:



Advertisements
Similar presentations
Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
Advertisements

Week 10 Creating Positioned Layouts
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
The Power of Tables They aren't just for sitting stuff on anymore...
Images By Tara Frieszell By Tara Frieszell. Adding images to your website will make it more interesting and add to the design. However, some viewers aren’t.
Create a Web Site with Frames
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
‘Mobile first’ Alexander Roberts ISS Web Team Manager Swansea University.
Creating a MagicInfo Pro Screen Template
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
INFSCI  Start with a template base structure  Think about how to structure your document using headers, paragraphs, divs, unordered lists, imgs.
Layouts with CSS Web Design – Section 4-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
FRAMES. With frames, we can display more than one HTML document in the same browser window. Each HTML document is called the same browser window. Each.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
By: Ghada Al Naimi. I'm trying to know the dimensions of a video game ( cinema screens, television screens, computer screens ) and to find how are they.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Last week you should have had something that looked like this.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
5 Reasons Tables for Layouts are BAD! 1. Complicated & Difficult to maintain 2. Often slow to load 3. Tables can hurt search engine optimization 4. Tables.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Week 5 Working with Tables. 2 Understanding Table Basics.
Web Design: Responsive Layouts Sarah Murto 09/29/ W - Graduate Workshop.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
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.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
GO MOBILE. GO RESPONSIVE. 185 mil mobile internet users in India
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Lillie Evans and Marissa Baer. FAQ’s  What is Scrapblog? Scrapblog is a way.
REEM ALMOTIRI Information Technology Department Majmaah University.
IN THE DOCUMENT OBJECT MODEL, EACH LINE OF HTML IS AN ELEMENT (AN OBJECT), ABLE TO HAVE ATTRIBUTES, PROPERTIES AND VALUES. CSS TELLS THE BROWSER HOW TO.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring 2016 CSS Positioning 1.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. August 25, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and CIS.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
HTML Comprehensive Concepts and Techniques Second Edition Creating Frames on a Web Page.
Concepts for fluid layout
Css Units: REM, VH & VW Adrian Horsham.
CS 0134 (term 2181) Jarrett Billingsley
IS1500: Introduction to Web Development
Responsive Design.
Responsive Web Design (RWD)
Second CSS Lecture Applications to XML
Graphics (Characteristics 1)
Responsive Web Design (RWD)
HTML – Organizing Page Content
Positioning.
CSS Boxes CS 1150 Fall 2016.
Concepts for fluid layout
Various mobile devices
Positioning Boxes Using CSS
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

FLUID IMAGES Being friendly to computers and mobiles, don’t discriminate.

SIZING! When putting a picture in you want to specify it not by exact pixel sizes (unless you have good reason to) instead you should try to put it by % size. EX:

Images with that scale will adjust to the size of the window, it will always attempt to show its native size but only if there is enough space in the html container

THERE ARE LIMITATIONS A large image (over ~ 420 pixels wide) will increasingly dominate the document as the viewport shrinks down, as its native size is greater than the width of most smartphones. Scaling means that the image won’t be cut off, but it may be large relative to text at small viewport sizes. The initial layout and setup of the document is affected: because you are not setting the image’s height and width explicitly in the CSS, the browser cannot reserve any space for the image in the page. This will often cause the layout to “pop” when the user visits the page for the first time, as fluid images are loaded and forced to fit into their newly determined size. Unless the image is already the full width of its container, this approach does not work well for HiDPI/Retina images: the image’s “actual size” will be shown as twice the width that you want it to be.

A BETTER BUT MORE COMPLICATED SOLUTION You can also calculate the native size with the browser window size. Say you have a 1200 pixel wide window, and your native size is 500 x 300 you simply do 500 / 1200 * 100 = 41.66% This way the image will remain in scale with the text.

IMPROVING BROWSER PERFORMANCE To maximize the browser’s performance you should also state the height in the same line, as seen on the past examples with the: ;height:auto Right there