Solved

Adding An Image through HTML

Posted on 2013-01-30
1
312 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 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

827 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