473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How can I tile an Image over top of a DIV tag?


I have an application (asp.net 2.0) that allows people to review documents.
I need to place a tiled image (a ‘Void document Not accepted’ graphic) on top
of a div. The div will have an asp:label to display the document and some
other goodies. I need to print the page with this image superimposed on the
document. I want the document to still be readable but it should be obvious
that the document isn’t accepted. I would like the image on the printed
document to appear as a shadow on top of the source document. When the
document has been accepted I will not want to display the image.

I first looked into just using a background image but that wasn’t really
what I wanted and that is usually flushed out before printing.

I’m sure people probably do this sort of think a lot. If any one could
point me in the right direction I would appreciate it.

Thanks

Feb 10 '06 #1
3 1769
What you probably want to do is dynamically update the image on the server
to overlay the content. That way it is part of the image, not part of the
HTML. This article might get you started --
http://www.aspdev.org/articles/gener...et-images-fly/.

"JeffDotNet" <Je********@newsgroups.nospam> wrote in message
news:E5**********************************@microsof t.com...

I have an application (asp.net 2.0) that allows people to review
documents.
I need to place a tiled image (a 'Void document Not accepted' graphic) on
top
of a div. The div will have an asp:label to display the document and some
other goodies. I need to print the page with this image superimposed on
the
document. I want the document to still be readable but it should be
obvious
that the document isn't accepted. I would like the image on the printed
document to appear as a shadow on top of the source document. When the
document has been accepted I will not want to display the image.

I first looked into just using a background image but that wasn't really
what I wanted and that is usually flushed out before printing.

I'm sure people probably do this sort of think a lot. If any one could
point me in the right direction I would appreciate it.

Thanks

Feb 10 '06 #2
Thanks for the quick response. This looks great for helping to protect copy
written content however I think this solution sounds pretty complicated in my
situation.

Unfortunately all of the documents that will be evaluated are html. These
documents can be several pages of tables within tables and have fairly
complicated formatting of text. From what I could take out of the sample
this would better suited adding small text additions to images. I depend
heavily on the html for easy transformation and presentation. Unfortunately
the graphic object doesn't have a draw html method. Creating an image from my
several page documents could be quite a challenging.
I’m hoping to find some way to make an image appear on top of my content. I
have experimented creating a layer with a Div and absolution positioning; but
when I print I notice that the layers are all put in single file. So I end
up with a graphic at the bottom of the page.

Feb 12 '06 #3
Hi Jeff,

I think your current solution on set the graphic/div at the bottom of the
page is reasonable since HTML page in brower can display as multiple
layers, however, when printing out, multiple layers will be merged to
single layer. So to avoid the Image covers some other text on the html, we
have to put it under all the other html content.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen Kennedy | last post by:
I've been trying to get Tile to work with python. It can make your tkinter apps look like http://tktable.sourceforge.net/tile/screenshots/demo-alt-unix.png See http://tktable.sourceforge.net/tile/...
7
by: Harlin Seritt | last post by:
I was looking at the Tcl/Tk sourceforge page and found that there were a couple of new widgets being produced for Tcl 8.5. Does anyone know if there are any Tkinter wrappers somewhere? thanks, ...
21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
1
by: Tom | last post by:
when I add an image to my winform application as background it always seem to tile itself... is it possible for it not to tile ? thanks Tom
1
by: CPUFreak91 | last post by:
I'm new to Pygame (by 2 days) and I can't figure out how to tile and image as the background image.
0
by: Joachim | last post by:
How do I tile an image using asp:image?
0
by: zuy0 | last post by:
I want to make a tile editor for a 2d game im programming and not sure where to start. Ive messed around with bitblt in mfc before with bitmaps. I know I need to use png files this time and would...
7
by: Greatness | last post by:
Ceramic Floor Tile You’re working for a company that lays ceramic floor tile, and they need a program that estimates the number of boxes of tile for a job. A job is estimated by taking the...
4
by: Mudcat | last post by:
So I haven't programmed much in Python the past couple of years and have been catching up the last few days by reading the boards. I'll be making commercial Python applications again and wanted to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.