{"id":160,"date":"2022-11-30T20:38:46","date_gmt":"2022-11-30T20:38:46","guid":{"rendered":"https:\/\/javigomez.org\/?p=160"},"modified":"2025-09-29T20:34:20","modified_gmt":"2025-09-29T20:34:20","slug":"menu-horizontal-con-flex-utilizando-ul","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/30\/menu-horizontal-con-flex-utilizando-ul\/","title":{"rendered":"Men\u00fa horizontal con flex (utilizando ul)"},"content":{"rendered":"\n<p>Con el siguiente c\u00f3digo se puede construir un men\u00fa horizontal en la parte superior de una p\u00e1gina. Se utiliza &lt;ul&gt; y &lt;li&gt; para construirlo. con el comando list-style: none, se elimina los bullets de la lista, y a partir de ah\u00ed, se sit\u00faa con flex los elementos en la parte superior.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2022\/11\/image-29-2-16-1-1.png\" alt=\"\" class=\"wp-image-161\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta charset=\"utf-8\"&gt;\n&lt;title&gt;U2_06&lt;\/title&gt;\n&lt;style&gt;\n  ul{\n    display:flex;\n    justify-content: space-between;\n    gap: 2px;\n    padding:0;\n    <strong>list-style: none;<\/strong>\n  }  \n  ul li{\n    background: rgba(123,198,199,0.8);\n    flex-grow: 1;\n  }\n  ul a, ul a:link{\n    font-family: sans-serif;\n    text-decoration: none;\n    color: black;\n    padding: 8px;\n    display:block;\n    width:100%;\n  }\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;ul&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;Home&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;Servicios&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;Opciones&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;Planes&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;Contacto&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Con el siguiente c\u00f3digo se puede construir un men\u00fa horizontal en la parte superior de una p\u00e1gina. Se utiliza &lt;ul&gt; y &lt;li&gt; para construirlo. con &hellip; <\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[153,220,222,229,337],"class_list":["post-160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-flex","tag-li","tag-list-style","tag-menu","tag-ul"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/160","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=160"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":974,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/160\/revisions\/974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}