Have you ever had a div where the last thing in there (or even the only thing) is an image? If so you will most likely have found that most browsers puts 3px or so extra space beneath your image.
Here’s what I mean

Thisis a div which consists of a background image for the blue background, a paragraph for the text and an image of a heart to finish. Ideally I do not want the extra few pixels at the bottom showing my backgroudn through.
<div class=’testimonial’>
<p>“Thank you so much for your help. I met Bob through the site after less than a month, and we are still together and happy all these months on. Thanks Motorway dating ”
<br /><br />
<strong>Katie x</strong>
</p>
<img alt=’Motorway dating testimonial’ src=’images/testimonial_bottom.gif’ width=’178′ height=’76′ />
</div>
You would think that adding margin: 0px; padding: 0px will sort the problem but nope, nadda.
I tried googling but couldn`t find anything on the subject apart from suggestions of zero margins and paddings despite many people coming across this very annoying problem.
So I put the good old thinking cap on and remembered this nifty little piece of css
vertical-align: text-bottom;
Hurray! Place this onto your image css
.testimonial img {vertical-align: text-bottom;}
and voila, no extra space beneath your image. Just to prove it here is what my testimonial looks like now

Hope this helps.
Has anyone else noticed the blatant overuse of the word bespoke lately, even companies are being formed with the word bespoke in the title.
Today there was a company van in front of me, ‘Bespoke Painting’ it had plastered all over the back and sides.
Bespoke Painting?
Continue reading ‘Bespoke this, bespoke that’
In late November we were told it was going to be a warm December and hardly any rain, yet again today I am defrosting my car in spitting rain! Continue reading ‘UK weather forcasters - they know nothing it’s official’
This morning I have been developing a website from a series of .psd files. The designer did something that I haven`t had to code into a website for a very long time, the navigation area had an opacity, a semi transparent layer over an image. My first thought was cross browser compatability to ensure it works in all web browsers Continue reading ‘css opacity across all web browsers’
I have just finished reading what is probably one of the best and heart hitting stories I have ever read. For me that is quite a statement, but the story is close to my heart and expresses feelings that unfortunately I don`t have the skills to write down (as readers of my blog will appreciate hehe).
The story is that of losing a pet, someone (yes I use the word someone for a pet) whome shared your life, been through highs and lows, stayed with you and showed you unconditional love throughout your time with them.
The author is Bruce Fogle, a vet who recently lost his six-year-old female golden retriever. It is great to read someone who expresses the same feelings I feel towards my dog. Some people think I am silly and stupid for how I treat my best friend, I say read this and if you don`t share the relationship with your dog Bruce had with his and I have with Molly, then I pity you but hope that one day you will also share this unique and truely amazing relationship with your pet.
Here is the article on The Independent website.
If you live near Derbyshire you will most likely bump into Molly and myself out walking, although sometimes Molly decides to play hide and seek. In true Where’s Wally stylee, here’s is our own version, Where’s Molly.
Continue reading ‘Where’s Molly?’
The people (word people used loosly) behind this great country of ours need a major kick up their ass, what are they thinking approving the sale and manufacture of electric shock dog collars?
Many months ago I (and many of my friends along with thousands of others) signed a petition to prevent the manufacture and sale of electric shock dog collars. Now I don`t think any sane human being would need any explanation as to why I signed the petition.
Continue reading ‘Electric shock dog collar approved by government’