css

Twitter CSS hack

Today I painted the Twitter world red with a simple hack.

By Tweeting the following tweet, it is possible to inject CSS into Twitter, and make the whole screen go red.

http://twitter.com/#@"style="background-color:red;color:red;position:absolute;top:-999px;left:-999px;z-index:99;width:9999px;height:9999px"/

See the hack in action. http://twitter.com/timmillwood/status/25109323299

Thanks for the heads up on this from:
http://twitter.com/RainbowTwtr#@
http://twitter.com/chrisred
http://twitter.com/mb006

UPDATE:

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.

Subscribe to RSS - css