from-the-getty.jpg

Generic Zantac

I Generic zantac, f you're like me, then you obsess over getting things like images, blockquotes, and lists to display "just right" on your Web site. Through intelligent use of CSS, you can exercise absolute control over your layout, presenting the reader with articles so rich with style that Donatella Versace would be jealous.

Unfortunately, an ever-growing percentage of your readers are never going to see your code-wrangling handiwork, because they prefer to read articles through a feed reader like Google Reader or Bloglines. To make matters worse, you have almost no control over the way your posts will display across the various readers. You can't use your in-site CSS styles, and – this is the biggest sin of all – images are often displayed inline with text.

The horror, Generic zantac.

It's true...ugly feeds can happen to good people. Check out what I mean in the figure below.

Inline image in Google ReaderFigure 1. An ugly inline image in Google Reader.

You wouldn't let inline images slip through the cracks like this on your own site, and if you're anything like me, the feed reader issue drives you nuts. Generic zantac, It gets worse, though, because WordPress is not the easiest shrew to tame when it comes to properly formatting posts for display both on your site and in feed readers.

And while WordPress isn't the only CMS platform out there, the inline image problem extends well beyond the WordPress user base. Therefore, those of you on MovableType, TypePad, Drupal, Discount bactroban, etc. still ought to be able to glean something positive from this brief tutorial.

When you're done, you'll have better looking feeds that are easier to read, and you'll have the added benefit of actually being able to sleep at night, which I hear is a bonus. Figure 2, shown below, is an example of a nicely-formatted image within a feed reader—notice how the paragraph text picks up under the picture instead of beside it, Generic zantac.

Proper image display in Google ReaderFigure 2. A properly-formatted image in Google Reader.

Feed Reader Formatting Options

As you might expect, feed readers do not offer much flexibility when it comes to styling images. Essentially, you've either got a nice image like you see in Figure 2 above, or you end up with the hideous beast that I forced you to look at in Figure 1.

You're probably accustomed to using image-handling CSS classes (like left, right, and center) on your own site, but at this time, the associated styles will not carry over into feed readers1.

You might also be familiar with the align="left" and align="right" attributes, and while those will work inside feed readers, they are considered deprecated in new XHTML specs from the W3C2. Generic zantac, Therefore, if I were to teach you this method, it would be the equivalent of me teaching you the ins and outs of a 5600-baud modem—a complete waste of time, and certainly nothing that is going to help you a couple of years down the road.

So, Order ampicillin, the bottom line is that the most standards-compliant, most consistent result you can hope for in feed readers is going to resemble Figure 2 (regardless of the image-handling class used), and that's what you're going to learn here.

WordPress Post Formatting for Display in Feed Readers

Properly formatting your posts so that images display correctly in feed readers is simple, albeit somewhat counter-intuitive. To illustrate, we'll start with a very basic example—we'd like a center-aligned image, followed by a paragraph of text (just like you see in Figure 2).

For starters, you'll need to make sure that you're editing your post inside the normal text editor and not inside the Rich Visual Text Editor. Although WordPress 2.1+ allows you to switch between the two views, I experienced some problems with this, especially when editing a post after it had already been published, Generic zantac. I highly recommend that you disable the Rich Visual Text Editor by going to UsersEdit, and then de-selecting the box next to "Use the visual editor when writing."

Next, all you have to do is ensure that you treat your image reference like a separate paragraph of text, regardless of whether it's centered, aligned to the right, or aligned to the left. Done correctly, our example WordPress post entry box would end up looking like this:

WordPress post entry fieldFigure 3. A centered image should be treated as an individual paragraph.

Without the single line space between the image reference and the first paragraph of text, you'll end up with the nearly-pornographic result you saw in Figure 1. Make sure that extra line space is in there before you hit publish, and your post will hit the feed readers in style. Generic zantac, What about left and right-aligned images. To get them to display properly in a feed reader, imitrex Online Without Prescription, all you have to do is set up your img reference in a separate paragraph in your post editor, but you also need to make sure that it appears directly before the text that you want it to sit next to. The following example shows exactly how you would structure your post entry box for a right-aligned image:

WordPress post entry fieldFigure 4. For consistent results, treat left or right aligned images as separate paragraphs.

If you've done everything correctly, your post will end up looking like this in a feed reader:

Proper image display in Google ReaderFigure 5. A left or right-aligned image doesn't float beside the text in Google Reader, but at least it doesn't break the flow of the text.

Although the solutions proposed above are really quite simple in retrospect, they are the only ones I tested where on-site formatting was not compromised. The resulting code is, in my opinion, a little bloated because it contains unnecessary <p> tags, but it still satisfies the following critical requirements:


  • No text is broken or displaced in feed readers due to images.

  • Visitors to your site will not be able to tell that you've done some behind-the-scenes work to ensure that your post displays optimally within a feed reader.

  • You don't have to modify any core WordPress files in order to make this happen—you just have to know how to get the text editor to play nice.

Now go forth, and hook up your RSS subscribers with posts that are a little easier on the eyes.

