[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Inserted a background image and now it overlays all the data entry fields on the screen

Posted on 2011-05-12
Medium Priority
Last Modified: 2012-05-11
I have developed an application in C#.net and ASP.net using Visual Studio 10.  I am almost completed with the program and I decided to make the application look a little more presentable.  I downloaded a nice backgrouind .jpg from iStockphoto and dragged it to my canvas.  It looked great!!  When I ran the program the IE 8 Browser opened up and flashed the data entry field / web grid for a brief second and then the background made everything disappear.  You can barely see the top edge of my webpanel so I know everything is still behind it.  Is there something I need to do to tell the image that it is a background?  Here is the code:
<p><img alt="Red Streams of Light" class="style2" longdesc="Red Streams of Light" 
        src="Images/Red%20Streams%20of%20Light%20on%20Black.jpg" /></p>

Open in new window

Question by:kwh3856
LVL 38

Expert Comment

by:Tom Beck
ID: 35748003
You could try this.

Add this to style2 class: background:url(Images/Red%20Streams%20of%20Light%20on%20Black.jpg)

<div class="style2"></div>

I would eliminate the spaces in the file name (%20).

Expert Comment

ID: 35748040
Also get rid of the p tag , unless you really needed..

If that doesnt work please post a screenshot , so we can visualize it better.. thanks

Accepted Solution

edemcs earned 2000 total points
ID: 35748585
Just set the z-index to 0 for the image
LVL 12

Expert Comment

ID: 35751648
Add this to style2 class: background:url(Images/ABC.jpg)

you need place spacer image in div tag.

<div class="style2"><img src="Images/spacer.jpg" width='1px" height="1px" ></div>


Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

873 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