{"id":2116,"date":"2008-08-29T21:16:18","date_gmt":"2008-08-29T19:16:18","guid":{"rendered":"http:\/\/www.roumazeilles.net\/news\/en\/wordpress\/?p=2116"},"modified":"2008-08-23T21:20:34","modified_gmt":"2008-08-23T19:20:34","slug":"wordpress-26-and-images","status":"publish","type":"post","link":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/2008\/08\/29\/wordpress-26-and-images\/","title":{"rendered":"WordPress 2.6 and images"},"content":{"rendered":"<p><img decoding=\"async\" src=\"\/images\/2007\/wordpress21.gif\" alt=\"WordPress v2.1\" align=\"left\"\/>Minor information about using WordPress v2.6 (the latest revison of this great blog\/web-site-wrinting tool).<\/p>\n<p>I had a few difficulties to ensure that images where correctly aligned and displayed after the improvements in their presentation in WP2.6. For those really interested, I ended up adding the following to my CSS file:<\/p>\n<pre lang=\"css\">\/*************************************\/\r\n\/* Align code for WP2.6 compatiblity *\/\r\n\/*************************************\/\r\n.aligncenter, div.aligncenter {\r\n    display: block;\r\n    margin-left: auto;\r\n    margin-right: auto;\r\n}\r\n\r\n.alignleft {\r\n    float: left;\r\n}\r\n.alignright {\r\n    float: right;\r\n}\r\n\r\n.wp-caption {\r\n    border: 1px solid #ddd;\r\n    text-align: center;\r\n    background-color: #f3f3f3;\r\n    padding-top: 4px;\r\n    margin: 10px;\r\n    \/* optional rounded corners for browsers that support it *\/\r\n    -moz-border-radius: 3px;\r\n    -khtml-border-radius: 3px;\r\n    -webkit-border-radius: 3px;\r\n    border-radius: 3px;\r\n}\r\n\r\n.wp-caption img {\r\n    margin: 0;\r\n    padding: 0;\r\n    border: 0 none;\r\n}\r\n\r\n.wp-caption p.wp-caption-text {\r\n    font-size: 11px;\r\n    line-height: 17px;\r\n    padding: 0 4px 5px;\r\n    margin: 0;\r\n}<\/pre>\n<p>Thanks to the support of <a href=\"http:\/\/wordpress.org\/support\/topic\/194919\">the WordPress.org forum<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Minor information about using WordPress v2.6 (the latest revison of this great blog\/web-site-wrinting tool). I had a few difficulties to ensure that images where correctly aligned and displayed after the improvements in their presentation in WP2.6. For those really interested, I ended up adding the following to my CSS file: \/*************************************\/ \/* Align code for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,37,38,2],"tags":[],"class_list":["post-2116","post","type-post","status-publish","format-standard","hentry","category-blog","category-create-a-web-site","category-new-web-site","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/2116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/comments?post=2116"}],"version-history":[{"count":0,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/2116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/media?parent=2116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/categories?post=2116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/tags?post=2116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}