Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One image on top of another- possible w/HTML alone 1

Status
Not open for further replies.

Shlomo

IS-IT--Management
May 11, 2000
28
US
Is it possible to paste one image on top of another using HTML alone- (to cover up one part of the lower layered image)
 
OR layers <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
&lt;rant&gt;<br><br>Layers don't count :eek:) 1), they're proprietary code- always bad. 2), they stink. they really do. 3), no browser will continue to support them. 4), is that really HTML? or just a flimsy way to implement dHTML?<br><br>&lt;/rant&gt; <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Actually... there is one very simple way:<br><br>1. Have your image area be in a table cell<br>2. Make the background of the cell your lower image<br>3. Make the cell contents hold your foreground image -- This image of course needs to be a GIF or PNG with transparent edges to show the background image<br>4. You can position the foreground image by placing a small transparent image before or after it, and just change the HEIGHT and WIDTH attributes of that image.<br><br>
 
*smiles* rycamor,<br><br>there are two things I can think of off the top of my head that commonly get overused in the worst of ways. Tables for precision placement/layout (they're meant for tabular data, originally) and spacer gifs. You mention both. It definitely works, and it's definitely backwards compatible, so it's good stuff- it's just my purist side has a problem doing it without CSS. :eek:) <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Dear rycamor in netscape the background image will get <br>&nbsp;tiled !!<br><br> <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top