1 Bloglines is the smartest feed reader that I tested, as it will actually float images left or right depending upon the CSS class used in the img declaration. However, this is the exception, not the rule, so I won't be addressing this facet of Bloglines directly in this tutorial. Regardless, the techniques described here will work like a charm in Bloglines, Actos Dosage, so proceed with confidence.


2 Check out the W3C's XHTML 1.1 img tag specs.


3 And yes, I know my image captions are "broken" in feed readers, but they look so cool on my site. What can I say, I guess a caption tutorial is next on my list.


.

Similar posts: Buy prevacid Without A Prescription. Order desyrel Without A Prescription. Atarax Prescription. Allopurinol Prescription. Neurontin No Prescription.
Trackbacks from: Generic zantac. Generic zantac. Buy flomax C.O.D. Vasotec Without Prescription. Cheap niaspan Online. Cheap xenical Overnight Delivery.

Take the Next Step!

  1. Share this on Twitter:
  2. Submit it to StumbleUpon
  3. Bookmark it on Delicious

98 trackbacks

Link Tips: 17 June 2007
December 16, 2007 at 7:50 am
Three things you should know before using images in your blog posts » WP Project  
May 17, 2008 at 6:48 pm
155 Wordpress Resources, Tutorials, Plugins, Themes, AJAX, Podcasting…WP Monster List | Speckyboy - Wordpress and Design
June 2, 2008 at 2:19 am
40+ Most Wanted Wordpress Tricks and Hacks
June 15, 2008 at 6:52 am
Other Posts This Week - Process Control Edition | PatrickMD.net
June 29, 2008 at 10:13 pm
Más de 40 consejos y trucos para Wordpress « El Cubanito Web
July 30, 2008 at 2:24 pm
Tutoriale si hack-uri pentru wordpress ( lista mare ) at elbandito.us
August 14, 2008 at 7:36 am
Wordpress Hacks, Guides and Tricks | TechnoBuzz.net
August 17, 2008 at 4:36 am
RCDM » Blog Archive » 40 consejos y trucos para Wordpress (muy interesante)
August 25, 2008 at 3:58 am
Top 30 Most Wanted Wordpress Tricks and Hacks | Make Money Blogging Experiment
September 1, 2008 at 6:10 am
WordPress 常用技巧40+则 - 从1981年2月开始的人生
September 1, 2008 at 1:24 pm
Wordpress ile ilgili 155 kaynak |
October 31, 2008 at 9:22 pm
41 Wordpress Tricks & Hacks | Tips For Web Users
November 4, 2008 at 6:58 pm
» Mighty Helpful Links
November 5, 2008 at 12:01 pm
10 Useful RSS-Tricks and Hacks For WordPress | virology.tv
December 2, 2008 at 8:02 pm
10 Useful RSS-Tricks and Hacks For WordPress | Simple Drops
December 3, 2008 at 12:56 pm
10 Useful RSS-Tricks and Hacks For WordPress | Link Archive
December 7, 2008 at 6:21 am
10 Useful RSS-Tricks and Hacks For WordPress | The Blog Specialist
December 8, 2008 at 3:37 am
10 Useful RSS-Tricks and Hacks For WordPress | Viet Blog Viet dot Com
December 9, 2008 at 8:52 pm
41个最值得应用的wordpress技巧工具 | 大眼博客---睁大眼睛看
January 3, 2009 at 8:17 am
cssframework » 40+最值得应用的WordPress技巧和工具
January 4, 2009 at 10:38 pm
40+最值得应用的WordPress技巧和工具 - EventID中文网
January 5, 2009 at 3:08 pm
WordPress 10个Rss技巧 | Pergian 客博. 写自己 记人生 转精华
January 13, 2009 at 3:07 am
63 Essential Wordpress Hacks, Tutorials, Help Files and Cheats : Speckyboy - Web Design, Web Development and Graphic Design Resources
January 24, 2009 at 11:06 am
Wordpress Hacks Guide | CSS Experiments
January 28, 2009 at 3:56 pm
Wordpress增强:40多个你最想要的Wordpress技巧和插件工具 : 互联网营销博客 - Internet Marketing
January 29, 2009 at 11:25 am
John Nasta » Blog Archive » Wordpress tips & tutorials
February 19, 2009 at 5:26 pm
50 Wordpress Resources that are Guaranteed to Improve Your Blog! | MattFlies.com -- Sarcasm, Tech, News, and More
February 19, 2009 at 6:19 pm
Top 50 Wordpress Tutorials - NETTUTS
February 23, 2009 at 8:12 pm
MyBlog - Top 50 Wordpress Tutorials
February 24, 2009 at 3:47 pm
10个优化WordPress RSS Feed的技巧 | 独立博客空间站
March 1, 2009 at 2:28 pm
50个最强WordPress教程 at 毅人博客空间
March 2, 2009 at 7:04 am
wordpress實用技巧40招 | 時間不等於金錢
March 2, 2009 at 9:59 am
小卡在线 _kavid.net » Blog Archive » 流行博客系统WordPress的50个最强教程
March 4, 2009 at 10:02 am
50+ Wordpress Plugins & Hacks Candy Store | WpBlogHost
March 4, 2009 at 7:12 pm
Top 50 Wordpress Tutorials | Tech Underground
March 6, 2009 at 5:24 am
50个最强WordPress教程 | 西小西
March 8, 2009 at 10:11 am
Top 50 Wordpress Tutorials | Web Design,Photoshop Tutorial,Design News
March 13, 2009 at 10:47 am
Wordpress中10个有用的RSS技巧和修改(二) | WordPress后援基地
March 16, 2009 at 8:40 pm
Wordpress ile ilgili 155 kaynak | iLGinciX TEAM
March 20, 2009 at 3:17 am
Formating Images for Feed Readers wordpress
March 21, 2009 at 11:13 pm
135+ Ultimate Round-Up of Wordpress Tutorials | About Us | instantShift
April 4, 2009 at 3:54 pm
Top 50 WordPress Tutorials | The PhenixbluE
April 12, 2009 at 11:06 pm
我想网 » Blog Archive » 40+最值得应用的WordPress技巧和工具
April 21, 2009 at 12:10 am
我想网 » Blog Archive » wordpress的十个有用的RSS技巧
April 21, 2009 at 12:23 am
Wordpress Tricks and Hacks « Online Free Applications Software Tips Tools Wallpapers
April 22, 2009 at 3:52 am
WordPress开发教程资源大全 | WordPress资料站
April 25, 2009 at 9:18 am
Come Shoot The Breeze With Me | A Classic Housewife In A Modern World
April 28, 2009 at 11:30 pm
Come Shoot The Breeze With Me |
May 5, 2009 at 10:52 pm
Top 50 Wordpress Tutorials | Design-Tut+
May 6, 2009 at 5:06 am
40+提高WordPress博客应用体验的技巧/插件 | BeckMint
May 15, 2009 at 7:02 pm
40 most wanted tips and tricks for Wordpress - itsacoolblog.com
June 1, 2009 at 10:39 pm
155 Wordpress Resources, Tutorials, Plugins, Themes, AJAX, Podcasting, WP Monster List | Sayagi Project*
June 22, 2009 at 1:47 am
40+ Most Wanted Wordpress Tricks and Hacks | Quest For News, A TUTORIAL Base
June 27, 2009 at 9:46 am
40+ Wordpress Tricks and Hacks | Mellowish
July 7, 2009 at 4:26 am
40+ Most Wanted Wordpress Tricks and Hacks | Overflowed Media
July 11, 2009 at 8:56 am
SEDW.org / Useful RSS-Tricks and Hacks For WordPress
July 14, 2009 at 1:40 pm
40+最值得应用的WordPress技巧和工具 « 爱牛牛玩具总动员
July 24, 2009 at 9:52 pm
Top 40+ most wanted wordpress tips and tricks | Tomislav Mihajlovic (Toma) - Toma2U.com
August 6, 2009 at 6:58 am
Student’s Home » Blog Archive » 63 Essential Wordpress Hacks, Tutorials, Help Files and Cheats
August 8, 2009 at 10:58 pm
30+ Useful WordPress Tutorials
August 11, 2009 at 8:06 am
101 List Of Awesome Wordpress Tips and Resources
August 13, 2009 at 2:53 am
Algunos trucos para mejorar tu Wordpress | http://trukos.net
August 15, 2009 at 7:16 pm
Unlimited New Useful Wordpress Tips,Tricks & Hacks - Themeflash : One Stop For All Your Web Resources
August 23, 2009 at 11:44 pm
50个最强WordPress教程 | 帕兰映像
August 26, 2009 at 1:02 am
WordPress Tips and Tricks | WordPress eCommerce
August 28, 2009 at 9:42 pm
US Want - Your Blogs, Social Network, Search Engine for Drivers, UserGuide, Vids, Images, Tutorials
September 6, 2009 at 4:24 am
40+ Most Wanted Wordpress Tricks and Hacks | My Tech way
September 14, 2009 at 8:00 am
41 Most Wanted Wordpress Tricks and Hacks | eBookTM | Download ebook, Jetaudio skin, Games
September 17, 2009 at 11:21 pm
WordPress的50个最强教程 | 四叶草水晶天堂
September 18, 2009 at 2:25 am
Most Wanted 40+ Tips and Hacks For Wordpress | oOrch Blog
September 24, 2009 at 10:17 am
40+ Most Wanted Wordpress Tricks and Hacks « Los temas del Pelado
September 29, 2009 at 12:24 pm
40 consejos y trucos para Wordpress « Los temas del Pelado
October 1, 2009 at 8:01 am
40+ Most Wanted Wordpress Tricks and Hacks | 9Tricks.Com - Tips - Tricks - Tutorials
October 2, 2009 at 8:13 pm
40+ Most Wanted Wordpress Tricks and Hacks - Wordpress Releases
October 4, 2009 at 11:51 am
NamrouD | Upgrade Your Mind ! » 40+ Most Wanted Wordpress Tricks and Hacks
October 8, 2009 at 10:47 am
40+ Most Wanted Wordpress Tricks and Hacks | GREYBLOGS
October 21, 2009 at 3:29 am
50 Wordpress Tutorials « Uttammitra’s Blog
October 23, 2009 at 2:52 am
Online live » Blog Archive » 40+ Most Wanted Wordpress Tricks and Hacks
October 27, 2009 at 7:12 am
30 Amazing Wordpress Hacks, Tricks, Scripts « Desi Garmi: Malayalam Masti…!
October 30, 2009 at 12:35 am
that jon jackson » Blog Archive » the one in which i explain how to add thumbnails into your wordpress rss feed
November 12, 2009 at 8:54 am
Wordpress Hacks | DaveDesign.us
November 17, 2009 at 8:05 pm
鄞高博客 » Blog Archive » 50个最强WordPress教程
November 19, 2009 at 6:23 am
喜来客中文网 » Blog Archive » [推荐]41个最有用的WordPress技巧
November 27, 2009 at 10:34 pm
Mas de 40 Trucos para tu Wordpress | trukos!
December 5, 2009 at 6:16 am
bulldoggie studio » Top 50 Wordpress Tutorials
December 12, 2009 at 5:11 am
30+ Useful WordPress Tutorials | The Apple Tech Blog
December 14, 2009 at 7:20 am
Top 50 Wordpress Tutorials from TutPlus | WordPress News Magazine
December 22, 2009 at 2:21 am
WBCOM by vapvarun » wordpress » Wordpress Tutorials/Hacks
January 14, 2010 at 11:17 am
35 WordPress Tips and Tricks You Must Know | SmashingHub
January 21, 2010 at 2:00 am
35 WordPress Tips and Tricks You Must Know « Design Works
January 21, 2010 at 6:37 am
Esta semana en Twitter: 23-01-2010 | ceslava - Diseño y Formación
January 23, 2010 at 1:04 pm
Feed Items aren’t Email | Fascination Beach
January 25, 2010 at 10:10 am
top 50 tutorials of wordpress(must use) | Umraz Ahmed | the official site
January 26, 2010 at 5:00 am
10个优化WordPress RSS Feed的技巧(1) « 逍遥阁
January 27, 2010 at 6:50 pm
Top 50 Wordpress Tutorials | NetExUrl | Web Development Tutorials & Design Resources
February 9, 2010 at 10:23 am
Wordpress tutorials - Gurushala
February 20, 2010 at 6:37 pm
|会学习的狗狗| 50个最强WordPress教程 : Welcome to www.studydog.net
February 21, 2010 at 12:06 am

