Posted By

myke on 08/17/10


Tagged

default wordpress align theme


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Elog


Image alignment Default WP


 / Published in: CSS
 

Used these styles to comply with default wordpress WYSIWYG class names

  1. /******************************************
  2. * Align box
  3. ******************************************/
  4.  
  5. img.centered, .aligncenter, div.aligncenter {
  6. display: block;
  7. margin-left: auto;
  8. margin-right: auto;
  9. }
  10.  
  11. img.alignright {
  12. padding: 4px;
  13. margin: 0 0 2px 7px;
  14. display: inline;
  15. }
  16.  
  17. img.alignleft {
  18. padding: 4px;
  19. margin: 0 7px 2px 0;
  20. display: inline;
  21. }
  22.  
  23. .alignright {
  24. float: right;
  25. }
  26.  
  27. .alignleft {
  28. float: left;
  29. }

Report this snippet  

You need to login to post a comment.