SharePoint 2010 Removes the background-image


Sometimes when you try to edit the source HTML of the page editor, you need to syles. The page accept your styles except one of them which is “background-image”. SharePoint consider this style as dangerous. Now when you write the follwoing in your HTML editor:

<style>
.bg
{
  background-image:url(‘/images/bg.gif’);
}</style>
<p>Hello world</p>

now save the page and try to edit it, you will notice that the background-image removed.

Solution

  1. Open SharePoint designer
  2. Create a new html page
  3. Write down you html with css
  4. Go back to you sharepoint page and edit it
  5. Add the web part “Content Editor”
  6. Edit the web part properties.
  7. In the Content Link, write the path to you HTML page
  8. Done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s