simona6 Posted September 27, 2024 Share Posted September 27, 2024 We have a website where on certain pages, they want to show a secondary menu row. Our theme allows us in WordPress to create headers, with multiple menus, but we want to see if there is a way that with CSS, you can say "After class 'main-menu', place this Row". Sadly the theme allows us to place Blocks at the top, or after breadcrumbs, but not between the header and the breadcrumbs. So seeing if we can find a way to do it with CSS. Quote Link to comment https://forums.phpfreaks.com/topic/324396-can-i-place-a-div-below-another-with-css-control/ Share on other sites More sharing options...
requinix Posted September 27, 2024 Share Posted September 27, 2024 Just arbitrarily rearranging elements like that, not really. You can't change the fundamental structure of the page. But you can, to some extent, make things appear in different locations or arrangements. Depends on the exact markup and the sorts of CSS things you want to do with them... Quote Link to comment https://forums.phpfreaks.com/topic/324396-can-i-place-a-div-below-another-with-css-control/#findComment-1636341 Share on other sites More sharing options...
gizmola Posted Tuesday at 08:18 PM Share Posted Tuesday at 08:18 PM On 9/27/2024 at 4:35 AM, simona6 said: We have a website where on certain pages, they want to show a secondary menu row. Our theme allows us in WordPress to create headers, with multiple menus, but we want to see if there is a way that with CSS, you can say "After class 'main-menu', place this Row". Sadly the theme allows us to place Blocks at the top, or after breadcrumbs, but not between the header and the breadcrumbs. So seeing if we can find a way to do it with CSS. As requinix stated, not really with css, because css "styles" markup. You could inject an additional DOM element using javascript. I'm not suggesting that is a good idea, but it would work fine, especially if this "row" is static. Quote Link to comment https://forums.phpfreaks.com/topic/324396-can-i-place-a-div-below-another-with-css-control/#findComment-1652888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.