Solved

Adding An Image through HTML

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

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