Jump to content

A picture in a layer


silent tear

Recommended Posts

hello everybody, i have a question how can i put a JPEG in a layer in HTML?this is what i have:<HTML> <HEAD> <STYLE TYPE="text/css"> #zwarteblok { position:relative; left:100px; top:20px; width:500px; height:200px; background:#000000; color:#ffffff } #geleblok { position:relative; left:300px; top:30px; width:250px; height:100px; background:#ffff00; color:#000000 } #groeneblok { position:absolute; left:150px; top 60px; width:180px; height:70px; background:#0000ff; color:0ff0ff } </STYLE> </HEAD> <BODY> <div id="zwarteblok"><img src="<img src="Layers-bestanden/bergen.htm"> <div id="geleblok">Dit is de gele blok. <div id="groeneblok">Dit is de groene blok. </DIV> </div> </div> </BODY></HTML>it's a layer in a layer and in the first black layer i have to put a JPEG, i tried something with <img src> but it didn't work, can anyone help me with it?

Link to comment
Share on other sites

ehmm i don't know how to explain it, but the words i was searching for were: nested layers. do you know that? a example is this:http://www.uwyn.com/projects/relativelayers/examples/example3.html..it's a example of 2 layers, but what i want to know is how i can put a image in the first big layer.. the codes you wrote will it work in example like in the link?

Link to comment
Share on other sites

I suggest you mean that you want to create a table in a table witch is possible to do without using .CSS in plain HTML.Add the table sizes, location, etc. yourself

<TABLE><TR><TD> <TABLE BORDER=3><TR><TD><TABLE><TR><TD></TD></TR></TABLE></TD></TR></TABLE> </TD></TR></TABLE>

Now you can place the desired image between the <TD> tags of the table you would like them to be in.Ruud Hermans.

Link to comment
Share on other sites

The only problem is that you havn't specified any bgcolors at all, and you havn't set the heights and widths, so really it wont look right at all.But im sure you can figure out where they go, unless you are new to tables in HTML.Also, here is a good bit of advice, when nesting table, make sure that you close all tags when they need to be closed, otherwise, if you go wrong, it may just "SCREW" everything up! So just a warning to you, and I know how annoying it can be checking your code letter for letter, and tag for tag. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...