background preloader

ResponsiveDesigns

Facebook Twitter

Responsive embeds – Anders M. Andersen. November 28, 2011 This article shows examples of how to embed video and other iframes in a responsive web design and has examples with YouTube, Vimeo and Slideshare. I found a neat little CSS trick on the A List Apart article “Creating Intrinsic Ratios for Video” and I did some experimenting with it. (Yes, I had to look up the word Intrinsic…) The problem with embed code that you copy from websites like YouTube is that they often contain a fixed width and height in pixels. This technique is fully flexible and I have tests below with Vimeo, SlideShare and YouTube (sorry if this post took long to load…). First, you just need to remove the width/hight attributes from the embed code you get: Next step is to wrap this in a container tag so that we can style it: Then comes the CSS.

I’m not going to explain all this in detail, the original article does that better than I can anyway, but this code asumes a 16/9 ratio (56,25%) on the embed. That’s it. Vimeo example Youtube example Slideshare example. Responsive Images: Experimenting with Context-Aware Image Sizing. 10 Key Considerations for Your Mobile Web Design Strategy. Brian Casel is a web designer and co-host of Freelance Jam, the live web show for independent professionals who build the web.

Connect with Brian on Twitter @CasJam. There’s no turning back now. The web has gone mobile. More users are accessing the web from more places on more devices than ever before. What does this mean for web designers and site owners? Your strategy will differ depending on what type of project you’re working on, but make no mistake, you do need some kind of strategy for how your website (or your client’s website) functions in the mobile space. In this article, I aim to highlight 10 crucial items that you, as the web designer, developer or site owner, need to consider at the outset of your mobile site design project. 1. Usually a mobile website design project comes about through one of the following circumstances: 2. In most cases, you, as the designer/developer are being hired by a client to design a mobile site for their business. 3. 4. 5. 6. 7. 8. 9. 10. Mobile Web Design: Tips and Best Practices. Feb 09 2010 Last year, more than 63 million people in the United States accessed the Internet from a mobile device.

It’s forecast that by 2013 there will be more than 1.7 billion mobile Internet users worldwide. With those kinds of numbers, it’s imperative that web designers and developers learn optimal development and design practices for mobile devices. For the most part you won’t need to learn any new technologies for mobile site design. You may want to check out the following related article as well: Mobile Web Design Trends for 2009 Familiarize Yourself with the Hardware and Software Available Cell phone and mobile device platforms vary greatly when it comes to operating system, screen size, resolution, and user interface.

The most common operating systems in use are Windows Mobile, the iPhone platform, Palm OS, Mobile Linux, Symbian OS, the BlackBerry platform, and Android (which is poised to get a lot bigger thanks to a recent deal between Verizon and Google). Simplify! Examples Disney. Css - Extending header background if container is not fluid. Skeleton: Beautiful Boilerplate for Responsive, Mobile-Friendly Development. CSS: Elastic Videos. While I was coding the Elemin Theme (a responsive WordPress theme that I recently designed), one of the challenges that I faced was to make the embedded videos elastic. Using the max-width:100% and height:auto trick works with native HTML5 video tag, but it doesn't work with embed code using iframe or object tag.

After hours of experimenting and Googling, I finally found a trick on how to achieve this. If you are creating a responsive design, this simple CSS trick will come in handy. View the final demo and resize your browser window to see it in action. View Demo Elastic Videos Elastic HTML5 Videos (demo) With HTML5 video element, you can easily make it elastic by using the max-width:100% trick (see elastic HTML5 video demo). Elastic Object & Iframe Embedded Videos (demo) The trick is very simple. How to Create Fixed Width & Elastic To restrict the width of the video, an additional <div> wrapper is required. Compatibility Credits This trick was found on tjkdesign.com. Responsive Design with CSS3 Media Queries. Screen resolution nowsaday ranges from 320px (iPhone) to 2560px (large monitor) or even higher. Users no longer just browse the web with desktop computers.

Users now use mobile phones, small notebooks, tablet devices such as iPad or Playbook to access the web. So the traditional fixed width design doesn't work any more. Web design needs to be adaptive. The layout needs to be automatically adjusted to fit all display resolution and devices. This tutorial will show you how to create a cross-browser responsive design with HTML5 & CSS3 media queries. View Demo Responsive Design Download Demo ZIP See It in Action First Before you start, check the final demo to see how it looks like. More Examples If you want to see more examples, check out the following WordPress themes that I designed with media queries: Tisa, Elemin, Suco, iTheme2, Funki, Minblr, and Wumblr. Overview The page's container has a width of 980px which is optimized for any resolution wider than 1024px.

HTML Code HTML5.js Step 1 Demo. 21 top tools for responsive web design. The Goldilocks Approach to Responsive Web Design. 33em 16em With over 4 billion mobile devices in use around the world, mobile browsing is rising fast. We can no longer assume that our sites will be viewed on a desktop monitor with an average resolution. Perhaps we never could.

The answer, proposed by Ethan Marcotte, is Responsive Web Design. Instead of building separate sites for each device, we build one site that adapts to each device. What if we could create a truly universal design that was device independent – one that, no matter what device you viewed it on, looked like it was designed just for that device? Current Practice The current approach to responsive design binds the design to the device.

Device resolution; and, pixels. Device resolution There are thousands of different devices out there, with millions of potential contexts. Pixels Pixels sizes aren’t constant – or at least the display of them isn’t. 16px text on an iPhone can be ~60% the size of 16px text on a Macbook. The Device Doesn’t Matter The Goldilocks Approach Too big. Responsive Web Design. The English architect Christopher Wren once quipped that his chosen field “aims for Eternity,” and there’s something appealing about that formula: Unlike the web, which often feels like aiming for next week, architecture is a discipline very much defined by its permanence.

Article Continues Below A building’s foundation defines its footprint, which defines its frame, which shapes the facade. Each phase of the architectural process is more immutable, more unchanging than the last. Creative decisions quite literally shape a physical space, defining the way in which people move through its confines for decades or even centuries. Working on the web, however, is a wholly different matter. But the landscape is shifting, perhaps more quickly than we might like. In recent years, I’ve been meeting with more companies that request “an iPhone website” as part of their project. A flexible foundation#section1 Let’s consider an example design. Becoming responsive#section2 responsive architecture .