Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Setting background image in a webpart

  Asked By: Gregory Campbell         Date: Oct 31, 2009      Category: Sharepoint      Views: 1312
 

I have created a webpart that reads content from a list and displays
the content in a table. I want to set the background for the webpart
or the table to an image and have the image stretch as the table
grows. The table will grow longer as more enteries are being added to
the list that the webpart pulls it's data from.

How can I do this?

Tagged:          

 

2 Answers Found

 
Answer #1       Answered By: Shara Johnson          Answered On: Oct 31, 2009       

If you use an image  with a repeatable pattern, you can set  the background  in the
HTML to repeat the image horizontally and vertically as large as the block
element gets. Let me know if you need more info or example HTML.

 
Answer #2       Answered By: Victoria Bell          Answered On: Oct 31, 2009       

The image  is a square box with an off white color in the middle - not
sure how I can repeat that without it look like sections when it is
repeated, but yes I would love to see code.

 
Didn't find what you were looking for? Find more on Setting background image in a webpart Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].