img centering

They have: 27 posts

Joined: Sep 2005

I have a two-column CSS layout website. How do I center a image in the right column? That is, if one looks only at the right column, the image will look centered.

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Just have it inside the div tags for the right column. Then center it like you normally would, with or something along those lines.

They have: 27 posts

Joined: Sep 2005

Thanks! I was trying to apply the styling to the img tag itself.

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

No problem, glad everything worked out.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.