Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-07 14:07:38

Registered: 2007-01-05
Posts: 55

Images in RSS feed not centering

Hi guys!

I have a newsletter which I send out to mailing list subscribers. I recently added a RSS option that will allow the posts to be sent to recipients inbox directly. The problem is that the container for the mail is too large, and there’s lots of space at the right (my images are smaller than the container and all to the left, even though I’ve added align=center to my stylesheet). What can I do to make the images align to the center in all my RSS feeds?

See here for a better idea…


#2 2010-10-10 13:11:12

Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137

Re: Images in RSS feed not centering

Hi amyng.
You could try this CSS, it might help you – it’s what I use on my images to center them:

	display: block;
	margin-left: auto;
	margin-right: auto;

That centers the image within a div, and is called like this:

<img class="centered" src="/images/example.png" />


Board footer

Powered by FluxBB