79 comments… read them below or add one

JBagley June 13, 2007 at 4:12 am

I knew I wasn’t the only one hacked off at images displaying all over the place in feed readers! Thanks for the tip.

Reply

Matt J June 13, 2007 at 5:46 am

Oh the curse of the obsessive. I knew I had passed into that group when I was obsessing over the odd one pixel of padding that threw one heading out of alignment with another. Like the reader is EVER going to notice. Sigh.

Reply

Emon June 13, 2007 at 8:26 am

Ah, so simple it hurts.
By the way, Chris, why do YouTube embeds appear on Google Reader fine but not Google Videos?

I embed a lot of videos on my blog and Google video embeds don’t even show on the Reader. I’ve started to include a link to the video for feed readers only, but who has the time to click to open a new link?

The last place I expected Google Videos to not appear is Google Reader. Thanks!

Reply

blogjunkie June 13, 2007 at 9:21 am

Hi Chris, this is a pet peeve of mine as well. I originally solved it by wrapping my images in <div class="right"> (which is also redundant code I admit) but did the job nicely.

Then WordPress 2.1 comes out and adds an opening <p> after my <div>, but no closing </p>!

And so, I’ve also resorted to using your technique. Cheers.

Reply

Adnan June 13, 2007 at 10:10 am

I’ve also been considering this as well, ever since I’ve adopted the “class” tag instead of the dated “align” – I thank the use of your Cutline theme for that ;)

