Hi, I'm Tim Millwood. I am a Web Developer from Abergavenny, UK, and work for Mark Boulton Design, specializing in Drupal. This is my blog!

css

Media queries & Drupal

Media queries are getting more and more popular in web design to allow your web site to change depending on the screen resolution, or screen orientation.

It is very simple to add media queries to your Drupal theme.

To define a CSS file in your Drupal theme's info file you would usually write declarations such as

stylesheets[all][] = style.css

or
stylesheets[screen][] = style.css

etc.

To use media queries you can write declarations such as

stylesheets[screen and (max-width: 600px)][] = screen-600.css

or
 

A weekend full of Drupal

This weekend along with the usual food shop and grass mowing I have been working on many Drupal projects.

The first being a module called "Referrer" in version one it will create a block like the one to the right that says "Hosted on (gs) Gris-service by (mt)". This will then link to Media Temple with your referrer link. I will then develop it to allow the user to select their host in the configuration page, it will then show the relevant logo with referrer link.

Syndicate content