{"id":163,"date":"2022-11-30T20:43:26","date_gmt":"2022-11-30T20:43:26","guid":{"rendered":"https:\/\/javigomez.org\/?p=163"},"modified":"2025-09-29T20:34:20","modified_gmt":"2025-09-29T20:34:20","slug":"centrado-horizontal-y-vertical-de-un-titulo","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/30\/centrado-horizontal-y-vertical-de-un-titulo\/","title":{"rendered":"Centrado horizontal y vertical de un t\u00edtulo"},"content":{"rendered":"\n<p>En el siguiente c\u00f3digo se centra vertical y horizontalmente un titulo &lt;h2&gt; dentro de una capa<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2022\/11\/image-29-2-17-1-1.png\" alt=\"\" class=\"wp-image-164\" width=\"219\" height=\"219\"\/><\/figure><\/div>\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;\n&lt;html&gt;\n\n&lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;title&gt;Centrado total con flex&lt;\/title&gt;\n    &lt;style&gt;\n        .cuadro {\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            width: 300px;\n            height: 300px;\n            background: rgba(193, 219, 210, 1.00);\n            font-family: sans-serif;\n        }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n    &lt;div class=\"cuadro\"&gt;\n        &lt;h2&gt;Cap\u00edtulo Inicial&lt;\/h2&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n\n&lt;\/html&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>En el siguiente c\u00f3digo se centra vertical y horizontalmente un titulo &lt;h2&gt; dentro de una capa<\/p>\n","protected":false},"author":1,"featured_media":164,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26,72,153,210],"class_list":["post-163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-align-items","tag-centrado","tag-flex","tag-justify-content"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/163","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=163"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":973,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/163\/revisions\/973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/164"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}