Jump to content

Recommended Posts

Posted (edited)

Get rid of all the codes in the body style which are mainly an old coding method that you don't need; Try this:-

 





Untitled Document
<br /><!--<br /><br />body,td,th {<br />    font-family: Verdana, Geneva, sans-serif;<br />    font-size: 14px;<br />    color: #000;<br />    float:auto;<br />}<br />body {<br />    background-color: #000;<br />    margin: 0 auto;<br />}<br />#apDiv1 {<br />    position:relative;/*absolute;*/<br />    visibility:visible;<br />    width:1024px;/*200px;*/<br />    height:625px;/*115px;*/<br />    z-index:1;<br />    margin: 0 auto;<br />    /*left: 0;<br />    top: 0;*/<br />}<br />--><br />






 

The image in the div is 1024*625 but the div is only 200*115 so the image won't fit. Margin: 0 auto won't work with position: absolute divs, the auto cannot work if the div has a fixed top and left position. The left: 0; is stopping it from centering.

Edited by Wickham

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...