Wordpress default CSS


/ Published in: CSS
Save to your folder(s)

Via http://wordpressapi.com/2011/10/24/wordpress-theme-wysiwyg-editor-default-css/


Copy this code and paste it in your HTML
  1. /* =WordPress Core
  2.  -------------------------------------------------------------- */
  3.  .alignnone {
  4.  margin: 5px 20px 20px 0;
  5.  }
  6.  
  7. .aligncenter, div.aligncenter {
  8.  display:block;
  9.  margin: 5px auto 5px auto;
  10.  }
  11.  
  12. .alignright {
  13.  float:right;
  14.  margin: 5px 0 20px 20px;
  15.  }
  16.  
  17. .alignleft {
  18.  float:left;
  19.  margin: 5px 20px 20px 0;
  20.  }
  21.  
  22. .aligncenter {
  23.  display: block;
  24.  margin: 5px auto 5px auto;
  25.  }
  26.  
  27. a img.alignright {
  28.  float:right;
  29.  margin: 5px 0 20px 20px;
  30.  }
  31.  
  32. a img.alignnone {
  33.  margin: 5px 20px 20px 0;
  34.  }
  35.  
  36. a img.alignleft {
  37.  float:left;
  38.  margin: 5px 20px 20px 0;
  39.  }
  40.  
  41. a img.aligncenter {
  42.  display: block;
  43.  margin-left: auto;
  44.  margin-right: auto
  45.  }
  46.  
  47. .wp-caption {
  48.  background: #fff;
  49.  border: 1px solid #f0f0f0;
  50.  max-width: 96%; /* Image does not overflow the content area */
  51.  padding: 5px 3px 10px;
  52.  text-align: center;
  53.  }
  54.  
  55. .wp-caption.alignnone {
  56.  margin: 5px 20px 20px 0;
  57.  }
  58.  
  59. .wp-caption.alignleft {
  60.  margin: 5px 20px 20px 0;
  61.  }
  62.  
  63. .wp-caption.alignright {
  64.  margin: 5px 0 20px 20px;
  65.  }
  66.  
  67. .wp-caption img {
  68.  border: 0 none;
  69.  height: auto;
  70.  margin:0;
  71.  max-width: 98.5%;
  72.  padding:0;
  73.  width: auto;
  74.  }
  75.  
  76. .wp-caption p.wp-caption-text {
  77.  font-size:11px;
  78.  line-height:17px;
  79.  margin:0;
  80.  padding:0 4px 5px;
  81.  }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.