Thanks for the post – much appreciated!

Reply

Bruce June 13, 2007 at 11:40 am

Thanks much, Chris. This had been on my mind a lot the past couple of weeks. In a few posts I just used divs to make it work out right (or left :) ), but this is sure more simple.

BTW, I have gotten away completely from using the rich text editor … my first really bad experience with it was with an embedded YouTube video. Then I started paying attention to what it else it was mangling.

Separate subject: looks like you’ve gotten the Subscribe To Comments plugin back up and running (?) … is it now suited for WP 2.2?

Thanks again.

Reply

Keiron June 13, 2007 at 2:05 pm

Definitely food for thought there!

I’ve got one of your old designs on my blog at the minute, but would like to design something original myself that is “easy on the eye”, unfortunately I’m a programmer and sometimes my graphic design eye gets left at home in a box!

Reply

jonolan June 13, 2007 at 6:15 pm

Thank you. I’ve been experiencing exactly these sort of problems. Now I know what’s causing them.

Reply

Dan Black June 13, 2007 at 7:21 pm

or you can use HTML (instead of xHTML) and use the otherwise deprecated align attribute. Then again I don’t use WP so perhaps there is no way to circumvent the use of xHTML?

@Matt J: the reader may notice. I notice things like that and I’m a reader of blogs.

