Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding An Image through HTML

Posted on 2013-01-30
1
Medium Priority
?
319 Views
Last Modified: 2013-01-31
Hello, I'm Trying to Add an image in a page through the HTML Editor in sharepoint..
the thing is that I Copy the code that I want in it, But then when it publishes, The
background-image: url("/Style%20Library/Images/BackGround2.jpg") Line  Disappears, How can I make It Appear

<style>
div.background
{width:100%;height:100%;border:2px solid black;}
div.transbox
{width:400px;height:100%;margin:30px 50px;background-color:#ffffff;border:1px solid black;opacity:0.9;filter:alpha(opacity=60);}
div.transbox2
{max-width:100%;max-height:100%;margin:30px 50px;background-color:#ffffff;z-index:-6;
background-image: url("/Style%20Library/Images/BackGround2.jpg")}
div.transbox p
{margin:30px 40px;font-weight:bold;color:#000000;}
</style>




<div class="background">

<div class="transbox2">
  <table width="100%" border="0">
    <tbody><tr>
      <td><div class="transbox">
        <p>The 60L Green Building at Leicester Street,
          Carlton was developed by the Green Building
          partnership, an ethical business partnership of
          Green projects Pty Ltd and Surrowee Pty Ltd.
          In 2009 the building was donated to its largest
          tenat, the Australian Conservation Foundation
          (ACF), which now owns and manages the builiding.
          The 60L Green Building at LeicesterStreet,</p>
        <p>The 60L Green Building at Leicester Street,
          Carlton was developed by the Green Building
          partnership, an ethical business partnership of
          Green projects Pty Ltd and Surrowee Pty Ltd.
          In 2009 the building was donated to its largest
          tenat, the Australian Conservation Foundation<br/>
        </p>
      </div></td>
      <td><div class="transbox">
        <p>The 60L Green Building at Leicester Street,
          Carlton was developed by the Green Building
          partnership, an ethical business partnership of
          Green projects Pty Ltd and Surrowee Pty Ltd.
          In 2009 the building was donated to its largest
          tenat, the Australian Conservation Foundation
          (ACF), which now owns and manages the builiding.</p>
        <p>The 60L Green Building at Leicester Street,
          Carlton was developed by the Green Building
          partnership, an ethical business partnership of
          Green projects Pty Ltd and Surrowee Pty Ltd.
          In 2009 the building was donated to its largest
          tenat, the Australian Conservation Foundation
          (ACF), which now owns and manages the builiding.¿</p></div></td></tr></tbody></table>
</div>

¿¿¿¿¿¿¿</div>
¿¿¿¿¿¿¿¿¿

Open in new window


The Above is the Image I want in div.transbox2, but as I say, Every time I Publish It, It just disappears.
0
Comment
Question by:jhonc66
1 Comment
 
LVL 32

Accepted Solution

by:
Jamie McAllister MVP earned 2000 total points
ID: 38838630
Are you putting this in the Content Editor Webpart on a page?

If so I suggest you put your HTML in a file, put that file in a library, and reference it from the CEWP. The HTML doesn't get changed that way. Open the web part settings and right at the top is a section called 'Content Link' where you select your HTML file.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question