English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using HTML, what script or command could I use to bring an image on a web-page to the "front"? so that it sits on top of other images? Example: I have a picture on my website, but it's obscured by text, I want to bring it to the front.

2007-09-07 06:51:19 · 5 answers · asked by a_life_lessordinary 2 in Computers & Internet Programming & Design

5 answers

Use the style attribute to add CSS to your inline image to adjust the z-index (aka stacking order).



If you are using a CSS background-image, just add the z-index attribute to the associated styles:

img.myimage {
background-image: url("./image/path");
z-index: 1000;
}

2007-09-07 07:01:22 · answer #1 · answered by Prime8 3 · 0 0

You can insert a Javascript code that will intercept the Right-Click, and pop up a dialog box telling the user that the image is protected. (Search for JAVASCRIPT CODE IMAGE PROTECTION on the web.) That will prevent the casual user from copying the image, but an enterprising individual can still get it by various means: - Opening the source code and copying the image URL, - Opening their TEMP folder and copying it from there, - Doing a print screen and pasting it into a graphics editor. Basically, aside from using some sort of proprietory image program, if you can see it on a web page, you can copy it if you REALLY want it.

2016-03-18 01:43:18 · answer #2 · answered by ? 4 · 0 0

Use CSS! Set up a containing

with "position: relative;"
(to give the picture a way to orient itself) then give the picture itself "position: absolute; top: nnpx; left: nnpx; z-index: 5;"

(where "nn" for top and left tells how many pixels from the top and left you want to place the image)

...the z-index will make the picture float above other stuff...

2007-09-07 06:55:57 · answer #3 · answered by fjpoblam 7 · 0 0

Use CSS, z-index. But why make the job harder and just move the text or get rid of it altogether?

Anywa, set the z-index on the picture to something like:

#picture {
z-index: 1;
}

2007-09-07 06:54:42 · answer #4 · answered by Dirty Randy 6 · 1 0

hmtl bring image webpage front

2016-02-02 03:45:47 · answer #5 · answered by ? 4 · 0 0

mmm..

you could used a layers to use it!!!

the struture could be:

>>>background
>>>>>>>Text
>>>Pictures

2007-09-07 06:55:18 · answer #6 · answered by ^++?¡¨çLucKyE;:.,¨ç`++/*- 3 · 0 0

fedest.com, questions and answers