Reply

steve June 13, 2007 at 8:12 pm

thanks for the info on how to edit our rss feeds but how do we edit others?

like:
http://www.thesuperficial.com/index.xml

are there any web tools that will let me do this and give me a new url? etc.

Reply

Chris Messina June 13, 2007 at 8:49 pm

I proposed something a bit different — and more in line with microformat trends and XHTML practices. You might check it out — essentially the idea is to use generic classes like “figure-a”, “figure-b” and so on and then work on a couple levels to get feed readers to add the proper formatting descriptions to their default CSS rendering.

While class=right and so on work to some degree, out of the original context, where layout might not be possible (say, on a cell phone), such classes are meaningless, if not inaccurate. It’s better, therefore, to use something that isn’t presentational but can be reused in new contexts for other purposes.

Reply

Chris P. June 13, 2007 at 9:38 pm

Bruce — I use WordPress 2.1.3 to run this site, so that’s why the Subscribe to Comments plugin still works. After testing other places and discovering the 2.2 compatibility issue, I decided not to upgrade this site until a new version of the plugin is released.

Dan — In the article, I noted that the HTML elements you mentioned are deprecated in current specs from the W3C (check this footnote for more).

Steve — I’m afraid you can’t edit other people’s RSS feeds. If there are tools that allow you to do this, I’m not aware of them.

Chris — Glad you stopped by, as that was some pretty interesting reading. At this point, I think there is no good solution to this problem that we can point to and say “yes, this is it.”

Regardless, I do think that this is an issue that is best solved by microformats. John Allsopp, whose book I’m currently reading, stopped by your site and mentioned that he wasn’t sure if microformats extended into this particular “structural” realm.

Personally, I think if you look at the idea behind microformats, then yeah, it makes sense that image display should be standardized in a microformat environment. This would greatly assist in areas like image search, and also in identifying and extracting digital media content from Web pages.

I see enough potential benefit to think that a microformat is certainly the “best-fit solution” here. Also, different feed readers would be more likely to adapt to a microformat standard simply because it wouldn’t be a proprietary concept native to one platform.

In the meantime, though, I think feed readers ought to be smart enough to identify classes attached to images. Bloglines does a fair job of this already, and I have a hard time finding something “wrong” with classes like left, right, and center

But like I said earlier, all of these solutions pretty much stink at the moment. Unfortunately, we’re probably still a couple of years away from something that we’ll all look at as an acceptable universal solution.

Reply

subcorpus June 13, 2007 at 10:59 pm

hmm …
interesting …
thanks …

Reply

Jason June 14, 2007 at 4:36 pm

After skimming it, I sent this article to a friend who was having trouble with this exact problem. It wasn’t until he asked me about it that I realized the ’solution’ proposed here is to move your alignment control to a class (which the feed reader won’t understand) because the reader will mess it up anyway.

Did I read that correctly?

Reply

Brian June 14, 2007 at 4:38 pm

Maybe I’m missing something, but what does the class= left|center|right reference?

Reply

Chris P. June 14, 2007 at 4:40 pm

Jason — No, try reading the article.

Reply

Jason June 14, 2007 at 4:44 pm

lol… RTFM huh? Guess I deserved that one…

Reply

Chris P. June 14, 2007 at 5:30 pm

Brian — Those are typical CSS classes that are employed by many popular WordPress themes for handling images. Although use of the align attribute is still quite prevalent, it was deprecated years ago in favor of using CSS to control the positioning of images.

Reply

Brian June 14, 2007 at 7:25 pm

Thanks Chris. So the theme has to have it defined somewhere in order for it to work….

In typical implementations, is it usually defined specifically for tags, or would it work on other floating elements (e.g. ), etc?

Reply

Chris P. June 14, 2007 at 7:29 pm

Brian — In my themes, I define these elements specifically for use with img tags, but it’s highly likely that if you checked out a bunch of WordPress themes, you’d see many different implementations.

Reply

Brian June 14, 2007 at 7:34 pm

Dugg the article & thanks for the replies.

Weird tho, anything that looked like html markup was stripped out my last comment. It was supposed to read “…specifically for img tags…”, and “…(e.g. div class = left )…”.

Reply

Wild Bill June 15, 2007 at 2:27 am

Thanks Chris, image alignment in my feeds has been driving me batty for a while now and this fix is so easy it won’t take much to fix this problem.

Reply

免费动画片 June 15, 2007 at 1:18 pm

Thanks Chris.

Reply

mihnea June 19, 2007 at 1:37 am

I have the same problem with the Google Reader. I will try to fix it like you said. Thanks!

Reply

HART (1-800-HART) June 20, 2007 at 1:53 pm

wwwooooooops! the Subscribe to Comments doesn’t work in 2.2.? After 90% of my sites are upgraded to 2.2 version .. this didn’t even occur to me to test.. // Thanks for heads up. //

