Results 1 to 3 of 3

Thread: How can I make a div go on top of another div?

  1. #1
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Question How can I make a div go on top of another div?

    http://japantown.awardspace.com/divdesign.shtml

    Do you see that changing text? I want to move that div up to the header image right under the navigation bar.

    I know it has something to do with absolute positioning, or z-axis.

    If it is a simple thing to do, please help, thanks.
    My Web Site
    Japan Town

  2. #2
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    actually, i need to revise that question.

    although the div is now moved up, the space where it was originally is still there, pushing the "welcome" image down. how would i get rid of that space?
    My Web Site
    Japan Town

  3. #3
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try this css instead
    Code:
    #contentwrapper {
        color: #FFFFFF;
        font-family: arial;
        font-size: 14px;
        height: 25px;
        left: 25px;
        margin-bottom: 0;
        margin-left: 25px;
        margin-right: 25px;
        margin-top: -42px;
        position: relative;
        width: 800px;
    }

  4. The Following User Says Thank You to azoomer For This Useful Post:

    Johnnymushio (03-27-2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •