{"id":132,"date":"2022-11-21T22:01:16","date_gmt":"2022-11-21T22:01:16","guid":{"rendered":"http:\/\/javigomez.org\/?p=132"},"modified":"2025-09-29T20:34:30","modified_gmt":"2025-09-29T20:34:30","slug":"centrado-horizontal-de-elementos-independientes","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/21\/centrado-horizontal-de-elementos-independientes\/","title":{"rendered":"Centrado horizontal de elementos independientes"},"content":{"rendered":"\n<p>En este c\u00f3digo se ve como se centra una capa, un texto y una imagen<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=&quot;container&quot;&gt;&lt;\/div&gt;\n&lt;p&gt;Texto centrado&lt;\/p&gt;\n&lt;img src=&quot;https:\/\/javigomez.org\/ESIC\/munecos.png&quot; alt=&quot;centered&quot; \/&gt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>div.container {\n  height: 100px;\n  width: 200px;\n  border: 2px solid #006100;\n  <strong>margin: 0 auto;<\/strong>\n}\np {\n  <strong>text-align: center;<\/strong>\n}\nimg {\n  display: block;\n  <strong>margin: 0 auto;<\/strong>\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>En este c\u00f3digo se ve como se centra una capa, un texto y una imagen<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[67,72,106,190,225,325,327],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-css","tag-capa","tag-centrado","tag-css","tag-imagen","tag-margin","tag-text-align","tag-texto"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":981,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions\/981"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}