html - Centering a css block -
html - Centering a css block -
this block of css controls position of 3rd party images. generated on fly javascript slider. need center based on image else on page. know left , right dimensions of reference image. need figure out how center block on that. there way center between 200px , 800px?
.pagination { display: block; margin:26px auto 0; width:400px; margin-left: auto; margin-right: auto; left: 130px; position:relative; text-align: center; }
if know width 400px (as per snippet), do:
.pagination { display: block; margin: 26px auto 0; width: 400px; }
example @ http://jsfiddle.net/ne9jz/
html css
Comments
Post a Comment