Welcome
The Drive-Thru Mongolian BBQ

Web Coding (- threads, 6 posts)
    CSS: Tutorials (5 posts)
    Social Thread

    ...
    1 Member has made 1 Post here to date.
    Google
    AncientWorlds.net Web
    Next:
    Prev:
    Z-Index And CSS Positioning...Basic
    av.gif
    Author: * Lone Ranger Leonidas - 1 Post on this thread out of 31 Posts sitewide.
    Date: Mar 13, 2005 - 14:35

    Using CSS Positioning to Overlay Images

    This tutorial will show a quick way to overlay images on web page. It is important to note that this will most likely not work in some versions of various browsers. And any other postioning must be taken into account, ie. margins, padding, etc.

    Explanation:

    Z-Index
    This is a quickie in response to a recent question. A more detailed explanation to follow.
    Basic Form
    <style type="text/css">
    <!--
    img.test1{
      z-index: 0;
      width: 408px;
      height: 299px;
    }
    img.test2{
      z-index: 1;
      position: relative;
      left: 204px;
      bottom: 150px;
    }
    -->
    </style>

    <div>
      <img src="icoYikes.gif" class="test2" />
      <img src="grkFrieze01.gif" class="test1" />
    </div>

    Code:



    ctrl+c to copy for non-IE browsers

    Please Leave Comments:

    Phenom Leonidas


    NEXT:
    PREV:
Rome - Rome, Season 1 - The Stolen Eagle


Copyright 2002-2008 AncientWorlds LLC | Code of Conduct and Terms of Service | Contact Us! | The AncientWorlds Staff