Results 1 to 2 of 2

Thread: fixed positions - probably an easy one for you guys...

  1. #1
    Join Date
    Sep 2007
    Location
    west sacramento
    Posts
    25
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Question fixed positions - probably an easy one for you guys...

    hi,

    please refer to: http://www.32-bits.com/capitolbowl

    if you notice in the upper right-hand corner, there is a page curl image. i know enough to use css to get the image to sit in that position, but i can't get it to stay fixed there. when one resizes the window, the page curl "travels" across the browser window over other images and text. how do i get it to stay put?

    thanks

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    I think this is the code in question?
    Code:
    div.corner{
    position:absolute;
    right:0px;
    top:-1px;
    z-index:0;
    }
    This tells the image to stay on the right side no matter what. What I came up with is:
    Code:
    div.corner{
    position:absolute;
    right:0px;
    top:-1px;
    z-index:0;
    }
    div.placement{
    position:relative;
    float:right;
    width:800px;
    height:1px;
    }
    
    
    <div class="placement"><div class="corner">Hi!</div></div>
    This tell the image where to be, and has a minimum width so it won't move to far. (Think of it as a 800px box glued to the right side of the screen ).
    Let me know if it works
    Last edited by Jas; 02-08-2008 at 02:55 AM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

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
  •