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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -