Friday, 25 June 2010

Recently I read an interesting article by Ethan Marcotte, called responsive web design.
http://www.alistapart.com/articles/responsive-web-design/
In this article Ethan explains why we should design more responsive with all
devices in mind and more flexible websites. His demopage shows the posibilities
of flexible grid and resizing images.

This flexible approach would be even more usefull for Drupal themes.
Just look at the possibilities this approach can have.

Screenshot of a mobile version of krimson.be Screenshot of a desktop version of krimson.be

How it works

I've created a Drupal prototype, based on the demopage from Ethan.
The prototype uses an external stylesheet and CSS 3 media queries, wrapped
together in a HTML 5 doctype. These techniques are fully supported in your
favorite browsers except for Internet Explorer. There is a Javascript plugin
to make it work in IE.

The query contains two components:

1. a media type (screen), and
2. the actual query enclosed within parentheses, containing a particular
media feature (max-device-width) to inspect, followed by the target value (480px).

Conclusion

Planning your design, building everything around a fluid grid, that is what responsive Drupal theming is all about.

Kristof Orts and Matthias Vandermaesen did a session on on this at Drupalcon Copenhagen.
You can find the slides at slideshare.

Written byKristof Orts

The most remarkable thing about 'the' Krimson Graphic Designer and Adobe Specialist is that, during a briefing, you can't help but think that the kid didn't get a word of what you said. Then he quietly marches out of the room and returns before the deadline with a perfect reflection of your demands - but better, WAY better - the Eagle Eye For Detail. Which is why he was hired right after his internship. This ice hockey goalie catches pucks and bad guys, he melts slowly and so the Krew prepares for the day Kristof loses his cool.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <h4> <br>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.
QR-code Krimson Antwerpen

Antwerp

Zénobe Grammestraat 34
2018 Antwerp, Belgium
Call us: +32 (0)3 298 69 98
E-mail us: info@krimson.be
QR-code Krimson Gent

Ghent

Hof ter Dampoort
Dendermondsesteenweg 48A - 101
9000 Gent, Belgium
E-mail us: info@krimson.be

Contact us

By submitting this form, you accept the Mollom privacy policy.