Responsive web design is an approach to web design that makes web pages render well on a variety of devices and screen sizes. It uses flexible grids and layouts, flexible images and media queries. Media queries allow the page styling to adapt to different screen sizes and resolutions by applying different CSS styles. A responsive web design uses a flexible grid system, flexible images and media, and media queries to automatically adjust for different screen sizes and devices.
This document provides an overview of JavaScript, including what it is, why it's used, who created it, its components and objects. JavaScript is a scripting language used primarily for client-side web page interactions. It allows adding dynamic and interactive elements to web pages. Some key points covered include:
- JavaScript is used to specify webpage behavior and enable user interaction/effects.
- It was created by Brendan Eich at Mozilla and allows both client-side and server-side scripting.
- Common JavaScript objects include Document, Window, Math, Date and String.
- Events, functions, variables and tags like <script> are JavaScript components.
- The Document and Window
The document discusses making your own CSS framework to manage multiple websites with limited resources. It recommends starting with a CSS reset, basic structural elements, and columns for layout. Future-proof the framework to match HTML5. Keep colors, images, and styling out of the framework. Build reusable widgets and allow for design freedom and individuality across sites. The initial version may be too constricting without flexibility. Add optional "flare" like boxes and slideshows once the basics are established. The framework should be easily upgradable and accessible across managed sites.
Responsive Web Design: Clever Tips and TechniquesVitaly Friedman
Responsive Web design challenges Web designers to adapt a new mindset to their design and coding processes. This talk provides an overview of various practical techniques, tips and tricks that you might want to be aware of when working on a new responsive design project.
The document discusses controlling web typography through CSS properties and principles. It demonstrates how visual interest can be achieved using basic CSS properties like font-size, color, and text-transform. Letterspacing, line-height and other properties are shown to manipulate text. Web fonts have increased designers' interest in typography. JavaScript libraries can target letters, words and lines for fine-grained styling control. Future possibilities discussed include better support for text effects and more specific CSS selectors.
This document provides an overview of responsive web design. It defines responsive web design as an approach that aims to provide optimal viewing experiences across different devices. It discusses the history and alternatives to responsive design. The key aspects of responsive design are then explained, including fluid grids, flexible images, CSS media queries, and using the viewport meta tag. Tools for responsive design like Bootstrap and techniques like fluid layouts are also covered. Finally, resources for further learning about responsive web design are provided.
Covers frameworks, navigation patterns, preprocessors, responsive images, responsive data tables, polyfills. Presentation at the Cleveland Web Standards Association, October 30, 2012.
In today's internet scenario responsive websites are the most popular way of putting a website in worldwide web, as this a form in which your website can be seen in multiple devices without any problem. In this slide we tried to explain step by step processes in responsive website design.
Responsive web design (RWD) creates dynamic changes to a website's appearance depending on the screen size and orientation of the device being used to view it. It uses media queries and breakpoints, which allow different style rules for different screen widths. A mobile-first approach designs for mobile screens first before adjusting styles for larger screens.
Responsive Web Design for Universal Access 2016Kate Walser
You can improve how well your website works and looks across different devices using responsive web design techniques. But did you know you can also improve access for all users, including those with disabilities, by applying responsive techniques? Learn how.
The document summarizes a presentation about using Adobe Fireworks for designing HTML and CSS websites. It discusses how Fireworks is ideal for web design as it integrates well with other Adobe applications. It also explores how Fireworks allows for rapid prototyping through features like slicing images and exporting code. The presentation emphasizes writing code by hand and using frameworks like the 960 grid system to help maintain consistency and improve efficiency.
This document provides an overview and introduction to Bootstrap for beginners. It discusses what Bootstrap is, the benefits of using it, and its basic grid system including containers, rows, and columns. It also covers responsive design, integrating Bootstrap with SharePoint, common issues and bugs, and includes examples of live Bootstrap implementations. The presenter is D'arce Hess, a SharePoint interface developer, and the content is from a SharePoint Saturday event in October 2014.
Icon fonts are becoming an increasingly popular way to delivery iconography for websites. They reduce HTTP requests, provide a resolution-independent way to scale icons, and are often smaller than sprites. In this session we'll explore what icon fonts are, the pros and cons of using them, how to make your own, and best practices for deploying them.
Slides from my 2013 Breaking Development conference workshop. We explore the tools and techniques behind building your own icon fonts, covering the entire process from sketching icon concepts to properly deploying your font. Topics cover include: designing icons, considerations for designing font glyphs, setting up Illustrator templates, working with Glyphs, exporting fonts, creating web fonts, and using icon fonts semantically.
Responsive Web Design (April 18th, Los Angeles)Thinkful
The document summarizes a responsive web design training session. It introduces key HTML concepts like tags, elements, and attributes. It also introduces CSS concepts like selectors, properties, values, and declarations. It demonstrates how to make a website responsive with media queries and percentage widths. It shows how to build a grid system using floating columns within rows, with clear fixes. It encourages practicing responsive design and lists additional learning resources.
This document summarizes Jeff Croft's presentation at Web Directions South 2008 about elegant web typography. He discusses common myths about web typography and emphasizes that great typography is important for well-designed sites. Croft also covers techniques for achieving quality typography with CSS, including resetting styles, understanding font sizing with ems, and considering whether to use relative or absolute font sizes. The presentation provides guidance for thoughtfully designing typography at different sizes using a typographer's scale.
Building a Website from Planning to Photoshop Mockup to HTML/CSShstryk
This document provides step-by-step instructions for creating a website mockup in Photoshop and then building the actual website code in HTML and CSS. It discusses planning wireframes, creating Photoshop mockups with layers and slices, saving images for the web, and then using those images to style the website background and content area with CSS. Code snippets are provided to demonstrate how to link stylesheets, position elements, and troubleshoot layout issues.
Responsive web design allows website designers to create a single version of a website that seamlessly adapts to different screen sizes like phones, tablets, laptops and desktops. It is flexible and adjustable through techniques like fluid grids, flexible images, and media queries. In contrast to separate mobile and desktop sites, responsive design provides a better user experience across devices with fewer maintenance issues.
The document outlines the typical process for designing an interactive website, including research, site mapping, wireframing, creating a mood board, designing pages in Photoshop, and coding the design into HTML and CSS. The key steps are:
1. Conducting research on the client objectives, target audience, and competitors.
2. Creating a site map to diagram the page structure and filenames.
3. Developing wireframes as a visual guide to the skeletal framework of the website.
4. Assembling a mood board to make design decisions on look and feel.
5. Designing page templates and elements in Photoshop.
6. Coding the Photoshop design into HTML
CSS3 Media Queries: Mobile Elixir or CSS Snake Oiljameswillweb
CSS Media Queries have received a justifiable amount of hype lately. However, do they really represent a new way to take your web content mobile or do they promise more than they deliver? In this session lynda.com senior author James Williamson breaks down media queries, how to use them, and where they belong in your mobile development medicine chest.
Media queries allow CSS styles to be applied conditionally based on characteristics of the device viewing the content, like screen width. They provide a way to target specific devices and change layouts without changing the HTML. The document discusses the syntax of media queries, including using media types, features, expressions, and keywords. It provides examples of using media queries to load different style sheets or apply different CSS rules for different screen widths.
Developing a Progressive Mobile StrategyDave Olsen
My presentation given at HighEdWeb Rochester on June 27, 2011. It focuses on how universities should think about developing and building out their strategy for mobile devices. The future of mobile in higher ed is much larger than one app or one website. Numbers regarding adoption of mobile overall as well as at West Virginia University are included.
CSS3 Media Queries & Kick Start for Mobileambientphoto
This document summarizes a presentation on preparing CSS and HTML for mobile devices. It discusses using liquid layouts with proportional widths and font sizes, maximizing background images, controlling the viewport with meta tags, and using media queries to target different device features like pixel density. Best practices include keeping platform styles separate, using value ranges in media queries, and maintaining a core style sheet independent of media queries.
This document discusses creating adaptive layouts using CSS3 media queries. It defines the differences between adaptive and responsive design, with adaptive using predefined layouts for different screen sizes and responsive providing an optimal experience across devices. Key concepts for adaptive design are progressive enhancement and mobile-first. The document outlines main principles like flexible grid-based layouts, flexible media, and using media queries to apply CSS styles based on features like width, height, and orientation. It provides examples of media query syntax and supported media features.
Meta layout: a closer look at media queriesStephen Hay
The document discusses media queries and responsive web design. It covers topics such as media types, logical operators, media features, viewports, layout strategies, and new CSS layout mechanisms. Throughout the document, B. Rowser engages in a comedic back-and-forth dialogue to help explain and expand on the concepts around responsive design. In the end, the document emphasizes thinking about design principles and systems rather than specific layouts.
Real-world Responsive Design @ Breaking Development 2011Stephen Hay
A presentation I gave at Breaking Development 2011 (which was an updated and modified version of the presentation I gave at Fronteers 2010). In this talk I touched on the new Flexbox draft and CSS3 Grid Layout. Interestingly enough, while I was presenting, Microsoft announced IE10, which includes support for both specs (as well as multicolumn layout).
This document summarizes prototypes for helping Sophie tell her boyfriend about her new job requiring a move to a new city. One prototype involves surprising him with plane tickets, a nice hotel, and romantic dinner reservations to break the news. Another prototype focuses on using social media to connect with new colleagues and contacts in the new city and get introductions through current friends to ease the transition. Both prototypes provide feedback on what worked well, areas for improvement, potential questions, and additional ideas to test further.
Color, themes, fonts: The building blocks of good e-commerce and ui designJosh Levine
Visual design on e-commerce sites is sometimes viewed as a purely aesthetic matter, but it has another important job. Used effectively, such design elements as color and type font can help visitors navigate a page and call out a product’s best features. Used poorly, they can distract visitors and detract from sales.
Josh Levine and Seth Newman discuss the redesign of Action Envelope's successful ecommerce website by web agency Alexander Interactive. Presented at the 2009 Internet Retailer Web Design Conference and Expo.
----
Description from Internet Retailer Conference:
"Colors, themes, fonts: The building blocks of good design"
— Josh Levine, Founder and Chief Experience Officer, Ai (Alexander Interactive)
— Sari Levine, Creative & User Experience Director, E-Commerce, Lowe's Cos. Inc.
Design elements that you choose to engage your customers work on consumers at a subconscious level—colors, themes, fonts, use of white space—but they are crucial to grabbing and holding shoppers' attention. This session will offer extremely practical advice and analysis of the building blocks of good design—what messages do different fonts communicate? When should you have white space and when not? What colors trigger certain reactions in consumers? How do you develop a design theme for a web site and how do you carry it out throughout the entire site without its becoming intrusive? This session will feature a design expert and a retailer who will discuss each of these important building blocks in detail and demonstrate how they were applied to a site design.
Industrial Design fundamental in User Experience Design bouchardr
Modern tools are helpful but returning to the basics of concept development are a must as we try to accelerate the design process into the digital age.
There are many resources on development for designers but what about design for developers? It shows how to create an effective layout, which fonts to choose, and how to make proper color choices. Skills that can be used in any graphic presentation.
(Presentation was given at the Heartland Developer Conference.)
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour ManagementVirtu Institute
This lecture is an overview that defines what digital colour is and how it can be managed through appropriate workflow to result in consistent colour outcomes for either web or print.
A starter guide to Color Theory in design. We will cover ideals like the Color Wheel (Primary, Secondary, Tertiary), Compliments, Triads, Split Compliments, Analogous, Shades, Tints, Monochromatic, Warm & Cool, and of course take a quick look at the differences between RGB and CMYK Color Modes.
Color is one of the first things we learn how to do in CSS — and yet many of us don't ever go further than typing hex numbers handed to us by a designer. But getting colors to appear on a screen is just the beginning. Find out why colors look different on different devices, and what you can do about it. Learn how to adjust colors with media queries to make sure your colors look their best on any screen size. Find out how user context may affect the appropriate colors for a website. And finally, learn how you can make this whole color thing a lot less complicated by using a CSS preprocessor like Sass to manage your color choices and create color variations automatically.
Presented in 2015 & 2016 at Amazon's WebDevCon, ConFoo, Breaking Development, Mobile+Web Dev Conference, Code Fellows Seattle, CascadiaFest, CSS Summit, CSS Brigade Vancouver, CSS Day Amsterdam, Future Insights Live, WebVisions NYC, and Albany UX.
A hands-on workshop at EuroIA in Brussels, Belgium, on 27 Sept. 2014.
Learn the process for creating responsive websites. Gain an understanding of the HTML & CSS behind responsive design, so you can design responsive experiences that can be easily implemented by a multi-disciplinary team. Target audience: UX designers with at least a basic knowledge of HTML & CSS.
This presentation introduces responsive web design which allows websites to automatically adapt their layout to different screen sizes. It discusses using a flexible grid system, flexible images and media, and media queries to create a single adaptive design. The strategy is to use a linear mobile-first approach and progressively enhance the design for larger screens using media queries. This allows the site to work on any device while providing the best experience for each form factor.
The document discusses responsive web design, including its history beginning in 2010, the basic principles of using flexible grid layouts, images, and videos along with media queries to adapt designs based on screen size. Responsive design allows a single website to be accessed from any device by using fluid, proportional layouts and flexible media. The basic techniques are supported by most modern browsers and tools exist to help designers implement responsive designs.
The document discusses responsive web design, including its history beginning in 2010, the basic principles of using flexible grid layouts, images, and videos along with media queries to adapt designs based on screen size. Responsive design allows a single website to be accessed from any device by using fluid, proportional layouts and flexible media to provide the best possible viewing and interaction experience. New techniques like responsive design are necessary to accommodate the growing number of people accessing the web from mobile devices.
The document discusses responsive web design, including its history beginning in 2010, how it uses flexible grid layouts, images, and videos along with media queries to automatically adjust webpages to display properly on devices of various sizes. Responsive design allows a single website to be accessed from any device by using fluid, proportional layouts combined with CSS media queries to apply different styling depending on screen size.
a presentation on the responsive web designing..that tell you technology gives more efficient way to meet the end clients and solving the user experience problems
Developing for Responsive Design - Frederic WelterlinRazorfish
This document discusses responsive design and how it has evolved from Tim Berners-Lee's original vision of a universal linked information system. It defines responsive design as a web development approach where design and development respond to the user's behavior, environment, screen size, platform and orientation. The presenter discusses crafting responsive user experiences using flexible grids, flexible media, and media queries. He provides examples of when responsive design is and isn't warranted, using sites like Ford and United Airlines as examples. The presenter concludes by noting responsive design is still evolving and different solutions may be needed based on user needs and business tasks.
With great power, comes great responsive-ability web design.
Responsive web design (RWD) will be demystified. Believe it or not, it's more than just media queries, although those will be discussed. It starts with proper UI design and application architecture, and then the dive into CSS - but not too deep! You don't have to be an expert to do RWD, but it helps to have some idea of what you are doing.
Advancio, Inc. Academy: Responsive Web DesignAdvancio
Responsive web design allows a website to adapt to different screen sizes using fluid grids, scalable images, and media queries. It involves developing sites using relative units like percentages instead of pixels so elements resize proportionately. Media queries allow different CSS stylesheets to be loaded depending on screen width, orientiation, resolution and other factors. This allows a single website to be accessed seamlessly on any device from phones to desktops to tablets without needing separate mobile sites.
The specs behind the sex, mobile-friendly layout beyond the desktopbetabeers
This document discusses methodologies and techniques for optimizing websites for mobile devices, including using responsive design with CSS media queries. It presents three main approaches: building a separate mobile site, making no changes, or optimizing the main site for mobile. The bulk of the document then focuses on how to use CSS media queries to optimize websites, covering features like width, height, and orientation. It also discusses related techniques like viewport meta tags and approaches being considered for future standards.
Adaptive layouts - standards>next Manchester 23.03.2011Patrick Lauke
This document discusses making websites responsive for different devices. It covers using CSS media queries to apply different styling based on screen width, height, and other device features. It also covers using viewport meta tags to control zooming and scaling on mobile browsers. The goal is to build sites that can adapt their layouts across various devices like phones, tablets, and desktops.
Digibury: Getting your web presence mobile ready - David WalkerLizzie Hodgson
This document discusses how to make websites responsive using CSS frameworks. It explains that mobile usage is growing and users expect mobile-friendly sites. CSS frameworks like Foundation can help bridge skills gaps by providing preset responsive grids and functionality. The document outlines the minimum requirements for responsive design like fluid images and media queries. It provides examples of how to use Foundation's grid system and other tools to create responsive layouts and images. While frameworks have pros like speeding development, they also have cons like restricting freedom; responsive design requires going beyond simple layout changes.
Responsive Web Design for Universal AccessKate Walser
The document discusses responsive web design for universal access. It summarizes Kate Walser's presentation on responsive design and accessibility. The presentation covers what responsive design is, how it works using fluid grids, flexible images and media queries, and how responsive design can improve accessibility by adjusting content and layouts for different devices. It also provides exercises for attendees to evaluate websites on mobile devices and plan responsive designs.
1) The document discusses responsive web design, which involves making websites flexible and adaptable to different devices through flexible grids, images, and media queries.
2) Key aspects of responsive design include thinking of user needs rather than our own, adapting to various device capabilities, and future-proofing sites.
3) Media queries allow scoping styles to specific device capabilities like width, height, and orientation. Common patterns like fluid, column drop, and layout shifter are described.
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Frédéric Harper
There is no mobile Web, there is no desktop Web, and there is no tablet Web. We view the same Web just in different ways. So how do we do it? By getting rid of our fixed-width, device-specific approaches and use Responsive Web Design techniques. This session will focus on what is Responsive Web Design and how you can use his 3-pronged approach on your current apps today which will also adapt to new devices in the future.
Bootstrap is a free front-end framework for building responsive, mobile-first websites. It includes HTML and CSS templates for common elements like typography, forms, buttons, navigation, tables, images and more. Bootstrap also utilizes a responsive 12-column grid system and is compatible with all modern browsers. Websites built with Bootstrap are automatically responsive on devices ranging from small phones to large desktops.
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...Yandex
Responsive web design challenges web designers to apply a new mindset to their design processes, as well as to techniques they are using in design and coding. This talk provides an overview of various practical techniques, tips and tricks that you might want to be aware of when working on a new responsive design project.
Introduction to Responsive Web Design http://tinyurl.com/9ldo4c6
Includes a sample project built from scratch in Node.js using LESS available on Github
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfjackson110191
These fighter aircraft have uses outside of traditional combat situations. They are essential in defending India's territorial integrity, averting dangers, and delivering aid to those in need during natural calamities. Additionally, the IAF improves its interoperability and fortifies international military alliances by working together and conducting joint exercises with other air forces.
Mitigating the Impact of State Management in Cloud Stream Processing SystemsScyllaDB
Stream processing is a crucial component of modern data infrastructure, but constructing an efficient and scalable stream processing system can be challenging. Decoupling compute and storage architecture has emerged as an effective solution to these challenges, but it can introduce high latency issues, especially when dealing with complex continuous queries that necessitate managing extra-large internal states.
In this talk, we focus on addressing the high latency issues associated with S3 storage in stream processing systems that employ a decoupled compute and storage architecture. We delve into the root causes of latency in this context and explore various techniques to minimize the impact of S3 latency on stream processing performance. Our proposed approach is to implement a tiered storage mechanism that leverages a blend of high-performance and low-cost storage tiers to reduce data movement between the compute and storage layers while maintaining efficient processing.
Throughout the talk, we will present experimental results that demonstrate the effectiveness of our approach in mitigating the impact of S3 latency on stream processing. By the end of the talk, attendees will have gained insights into how to optimize their stream processing systems for reduced latency and improved cost-efficiency.
Best Practices for Effectively Running dbt in Airflow.pdfTatiana Al-Chueyr
As a popular open-source library for analytics engineering, dbt is often used in combination with Airflow. Orchestrating and executing dbt models as DAGs ensures an additional layer of control over tasks, observability, and provides a reliable, scalable environment to run dbt models.
This webinar will cover a step-by-step guide to Cosmos, an open source package from Astronomer that helps you easily run your dbt Core projects as Airflow DAGs and Task Groups, all with just a few lines of code. We’ll walk through:
- Standard ways of running dbt (and when to utilize other methods)
- How Cosmos can be used to run and visualize your dbt projects in Airflow
- Common challenges and how to address them, including performance, dependency conflicts, and more
- How running dbt projects in Airflow helps with cost optimization
Webinar given on 9 July 2024
Blockchain technology is transforming industries and reshaping the way we conduct business, manage data, and secure transactions. Whether you're new to blockchain or looking to deepen your knowledge, our guidebook, "Blockchain for Dummies", is your ultimate resource.
Best Programming Language for Civil EngineersAwais Yaseen
The integration of programming into civil engineering is transforming the industry. We can design complex infrastructure projects and analyse large datasets. Imagine revolutionizing the way we build our cities and infrastructure, all by the power of coding. Programming skills are no longer just a bonus—they’re a game changer in this era.
Technology is revolutionizing civil engineering by integrating advanced tools and techniques. Programming allows for the automation of repetitive tasks, enhancing the accuracy of designs, simulations, and analyses. With the advent of artificial intelligence and machine learning, engineers can now predict structural behaviors under various conditions, optimize material usage, and improve project planning.
7 Most Powerful Solar Storms in the History of Earth.pdfEnterprise Wired
Solar Storms (Geo Magnetic Storms) are the motion of accelerated charged particles in the solar environment with high velocities due to the coronal mass ejection (CME).
Comparison Table of DiskWarrior Alternatives.pdfAndrey Yasko
To help you choose the best DiskWarrior alternative, we've compiled a comparison table summarizing the features, pros, cons, and pricing of six alternatives.
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Bert Blevins
Today’s digitally connected world presents a wide range of security challenges for enterprises. Insider security threats are particularly noteworthy because they have the potential to cause significant harm. Unlike external threats, insider risks originate from within the company, making them more subtle and challenging to identify. This blog aims to provide a comprehensive understanding of insider security threats, including their types, examples, effects, and mitigation techniques.
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionBert Blevins
Cybersecurity is a major concern in today's connected digital world. Threats to organizations are constantly evolving and have the potential to compromise sensitive information, disrupt operations, and lead to significant financial losses. Traditional cybersecurity techniques often fall short against modern attackers. Therefore, advanced techniques for cyber security analysis and anomaly detection are essential for protecting digital assets. This blog explores these cutting-edge methods, providing a comprehensive overview of their application and importance.
Measuring the Impact of Network Latency at TwitterScyllaDB
Widya Salim and Victor Ma will outline the causal impact analysis, framework, and key learnings used to quantify the impact of reducing Twitter's network latency.
How Social Media Hackers Help You to See Your Wife's Message.pdfHackersList
In the modern digital era, social media platforms have become integral to our daily lives. These platforms, including Facebook, Instagram, WhatsApp, and Snapchat, offer countless ways to connect, share, and communicate.
How Social Media Hackers Help You to See Your Wife's Message.pdf
Responsive Web Design
1. Responsive Web Design “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”
2. Resources Ethan Marcotte - Responsive Web Design (A Book Apart) Smashing Magazine - ( http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/ ) A Dao of Web Design ( http://www.alistapart.com/articles/dao/ )
33. SETTING MARGINS & PADDINGS If the next TYPE element is 11px & is nested within the H1 then use the following 11 / 24 = 0.458333333333333em When setting flexible margins on an element, your context is the width of the element’s container. When setting flexible padding on an element, your context is the width of the element itself. Which makes sense, if you think about the box model: we’re describing the padding in relation to the width of the box itself. DO NOT ROUND UP. DO NOT ROUND UP.
41. IE6 - you bastard! img,embed,object,video { max-width: 100%; }
42. IE6 - you bastard! IE Specific Style Sheet img { width: 100%; }
43. IE7 - you bastard! http://unstoppablerobotninja.com/entry/fluid-images#code
44. Background Images FAUX columns But that's fine for a fixed layout, but what about our responsive design? .blog { background: #F8F5F2 url("blog-bg.png") repeat-y 50% 0; }
45. Background Images CSS3 property called background-size ( http://bkaprt.com/rwd/20/ ), browser support is still pretty immature Scott Robbin’s jQuery Backstretch plugin ( http://bkaprt.com/rwd/21/ ) simulates resizable background images on the body element.
46. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
47. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
48. Media Queries W3C Media Types all, braille, embossed, handheld, print, projection, screen, speech, tty, and tv
50. Then along came... <link rel="stylesheet" href="tiny.css" media="handheld"/>
51. Be GONE Media Types Hel lo Media Queries Media Queries Media Queries
52. CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
53. Anatomy of Media Query Each query still begins with a media type (screen). Immediately after comes the query itself, wrapped in parentheses: (min-width: 1024px). And our query can, in turn, be split into two components: the name of a feature (min-width) and a corresponding value (1024px)
54. CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
55. Where did I put..... <link rel="stylesheet" href="wide.css" media="screen and (min-width: 1024px)" /> Attach them to @import statements: @import url("wide.css") screen and (min-width: 1024px); I prefer @media because it keeps the CSS sheet numbers down, there for requests and there for load times.
58. Does Size Matter In the spec’s language, every device has a “display area” and “rendering surface.” the browser’s viewport is the display area; the entire display is the rendering surface. So on your laptop, the display area would be your browser window; the rendering surface would be your screen.
59. Does Size Matter If your laptop is 1200px in width and your browser is open 50% of the screen, then; RENDERING SURFACE = 1200px DISPLAY AREA (viewport) = 600px http://www.w3.org/TR/css3-mediaqueries/#media1
60. WAIT - There’s MOAR Chain multiple conditions together @media screen and (min-device-width: 480px) and (orientation: landscape) { … }
65. MOBILE FIRST “ More often than not, the mobile experience for a Web application or site is designed and built after the PC version is complete. Here's three reasons why Web applications should be designed for mobile first instead... Mobile is exploding... Mobile forces you to focus.... Mobile extends your capabilities... ” http://www.lukew.com/ff/entry.asp?933
67. Testing No Substitute for the real thing Web Developer Tools (FF Plugin) Safari Developer Emulators
68. Bad Points? Force the users into one way. Users that like to pinch and zoom No Mobile Only, users will download the WHOLE page not an optimised one
69. Thanks. Questions? “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”
Editor's Notes
The Web is Young No History, very few best practices in comparison to other “artists”. Conditioned to think the way of the graphic designer, or artist. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
We're conditioned to think the way of the graphic designer, or artist. When an artist starts a new piece of work he or she chooses very carefully. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
We're conditioned to think the way of the graphic designer, or artist. When an artist starts a new piece of work he or she chooses very carefully. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
Artists have their constraints. Constraints are good because they provide boundaries In Web Design we struggle with boundaries So we create our own.
Start with no canvas We set the minimum width of the smallest monitor that we want to design for, probably 960 pixels because that also fits nicely into a grid. This gives us boundaries to begin building the site, because after all boundaries are great because the give us limitations and provide focus. Can you imagine the highway with no lines painted on the road? Or a game of football without markings on the pitch? Or houses without your allotted land parchment? The next time you start looking at designing a site.......
Don’t do it! Don’t automatically on your next project go down that road. If we pick a canvas size we might be wrong.
But what happens when that occurs and we get the dimensions wrong? We run the risk of the website being clipped and not showing the full extent of what ins supposed to be seen. (include a picture of a scene that has horizontal and vertical scroll bars).
Mobile devices are increasing every day. We could look at browser sniffing but there’s a whole bunch of issues there - no js, sending incorrect request headers, overriding headers etc
Shorten the list by focussing on widths instead of devices These will increase as well, but it’s easy to accomodate. SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN?
SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN? Not as complicated as that looks.
SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN? Not as complicated as that looks.
The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
1024 px #container auto margin to center, some box shadow 620px Header 360px navigation 730px content 250px side bar numerous padding & margins
The reason we start here is because it doesn’t make our head hurt as much.
The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
You will see this a lot. If you choose responsive design You will live and breathe this algorithm
You will see this a lot. If you choose responsive design You will live and breathe this algorithm
The default body size for browsers is 16px Set body to 100%, and base all typographical decisions from there. This is just typography, so ignore the layout aspects of padding and margins for now.
Finish typography and start the Layout
Same principal.
The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
You will see this a lot. If you choose responsive design You will live and breathe this algorithm
1024 px #container auto margin to center, some box shadow (i’m going to pick an artibrary figure of 90% for this size because...... 620px Header 360px navigation 730px content 250px side bar numerous padding & margins
You will see this a lot. If you choose responsive design You will live and breathe this algorithm 360px navigation 730px content 250px side bar
You will see this a lot. If you choose responsive design You will live and breathe this algorithm 360px navigation 730px content 250px side bar
BE CAREFULL ABOUT THE CONTEXT
The context may change throughout the document
now before you round, don't. Browsers will round that themselves to a suitable size, so we want to give them as much information to make that computed change as possible.
Go through all the measurements in the site and change them. Paddings. Margins. Widths. Sometimes Heights (height is difficult to have a context)
Enter max-width: 100%;
this rule allows our image to size to it's maximum size, or the width of the containing element... Which ever comes first. Remove the fixed width provided width= height=. this might fault.
this rule allows our image to size to it's maximum size, or the width of the containing element... Which ever comes first.
There are some issues with IE6 around the max-width. i.e. it doesn’t work exactly right Do some searches, read the Ethans book for more information.
There are some issues with IE6 around the max-width. i.e. it doesn’t work exactly right Do some searches, read the Ethans book for more information.
You do need to watch out for ie7 rendering image sizes however Simply download the script (available at http://bkaprt.com/rwd/16/ ) and include it on any page with flexible images; it will scour your document to create a series of flexible, high-quality AlphaImageLoader objects.
Create a MASSIVE background image, and use the repeat-y “algorithm”
There is a CSS3 property called background-size ( http://bkaprt.com/rwd/20/ ), which would allow us to create truly flexible background images, but—you guessed it—browser support is still pretty immatureScott Robbin’s jQuery Backstretch plugin ( http://bkaprt.com/rwd/21/ ) simulates resizable bac kground images on the body element.
W3C had an idea Media Types came first These were the types you could choose
The phones started getting smarter. Not much support for “handheld”, so phone browsers sent “screen” headers by default
The phones started getting smarter. Not much support for “handheld”, so phone browsers sent “screen” headers by default
Now, every media query—including the one above—has two components:1. Each query still begins with a media type (screen), drawn from the CSS 2.1 specification’s list of approved media types ( http://bkaprt.com/rwd/26/ ).2. Immediately after comes the query itself, wrapped in parentheses: (min-width: 1024px). And our query can, in turn, be split into two components: the name of a feature (min-width) and a corresponding value (1024px).
Think of a media query like a test for your browser. When a browser reads your stylesheet, the Browser asks two questions: first, if it belongs to the screen media type; and if it does, if the browser’s viewport is at least 1024 pixels wide. If the browser meets both of those criteria, then the styles enclosed within the query are rendered; if not, the browser happily disregards the styles, and continues on its merry way.
Explain slide. Now there can be some confusion over max-width, min-width, max-device-width etc So we get taken to the age old question.....
DOES SIZE of the browser MATTER?
DOES SIZE MATTER?
Here are two quick guidelines that helped me sort it out: I won’t get into iphone 4 rendering more pixels from a display area than is available on the rendering surface though
Visit this link for a list of queries that you can call with CSS3.
WAIT - THERE'S MOARChain conditions together so that you can even better target specifics such as width and orientation.@media screen and (min-device-width: 480px) and (orientation: landscape) { … }Be warned though, iPhone iPad example... Moral is test for specific devices, do not assume just because thou might be able.
Lets take a closer look.
css3-mediaqueries.js - explain it’s hefty and checks all parenthis next screen for respond.js
very light weight and quick, but you’re still relying on JS
getting away from the code for a whole I wanted to reflect on the application of responsive design. While responsive design is an amazing option for web developers to offer up different layouts and designs for different devices and sizes, it certainly is not the answer in every situation.You could easily code up an entirely two different sites in the HTML markup and set display:none; for the mobile version when viewed on desktop size screens, and switch them in the media queries. Possible, but not a great idea. You're making both users download a whole bunch of extra markup that simply doesn't matter, and that's just not cool. Uncool. UNCOOL!!!In these cases it's better to offer two completely separate solutions and rely on some server side of JavaScript based redirection.
Don’t break a design down from the full size Build it linear to start with Forces you to prioritise content. In a linear environment there is no &quot;this is as important as the that on&quot; because there IS no equal. (insert a picture for the slide of a row of kids shortest to tallest).
Don’t break a design down from the full size Build it linear to start with Forces you to prioritise content. In a linear environment there is no &quot;this is as important as the that on&quot; because there IS no equal. (insert a picture for the slide of a row of kids shortest to tallest).
there is no substitute for testing on the actual devices, but if you don't have them then you can check out web developer tools. In fact, set them up as presets for you to push them through. All your business comes online, then buy devices