Reply

Rod June 21, 2007 at 8:19 pm

Hi Chris,

Interesting issue. I’ve not even been able to show images at all in feeds, but the real reason I’m commenting is to share one of the tidiest feeds I’ve seen. Check out this guy’s feeds especially in Google expanded view. Very beautiful. http://johnplaceonline.com/

Reply

Chris P. June 21, 2007 at 9:49 pm

Rod — That guy’s feeds look great because he’s using inline styles on his img declarations to determine a float status and also padding around his images. In theory, anyone could do this and achieve great results. Problem is, inline styles are frowned upon in the development community because we (developers) are working towards complete separation of markup and style (HTML and CSS).

Inline styles are a “valid” technique, but no purist would ever let that slide. Plus, using inline styles precludes futureproofing, which is a critical strategy that pays huge dividends as you upgrade and improve your site in the future.

Reply

Andy Beard June 24, 2007 at 8:43 am

Bloglines isn’t smart

It is the only feed reader, to my knowledge, that totally strips out inline CSS.

Feedburner supports inline CSS
Emails by Feedburner support inline CSS
Google Reader Supports Inline CSS

Bloglines turns inline CSS into a huge mess.

In the end, I have rolled back to using… the deprecated solution (align left / right), and I am going to switch my fomating of footers to use… tables

Reply

James D Kirk June 26, 2007 at 3:38 pm

Ack! Don’t do it Andy! Leave the tables for dining on!

I hadn’t actually heard/read about the concepts that using inline styles were not a “good” thing, however, it does make sense to me after considering it. I use it on all my blogs at our community site. I’ve started to experiment with a dual approach of using both inline styles for the readers to give me at a minimum the alignment, padding, and no borders, while also using my themes style sheet by calling a class specific for the images.

Extra work, yeah. But at the same time, what are you going to do as a site owner/publisher until widespread standards (be they microformats or whatever) are, well, standard!?!

Reply

Dave June 28, 2007 at 3:22 pm

Chris, thanks again for another simple and well explained tip for all us, learn on the go bloggers. Much appreciated.

Reply

Susie June 30, 2007 at 12:30 pm

I totally love your style. Love your dog, your design. You rock… and very good content. Keep up the awesome work.

Reply

Marcia July 5, 2007 at 9:43 am

I am just migrating to Wordpress. org. Thank you for the info.

Reply

FIAR July 5, 2007 at 6:11 pm

Wow! I didn’t even know there was a problem with images in a feed. Thanks for the tip.

Reply

manish jain July 9, 2007 at 1:41 am

Chris,

The one thing I HATE about you is that you come out with an awesome blog post and then disappear for a month. I cannot wait a month between your excellent posts.

later,

mrj

Reply

Salik July 13, 2007 at 5:15 pm

this is an excellent tip for me too.

yes- i do pay a lot of attention to how my website and it’s feed looks on different browsers/feed readers but I am still working on making my blog compatible with both firefox and explorer…

and this is another insight.

thanks.

personally- i liked your theme very much…
it looks clean- and very beautiful.

would love to come back again.

Reply

Robert July 16, 2007 at 2:59 am

Chris,

How do you get Brian’s RSS and mail envelope graphics to bleed over the page margins?

I use your Coppyblogger theme and want to do something similar with my San people pictoglyphs.

See the logo on the righthand sidebar (top) at my site.

Will be grateful for any help you can provide.

Regards
Roberty Bruce

Reply

Sam Newton - LA Boom Operator July 18, 2007 at 12:59 am

that’s got some great pointers so that anybody that’s new to RSS feeds can get their stuff looking good. and it’s very simple. I’m So excited about it. even bigger sites can learn from this example. I seen a couple of bigger site mess up my feed. I won’t name names though.

Reply

David Bradley Blogging Tips July 19, 2007 at 1:41 am

Such a relief to discover I am not alone in my misery. I have been misaligned, maligned and resigned to displacement, your suggestion offers me hope of image salvation.

Thank you, Thank you, Thank you…

db

Reply

Fubiz July 30, 2007 at 7:31 am

Thanks for the tips!

Reply

Hopeful Spirit July 30, 2007 at 11:14 am

VERY helpful!

Now . . . can you tell us how to get those lovely captions underneath the photos on our blogs if using Word Press??

Reply

asia August 8, 2007 at 1:30 pm

Chris, great designs/sensibilities, love the visual pop in this blog’s design.

I have this tagged at delish for future ref and I will use it, thanks for helping the digitally challenged like me.

Hey what is your opinion of using www. or not, you may have posted about already and am a fat lazy walrus who hasn’t checked, but still agonizing over this one….I see you use it, but what do you think about just http.

Please help before i need more botox ;)

Reply

Chris Messina August 12, 2007 at 2:19 pm

I’ve created a page on the microformats wiki to discuss this concept further:

http://microformats.org/wiki/figure-examples

Cheers!

Reply

Chris August 15, 2007 at 5:10 pm

Thanks, this was driving me (a little more) nuts

Reply

