Solved

Adding An Image through HTML

Posted on 2013-01-30
1
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 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