{"id":58159,"date":"2022-10-03T10:54:55","date_gmt":"2022-10-03T14:54:55","guid":{"rendered":"https:\/\/charlesworks.com\/?p=58159"},"modified":"2022-10-03T10:54:55","modified_gmt":"2022-10-03T14:54:55","slug":"increase-width-in-dropdown-menu","status":"publish","type":"post","link":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/","title":{"rendered":"Increase width in dropdown menu"},"content":{"rendered":"<p>To avoid text wrapping in dropdown menus, try adding this to css:<\/p>\n<p>\/* Increase width of drop-down menus *\/ @media screen and (min-width: 981px) { .sub-menu { min-width: 300px; } #top-menu li li a { width: 260px; \/* Extra &#8211; Reduce padding on list items *\/ padding: 4px 12px; } }<\/p>\n<p>Or, in the Divi menu, advanced tab, custom CSS,<\/p>\n<p>In the Container section add:<br \/>\nmin-width:380px;<br \/>\npadding:0px;<br \/>\ntext-align: left;<\/p>\n<p>In the Dropdown Menu links add:<br \/>\n<strong>min-width:360px;<br \/>\ntext-align: left;<\/strong><\/p>\n<p>Adjust numbers and alignment to your specifications.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To avoid text wrapping in dropdown menus, try adding this to css: \/* Increase width of drop-down menus *\/ @media screen and (min-width: 981px) { .sub-menu { min-width: 300px; } #top-menu li li a { width: 260px; \/* Extra &#8211; Reduce padding on list items *\/ padding: 4px 12px; } } Or, in the Divi [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[32,13],"tags":[346,369],"class_list":["post-58159","post","type-post","status-publish","format-standard","hentry","category-technical-help","category-wordpress","tag-divi","tag-menu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Increase width in dropdown menu - CharlesWorks<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Increase width in dropdown menu - CharlesWorks\" \/>\n<meta property=\"og:description\" content=\"To avoid text wrapping in dropdown menus, try adding this to css: \/* Increase width of drop-down menus *\/ @media screen and (min-width: 981px) { .sub-menu { min-width: 300px; } #top-menu li li a { width: 260px; \/* Extra &#8211; Reduce padding on list items *\/ padding: 4px 12px; } } Or, in the Divi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/\" \/>\n<meta property=\"og:site_name\" content=\"CharlesWorks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CharlesWorksLLC\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-03T14:54:55+00:00\" \/>\n<meta name=\"author\" content=\"Robin Snow\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CharlesWorks\" \/>\n<meta name=\"twitter:site\" content=\"@CharlesWorks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Snow\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/\"},\"author\":{\"name\":\"Robin Snow\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#\\\/schema\\\/person\\\/233816a4d4bbf6d5fc5f67de90aabcd8\"},\"headline\":\"Increase width in dropdown menu\",\"datePublished\":\"2022-10-03T14:54:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/\"},\"wordCount\":84,\"publisher\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#organization\"},\"keywords\":[\"DIVI\",\"menu\"],\"articleSection\":[\"Technical Help\",\"WordPress\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/\",\"url\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/\",\"name\":\"Increase width in dropdown menu - CharlesWorks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#website\"},\"datePublished\":\"2022-10-03T14:54:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/increase-width-in-dropdown-menu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/charlesworks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Increase width in dropdown menu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#website\",\"url\":\"https:\\\/\\\/charlesworks.com\\\/\",\"name\":\"CharlesWorks\",\"description\":\"Web Development - Web Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/charlesworks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#organization\",\"name\":\"CharlesWorks\",\"url\":\"https:\\\/\\\/charlesworks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/charlesworks.com\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/logo-for-localshopper.png\",\"contentUrl\":\"https:\\\/\\\/charlesworks.com\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/logo-for-localshopper.png\",\"width\":540,\"height\":110,\"caption\":\"CharlesWorks\"},\"image\":{\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/CharlesWorksLLC\",\"https:\\\/\\\/x.com\\\/CharlesWorks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/charlesworks.com\\\/#\\\/schema\\\/person\\\/233816a4d4bbf6d5fc5f67de90aabcd8\",\"name\":\"Robin Snow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g\",\"caption\":\"Robin Snow\"},\"sameAs\":[\"https:\\\/\\\/robinsnow.net\"],\"url\":\"https:\\\/\\\/charlesworks.com\\\/author\\\/robin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Increase width in dropdown menu - CharlesWorks","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/","og_locale":"en_US","og_type":"article","og_title":"Increase width in dropdown menu - CharlesWorks","og_description":"To avoid text wrapping in dropdown menus, try adding this to css: \/* Increase width of drop-down menus *\/ @media screen and (min-width: 981px) { .sub-menu { min-width: 300px; } #top-menu li li a { width: 260px; \/* Extra &#8211; Reduce padding on list items *\/ padding: 4px 12px; } } Or, in the Divi [&hellip;]","og_url":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/","og_site_name":"CharlesWorks","article_publisher":"https:\/\/www.facebook.com\/CharlesWorksLLC","article_published_time":"2022-10-03T14:54:55+00:00","author":"Robin Snow","twitter_card":"summary_large_image","twitter_creator":"@CharlesWorks","twitter_site":"@CharlesWorks","twitter_misc":{"Written by":"Robin Snow"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/#article","isPartOf":{"@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/"},"author":{"name":"Robin Snow","@id":"https:\/\/charlesworks.com\/#\/schema\/person\/233816a4d4bbf6d5fc5f67de90aabcd8"},"headline":"Increase width in dropdown menu","datePublished":"2022-10-03T14:54:55+00:00","mainEntityOfPage":{"@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/"},"wordCount":84,"publisher":{"@id":"https:\/\/charlesworks.com\/#organization"},"keywords":["DIVI","menu"],"articleSection":["Technical Help","WordPress"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/","url":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/","name":"Increase width in dropdown menu - CharlesWorks","isPartOf":{"@id":"https:\/\/charlesworks.com\/#website"},"datePublished":"2022-10-03T14:54:55+00:00","breadcrumb":{"@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/charlesworks.com\/increase-width-in-dropdown-menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/charlesworks.com\/"},{"@type":"ListItem","position":2,"name":"Increase width in dropdown menu"}]},{"@type":"WebSite","@id":"https:\/\/charlesworks.com\/#website","url":"https:\/\/charlesworks.com\/","name":"CharlesWorks","description":"Web Development - Web Services","publisher":{"@id":"https:\/\/charlesworks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/charlesworks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/charlesworks.com\/#organization","name":"CharlesWorks","url":"https:\/\/charlesworks.com\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/charlesworks.com\/#\/schema\/logo\/image\/","url":"https:\/\/charlesworks.com\/wp-content\/uploads\/2019\/10\/logo-for-localshopper.png","contentUrl":"https:\/\/charlesworks.com\/wp-content\/uploads\/2019\/10\/logo-for-localshopper.png","width":540,"height":110,"caption":"CharlesWorks"},"image":{"@id":"https:\/\/charlesworks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CharlesWorksLLC","https:\/\/x.com\/CharlesWorks"]},{"@type":"Person","@id":"https:\/\/charlesworks.com\/#\/schema\/person\/233816a4d4bbf6d5fc5f67de90aabcd8","name":"Robin Snow","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19dd35482471a36f544647179705e36f21f496a027d8809e9d4bdeaf51501c8d?s=96&d=mm&r=g","caption":"Robin Snow"},"sameAs":["https:\/\/robinsnow.net"],"url":"https:\/\/charlesworks.com\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/posts\/58159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/comments?post=58159"}],"version-history":[{"count":0,"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/posts\/58159\/revisions"}],"wp:attachment":[{"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/media?parent=58159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/categories?post=58159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/charlesworks.com\/wp-json\/wp\/v2\/tags?post=58159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}