Liew August 19, 2007 at 4:12 pm

For your information, WordPress users can use Feed Styler plugin to style blog feed.

Reply

Paul August 22, 2007 at 6:58 am

Your article on Win $5,000 Playing Facebook’s Premier NFL Football Application have not the required space in your feed.

Reply

Chris P. August 22, 2007 at 8:29 am

Paul — You are absolutely correct, but I actually had to do that to get the image to appear correctly on this site.

In my article, the image declaration appears before the actual text of the article. Whenever this is the case, additional vertical spacing is provided above the image if I properly format my image for feed readers.

I am somewhat obsessive compulsive, and admittedly, I can’t deal with this extra spacing on my layout. It’s not “perfect,” and that drives me nuts. In cases like this, then, I end up biting the bullet and blowing the format for feed readers.

This is a problem that shows up on other sites as well, but the vertical spacing incurred on my layout is more obvious and unsightly than most.

Reply

Suzanne of New Affiliate Discoveries August 24, 2007 at 1:34 pm

Chris, What a timely post! I was jsut trying to set up my feedburner feed for my new blog (linked above). I want to use feedburner like all the cool kids to track stats. Using the cutline theme, I can’t quite figure out where to insert the code, aside from just sticking the actual URL into the PHP code for the header file. Is there a better way to do it, like in the rss.php, rss2.php or feeds.php files?

Thanks for a great blog!

Reply

Chris Butterworth August 29, 2007 at 1:01 pm

I was writing a post this morning and was getting frustrated by the alignment of the pictures, both in my own wordpress blog, as well as the feedreaders. Unfortunately, I’m not good enough with the code to use your solution (the basic class tag in your example didn’t work for me), so I came up with a workaround that seems to be effective.
I wrote my post in microsoft word 2007, and created a 1×1 table for each picture. So the flow went: text, table w/ picture, text, table w/ picture, etc.
The finished product looks good in my blog and in my google reader. I’d love to hear your input, and to offer this idea to less tech-savvy bloggers!

Reply

Griffin September 3, 2007 at 3:20 am

For your information, WordPress users can use Feed Styler plugin to style blog feed.

Thanks for the info, Liew! I didn’t know that, so this is definitely helpful since a couple of my sites run on Wordpress.

I don’t think that using inline styles or attributes is an issue at all really. Honestly I am more concerned about the people that use my site than some random person that might look at my source code someday. As long as you’re not using inline styling for every aspect of your site there should really be no noticeable issues with load times or search engine optimization.

Reply

Gavin September 7, 2007 at 1:45 am

I have always wondered how I could get images to display in my feed. Thank you for the tip

Reply

plasebo September 25, 2007 at 10:52 am

I consider that this type of css and html codes are too excessive. A proper xhtml page would degrade nicely on a feed reader. Most feed readers have their own default styles that are applied to HTML elements to provide a nice and consistent look.

Stick to it…

Reply

Stuart Leamer September 27, 2007 at 8:54 am

I am so disgusted with what you call ugly my god you must think that you are so attractive to have tohe GALL to make your own value judgemeents on people. I could not beleive that you whom I think are an American, would think that you are so georgeouse as to make your disgusting judgements on others of most photos that I saw where candid trusting photos. I as one whom you probabaly think that I am uglier than thow, I find it so disturbing that you can make these comments on people at their most vunerable, you must be so vain, does it matter what one presents on the outer surface at times when most vunnerable, I can see beauty in most of your photos and I don’t think that I am qualified to make any opinion re uglliness or beauty, Everyone that I look at has beauty of some description, I am sorry I just found your opionions offensive to me as one who is not so beautiful to your standards, but I am sure to my familiy I am not so offensive. Please excuse me if I seem to infringe on your Fifth amendment I think thats is it as we here in Australia do not have a bill of rights to fall back on as do you in the land of the FREE. Again I apologise for infringing on any of you rights but I just think that statements such as yours on that site may cut a lot deeper than maybe you intended, and as I said as one of who has felt the sharp knife of the beauty police thought I must say something, please don’t hesitate to put me straight if I am wrong. I think your site is wonderful and without stumble I may never have found you, Bravo Stumble Upon. Best wishes and love to you and yours Stuart Leamer Winchelsea Vic Australia

Reply

communicatrix October 3, 2007 at 4:55 pm

OMG…I have actually been doing the right thing COMPLETELY BY ACCIDENT!!!

I must go lie down now…

Reply

Jazz October 9, 2007 at 12:21 am

thanks for the tip. I’ll be including some album artwork in some posts so the article will come in handy.

Reply

Rishi October 12, 2007 at 3:41 am

This was an amazing tip, Now I will mind from future to follow it in my blog posts. :)

Reply

Raquita October 16, 2007 at 3:50 pm

thank you so much for hte tip – I have a second question which has to do with images, I use your cutline and I’ve been trying to add additional header images and now I have six showing at once – can you tell me what I am missing?
I’ve tried to find hte answer over at the cutline site – but honestly htey suck with out you! :) help if you can!

Reply

Balamurali November 15, 2007 at 11:18 pm

