Gary versus the web
Blog

Free Valid XHTML & CSS template

October 7th, 2009

xhtml-template

I’m happy to release this W3C valid XHTML & CSS template, this is a bare template featuring a header, sidebar, main text area and footer for you to style as you wish. This template is ideal for those who are new to XHTML and CSS  programming, you can take it and easily style it meet your needs. It’s not a fluid template however it does feature percentages and ems, for div widths and text sizing. This template has been tested in IE 6, IE 7, Firefox and Safari, and it has passed the W3C CSS validation test and the W3C XHTML validation test.

A demo can be seen here.

And the zip file can be downloaded here.

Doodling on the iPhone

October 5th, 2009

I recently purchased the new iPhone app Autodesk SketchBook Mobile, and as I had a spare five hours on my train trip back from Bristol today I thought I’d have a play. At first found it hard to draw with my fingers instead of a pen or stylus however I found it easier as the time went on. The app has some great features such as layers (like Photoshop) allowing you to do your line drawing on one layer and your shading and colouring on another. It’s a pity that there are only three layers, as I found I wanted different colours on separate layers. I also found it a shame that there wasn’t an undo button, as it was a bit tedious going back and erasing any errors whilst making sure I didn’t erase any areas I was happy with by mistake.

However for £1.79 its a great app probably the best that I’ve ever brought, and great for killing time during a long commute, below are some of the doodles I was doing today, hardly masterpieces:

Coke bottle iPhone doodle

Alien iPhone doodle

Posted in General | No Comments »

Photo retouching

September 30th, 2009

I recently retouched a child photo of my fiancee for my future mother in law, the results are below:

Original

kaylie-baby-old

Retouched version

kaylie-baby-new

New camera

September 30th, 2009

Just purchased a Panasonic Lumix DMC-FS62 camera, loving the picture quality, thought I’d take a few pictures of Snickers my Russian hamster. Plus it isn’t a blog unless you have some pictures of your pets.

snickers-1

snickers-2

snickers-3

Posted in General | No Comments »

How I use my ems

September 21st, 2009

Firstly what are ems?

Ems are a unit of measurement in the field of typography, equal to the point size of the current font. This unit is not defined in terms of any specific typeface, and therefore is the same for all fonts at the given point size.

What are the benefits of ems?

The main benefit of ems is keeping the text consistent across all the major browsers when the user increases/decreases the size of the text on a web page.

How I use ems

Now before you start to use ems in your builds its important to note that my default 1 em = 16 pixels.

I have noticed that various programmers have there own methods to make their CSS ready for ems, personally I do the following:

Create a “html” tag make the font size 100%, I then create a “body” tag with the font size as 1 em this solves the notorious font re-sizing issues that IE6 users experience. Now my body tag has a value of 1 em, and remember 1 em = 16 pixels. From this I can now work out the em values that the rest of my text should have.

As I’ve never been one for maths, I tend to use a em calculator, one can be found here, others are out there, this saves you having to work out the value through using the em formula, alternatively you can look at a em conversion table such as the one found here. When using a em calculator you have to start by specifying the body value, which as stated above I’m going to have as 16 pixels (1 em). Once this value is specified we can then branch off it by creating a new nodes, in which we can enter a new value such as 14 pixels. When entering a new pixel value into a node you will be given in return the relevant em value, which in the case of 14 pixels will be 0.88 em.

Posted in Coding | 3 Comments »