{"id":166,"date":"2022-11-30T21:12:55","date_gmt":"2022-11-30T21:12:55","guid":{"rendered":"http:\/\/javigomez.org\/?p=166"},"modified":"2025-09-29T20:34:20","modified_gmt":"2025-09-29T20:34:20","slug":"crear-una-ficha-con-css-y-flex","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/30\/crear-una-ficha-con-css-y-flex\/","title":{"rendered":"Crear una ficha con CSS y Flex"},"content":{"rendered":"\n<p>Se crea una ficha con una cabecera, un cuerpo y un pie. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2022\/11\/image-29-2-18-1.png\" alt=\"\" class=\"wp-image-167\"\/><\/figure><\/div>\n\n\n<pre class=\"wp-block-code\"><code>@import url('https:\/\/fonts.googleapis.com\/css2?family=Nerko+One&amp;display=swap');\n\n.card{\n    display: flex;\n    flex-direction: column;\n    width: 300px;\n    font-family: 'Nerko One', cursive;\n    height: 300px;\n    box-shadow: 0px 0px 7px 0px lightgrey;\n    border: 0;\n  }\n  .cuerpo{\n    height:50%;\n    padding: 8px;\n  }\n  .title{     \n    height:25%;\n    background: blueviolet;\n    display: flex;\n    color: white;\n    align-items: center;\n    justify-content: center;\n  }\n  .pie{\n    height:25%;\n    background: chocolate;\n    display: flex;\n    color: white;\n    align-items: center;\n    justify-content: center;\n  }<\/code><\/pre>\n\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;Fuente&lt;\/title&gt;\n    &lt;link rel=\"stylesheet\" href=\"DI_U2_14Flex.css\"&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n    &lt;div class=\"card\"&gt;\n        &lt;div class=\"title\"&gt;\n            &lt;h2&gt;Tarjeta de presentaci\u00f3n&lt;\/h2&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"cuerpo\"&gt;Contenido del cuerpo de la tarjeta&lt;\/div&gt;\n        &lt;div class=\"pie\"&gt;\n            &lt;h4&gt;Pie de la tarjeta&lt;\/h4&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n\n&lt;\/html&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Se crea una ficha con una cabecera, un cuerpo y un pie.<\/p>\n","protected":false},"author":1,"featured_media":167,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26,106,153,210],"class_list":["post-166","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-align-items","tag-css","tag-flex","tag-justify-content"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/166","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=166"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":972,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/166\/revisions\/972"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/167"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}