Posted By

rbulgueroni on 10/27/10


Tagged

div centralizar


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dubogii


Centralizar elementos


 / Published in: jQuery
 

  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. $('ul.paginacao').css({left:'50%',margin:'-'+($('ul.paginacao').height() / 2)+'px 0 0 -'+($('ul.paginacao').width() / 2)+'px'});
  4. });
  5. </script>
  6.  
  7. <style>
  8. ul.paginacao{
  9. position:relative;
  10. }
  11. </style>

Report this snippet  

You need to login to post a comment.