{"id":153,"date":"2022-11-24T21:16:45","date_gmt":"2022-11-24T21:16:45","guid":{"rendered":"http:\/\/javigomez.org\/?p=153"},"modified":"2025-09-29T20:34:20","modified_gmt":"2025-09-29T20:34:20","slug":"flex-poner-un-div-a-la-derecha-y-otro-a-la-izquierda","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/24\/flex-poner-un-div-a-la-derecha-y-otro-a-la-izquierda\/","title":{"rendered":"Flex: poner un div a la derecha y otro a la izquierda"},"content":{"rendered":"\n<p>Con este c\u00f3digo se ven dos capas, una a la derecha y otra a la izquierda. El espacio central se marca con <strong>column-gap:60%<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2022\/11\/image-29-2-15-1-1024x55.png\" alt=\"\" class=\"wp-image-154\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt; \n  &lt;div class=\"item item-1\"&gt;Bot\u00f3n 1&lt;\/div&gt; \n  &lt;div class=\"item item-2\"&gt;Bot\u00f3n 2&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>.item{\n  width:20%;   height:50px;\n  border: 1px solid black;\n  display:flex;\n  align-items:center;\n  justify-content:center;\n}\n.container{\n  border: 1px solid blue;\n  display:flex;\n  column-gap: 60%;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Con este c\u00f3digo se ven dos capas, una a la derecha y otra a la izquierda. El espacio central se marca con column-gap:60%<\/p>\n","protected":false},"author":1,"featured_media":154,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26,84,153,210],"class_list":["post-153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-align-items","tag-column-gap","tag-flex","tag-justify-content"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/153","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=153"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/153\/revisions\/975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/154"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}