0

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?

2 Answers 2

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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