<div class="menu2"> <ul class="center"> <li><a href="" target="_parent"></a></li> <li><a href="" target="_parent"></a></li> </ul> </div>
<div class="top-bar-section"> <ul class="left home-active" data-position="2"> <ul class="center"> <li><a href="" target="_parent"></a></li> <li><a href="" target="_parent"></a></li> </ul> </ul>
$(window).on("resize", function(){ $(window).width() < 641 ? $(".menu2").insertAfter(".top-bar-section > .left") : $(".siteheader__row").prepend($(".top-bar-section .menu2")); })
.top-bar-section{ overflow-x: scroll;}
max-width: 100vw
.top-bar-section
<ul>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)