Monthly Archive for January, 2008

Centering images with WordPress

Can be the devil, depending on how your theme is configured and how good you are at CSS. Tonight, I struggled for longer than my geek-pride will let me admit, to get Jen’s blog to display centered images. Basically, if you have a section in your stylesheet that goes something like this:

.entry img {
border: 1px solid #888;
float: left;
margin: 5px 10px 5px 0;
}

Comment out the “float: left” like this:

.entry img {
border: 1px solid #888;
/*float: left;*/
margin: 5px 10px 5px 0;
}

Then you will be able to center images in the visual editor by clicking on an image and then the ‘align center’ button. Now, I will be the first to admit that there might be a better way of going about this, but what you see above worked for me, and will hopefully continue to work and not break something else. If anyone has a better solution / workaround, please let me know.

The above code is to make an image centered in the post, with text above and below the image. If you’re trying to center an image and wrap text around it, I cannot help you and I have not tested the above to see if that will work (wrapping text all the way around an image, is just silly in my opinion).

4

Degrees Fahrenheit is the current temperature outside as I switch on the second computer in my room. I close my air vents, because with them open, my room becomes unbearably warm and my computer which is always running, does a good job at keeping things at a livable temperature. Who knows, the electricity spent by using computers as a heat source might actually be cheaper than gas these days.

“So this is the new year, and I don’t feel any different.”

Does anyone have crazy resolutions for this year, beside the cliched “lose a billion pounds” or “take up yoga”? I’ve resolved to make an effort to practice my guitar more, write another novel this year (this might wait ’till NaNoWriMo), write another screenplay either independently or with a partner, read more, and blog more.

I should probably add ‘clean my room’, ‘play more video games’, ‘win the lottery’, ‘drink more water’, ‘take more pictures’, ‘become a better programmer’ and ‘go to bed earlier’ to the above list.

I wrote this post with Windows Live Writer, and so far, I’m liking it quite a bit. For novel writing, I would recommend checking out yWriter4, and for screenplays, celtx. The next novel that I write, will probably be written using yWriter, unless I come across a better alternative that is also free.