Sam Croft

Full-stack developer

Quick CSS tip: creating percentage width borders without using superfluous markup


Filed in: css

Note: This article is about the physical width of a border based on its element’s size. This article is not about the border-width css property.

Lately I’ve been working on a lot of designs that require a percentage, or fixed, border width that is different to the width of the box model for the element it is being applied to. More often than not this is a centre aligned small border-bottom to visually separate one section from another.


Moving into a new studio—why it is the right time for Running in the Halls to expand in sq ft


Filed in: rith

March 2012 was an incredible month for Running in the Halls (RITH). We launched Librarygame and were simply overwhelmed with the response from libraries all over the world.

I didn’t think it was possible to top the feelings we shared during launch week, but the momentum we experienced as a team in March has well and truly continued into April as we made the move into a much larger studio.


Running in the Halls launches Librarygame—gamification for public and academic libraries

  • 1 comment

Filed in: launch, librarygame, rith

Badges and achievements you can unlock while playing Librarygame
Librarygame—a beautiful game to play in public and academic libraries

In October 2009 Running in the Halls (RITH) sat down and penned the idea of gamifying the library experience. The concept? To award points, badges and achievements for borrowing and returning items, accessing resources and physically visiting the library.


Posting data from a PhoneGap app to a server using jQuery


Filed in: android, forms, iOS, jQuery, MySQL, PhoneGap, php

Recently I’ve had several requests to create an article about posting data to a server from a PhoneGap app so I thought I’d cover the steps I go through when dealing with this kind of requirement.

The method is extremely simple providing a few important steps are followed.


Using the CSS content property responsibly without compromising your design and markup


Filed in: css, html, usability

CSS has a wonderful property; content viagra aus spanien. This property allows extra content to be added to a design directly from your stylesheet. Unlike JavaScript, however, it does not add the extra content to your markup after the DOM has loaded. The content will not appear anywhere in your markup, it only appears in the actual rendering of a page.

The content property can be used to great effect providing it is used responsibly in ways that do not break your page if the content, you are adding via this property, did not exist.