SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bunch of images in a picture library that I want to expose on my Sharepoint homepage. I've added a Content Query webpart and configured it to display the items in the picture library list which is fine. However the images are displayed one on top of the other which isn't very aesthetic.

I would like to display the images side by side. Presumably I have to edit the ItemStyle.xsl file. Can someone point me in the right direction on how to do this please as I'm struggling a little bit?

share|improve this question

Just add a css style into your page will solve this:

    .dfwp-item {

You can add the css statement into your page directly (by SharePoint Designer) or put a Content Editor Web Part into your page and set its Html Source with the css statement.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.