Solved

Adding An Image through HTML

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now