7 Replies Latest reply: Sep 2, 2010 10:35 AM by MurraySummers RSS

    Centering a Picture /Photo

    GESYMSB Community Member

      Hello Folks I am using the following code to display a big picture

      ( or Photo ) with scroll bars, however, as you know the picture

      is at 0,0 position. Is there a way to display the picture "Centered" ?

       

      <style type="text/css">
      <!--
      #apDiv1 {
      position:absolute;
      width:520px;
      height:335px;
      z-index:1;
      left: 10px;
      top: 15px;
      overflow: auto;
      }
      -->
      </style>
      </head>

      <body>
      <div id="apDiv1"><img src="DVC00166.JPG"></div>
      </body>