CSSKarma

display your <style>

designing the web since 2002

Archive for January, 2009

|

Where I Get My News

Friday, January 16th, 2009

article image

This morning it occurred to me that I haven’t written a post about my RSS feeds. I’ve been meaning to for about a year now, but for whatever reason it hasn’t happened until now. I rely on my feed reader for a lot of inspiration so I feel like I should share that and maybe promote some great sites at the same time.

I Break my feeds into 2 categories: Work & Fun

Work

Fun

So, that’s all of them. Did I miss any big ones? Let me know if there’s some great resource we should all be reading.

Tags:
Posted in News, Web Development | 8 Comments »

Centering an Image

Tuesday, January 6th, 2009

<div align="center"> is deprecated.

It’s been deprecated for a long time, but it keeps creeping up for things like center aligning an image.

Another popular way to do this is to wrap an extra div around the image and set the text alignment to center. This creates (as you might know, I hate), an added layer of XHTML code that you really don’t need.

.image-wrap{
text-align:center;
}

This goes back to one of my pet peeves about using too many divs. Here’s what I came up with:

CSS
#content-main img{
display:block;
width:auto;
margin:auto;
}

That will center your image, and of course you can add a class in if you don’t want all your images centered.

Just a quick tip today, as I’m getting back into the swing of things after vacation. I hope everyone had a good holiday season.

Tags: ,
Posted in Web Development, Web Standards | 6 Comments »

|

New from the blog

Are My Sites Up? authenticjobs.com