5 Replies Latest reply: May 3, 2011 9:42 AM by garynng RSS

    Absolute Positioning a div

    garynng Community Member

      I am trying to position a twitter icon at the top right of the page.  I put the gif into a div box and used this css code:

       

      .container #twitter {
          position: absolute;
          top: 5px;
          left: 900px;
          height: 25px;
          width: 25px;
          margin: 0px;
          padding: 0px;
          z-index: 1;   
      }

       

      The icon moves depending on screen size, which I don't want.  I want it to always be in the same spot no matter what size screen, right above some text.

       

      Thanks for any help you can provide,

       

      Gary