At a glance, the issue might sound as a simple HTML trick but I’m sure only few bloggers out there would have rectified it in the right way.

Very good post! Cheers!

Reply

DSS November 19, 2007 at 3:54 pm

Dear Chris,
I have attempted to use this tip within Wordpress 2.3, using your NeoClassical theme, and it didn’t work at all. That is, instead of getting the image on the blog, I got the url instead. Then Wordpress Codex has quite different instructions, starting with changing the style sheet. Can you help, please? I really would like to avoid the ugly inline photos I now have.

Thank you.

Reply

Chris P. November 21, 2007 at 11:03 am

DSS — I think that perhaps you have misunderstood the purpose of this particular article. The instructions described here should not affect how the image appears on your actual site; instead, this is merely a way to ensure that feed readers don’t end up spitting out ugly inline pictures.

With the Neoclassical theme, you can apply CSS classes to images to enhance the way they are displayed on your actual blog. I haven’t yet posted on the image handling classes of the theme, but you can use the styles from the Copyblogger theme as a guide.

Reply

Roy December 30, 2007 at 12:38 am

There’s nothing worse than looking back at a feed to find out most readers churn out loads of gobbledygook, and text around images is a toughy for newbies who struggle with this stuff like I did for oh so long. By the time I figured it out properly for myself, my feedburning software (freeware) 28 day license had expired.

Worse still, I’m “allegedly” a programmer!!!

Go figure!

Reply

Hannu April 8, 2008 at 3:28 am

Bit side question but how did you do that “attention” box?
H.

Reply

Hannu April 8, 2008 at 1:06 pm

Never mind. I got it figured out (atleast one way of doing that)…
I used custom.css to format a box like that.

H.

Reply

Ariel July 28, 2008 at 7:15 pm

Thank you very much for this post!

Reply

Dave Dragon August 13, 2008 at 1:29 pm

Thanks for this post!

I’ve been battling the feed formatting monster myself.

Reply

Jill November 6, 2008 at 2:36 pm

I use the dreaded table when I have 2 or 3 or more small images that I want to display one-to-a-line, because otherwise they either bunch up with each other on the same line – as many as they can in the width of the page – or they go into a staggered zigzag or stairstep pattern. Both on the blog and in the reader.

I have tried changing the alignments using both html and css, I’ve added white space between each image, I have wrapped each image in div and/or span tags and used lotsa p/br tags – and nothing works, other than putting them into a table. Is there something I don’t know?

Reply

Pauline Kenny November 14, 2008 at 6:11 pm

Thanks! This was driving me crazy.

Reply

Yellow SEO December 22, 2008 at 6:46 pm

Thanks Chris,

Awesome tips on Feed Reader Formatting was avoiding images in feeds because of formatting problems…Now I don’t have to worry about that anymore…

Reply

Andrew March 10, 2009 at 8:55 am

The div class is not read by Google Reader and most feed readers because they don’t understand CSS… the best way to do this is to “float:” left or right…

Reply

Hindusthan March 21, 2009 at 12:46 am

By the way, Chris, why do YouTube embeds appear on Google Reader fine but not Google Videos?

Reply

Adam Winogrodzki April 20, 2009 at 5:10 am

Great Thanks!

Reply

Zavrab October 2, 2009 at 9:58 am

I knew I wasn’t the only one hacked off at images displaying all over the place in feed readers! Thanks for the tip

Reply

Ari Herzog October 23, 2009 at 9:03 pm

Adding a line break after an image works wonderfully the way you mention, but what if the text is intended to be to the left or right of an image, not beneath it? Will the RSS feed still mess it up?

Reply

Farnoosh Brock October 25, 2009 at 1:05 pm

Thank you so much for this. It took me minutes to make this change on one post, hit refresh on my Google reader and see the results. Beautiful. I love that others can be obsessive about publishing clean like me!
Now if I could take the obsession further, there is one other bit that annoys me about photos, and that is the extra space at the bottom of a Right- or Left-flushed photo. It’s a tad bit much. Any way out of it? THANKS much, and Thesis Rocks!

Reply

Stanley November 15, 2009 at 1:28 pm

You’re probably accustomed to using image-handling CSS classes

Reply

Elle January 15, 2010 at 10:27 am

Thank you for the post – good info!

Reply

nishant January 19, 2010 at 3:20 am

I need to display some news feed. at my site where I wana to display the news I want one image also with the news title and description. how can I do that. I think the news feed doesnt give me any image.

Is there something like I can read the link and get the image and display at my site.

Reply

çiçekçi February 21, 2010 at 5:22 am

hello sir
I knew I wasn’t the only one hacked off at images displaying all over the place in feed readers

very blog merci

Reply

Bob February 23, 2010 at 4:21 am

This is exactly what I was looking for, if I can now link this to as per category and then optimise it to show on external sites then I shall be indeed a happy muppet

Reply

ariff February 23, 2010 at 12:29 pm

I have this problem of not having images in my feeds. How to fix it?

Reply

Hoot and/or Holler

Previous post:

Next post: