css - How do I center this responsive image vertically and horizontally? -


okay have tried center responsive image using vertical-align , text-align property no luck. can tell me i'm doing wrong. want image vertically , horizontally in middle of page.

<div class="circle">      <div class="bl-circle" style="z-index:9999;">           <a href="http://www.leedsrush.com"><img src="images/circular.png" onmouseover="this.src='images/leeds.png'" onmouseout="this.src='images/circular.png'" style="width:100%; height:100%;"/>           </a>       </div> </div>  .bl-circle{     position: absolute;     max-width:250px;     max-height:250px;     height:100%;     width:100%;     margin-left:auto;     margin-right:auto; }  .circle{   } 

i check out tutorial:

http://pmob.co.uk/pob/hoz-vert-center.htm

this use when trying center element in page. works charm every time, example @ bottom when're don't know width , height of element.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -