Sub-menu item width Support Forums for LiveMesh Themes & Plugins › Forums › Invent Theme Support › Sub-menu item width This topic has 7 replies, 2 voices, and was last updated 7 years, 6 months ago by Ixinho. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 23, 2016 at 11:20 am #24565 IxinhoParticipant Hello, i need to have a couple of dropdown menu sub items with bigger width. When i target them like this and add "width: 400px" it simply doesn’t work as it should, it extends only when i hover it. Any hint? .dropdown-menu-wrap ul.sub-menu li.menu-item-722 { width: 400px; } October 23, 2016 at 11:29 am #24566 IxinhoParticipant See attached files for what i mean. When i add width: 400px, it applies correctly to all items i want, but only when i hover them. When i don’t hover them, text width is increased but not the background. October 24, 2016 at 11:20 am #24573 VeenaModerator Try the below custom CSS – .dropdown-menu-wrap ul.sub-menu li > ul.sub-menu { left: 181px; width: 400px; top: 0; } You need to adjust the left value.. October 24, 2016 at 12:49 pm #24574 IxinhoParticipant It does for all submenus, i need it only for specific 9 ID’s . If i use .dropdown-menu-wrap ul.sub-menu li.menu-item-722 { and then your css, it won’t work, text goes out of field : / October 25, 2016 at 4:43 am #24580 VeenaModerator Can you share a link to your site ? October 25, 2016 at 8:19 am #24584 IxinhoParticipant This reply has been marked as private. October 26, 2016 at 11:36 am #24613 VeenaModerator Try this example CSS and apply the changes to the required menu items. li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-778 { width: 350px; background-color: blue; } li:hover.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-778 { background-color: red; } October 27, 2016 at 7:32 am #24628 IxinhoParticipant Hm, that doesn’t bring the desired results, i’ll stick to your first advice : ) Author Posts Viewing 8 posts - 1 through 8 (of 8 total) The topic ‘Sub-menu item width’ is closed to new replies.