Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

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

<style>
    .dfwp-item {
      float:left;
    }
</style>

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
add comment

Your Answer

 
discard

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.