Archive for July 18th, 2005

CSS text-align: center in Firefox

I was showing someone the website for The White Hart in Ashbourne that I´d knocked up when I had five minutes spare. Since he uses Firefox and this site uses more CSS than tables for layout, it was displaying the background image in the center where it should have been but the text was on the left side.
 

Turns out that Firefox does this if you specify text-align: center; in the body´s CSS styling. The easy fix those is to put all the body´s contents in a div and center align that.

Slightly off at a tangent

We´re starting a new project at work to acompany our set of directory sites but as opposed to it being an online venture which is what we mainly do, this one is a magazine for local areas, e.g. The Spondon Rabbit for Spondon in Derby.

 
I like this project because there is very little to do on my part. I might have to upload a few adverts every month but thats easy, and the sites are pretty basic so creating new ones when we do more areas is easy too. For the first sites I was even lazier and got Sam, our GCSE work experience lad to do them for me.
 
Plus I get to be a journalist now as well. Since its locally based the stuff in there is mostly going to be about stuff going on in the community and so on, but we´re also going to some of the human interest stuff and I´m going to be writing a few articles along the lines of "How to keep your PC running smoothly" and "Avoid Internet Phishing scams". Should be interesting.