Flexbox doesnt recognize second element
-
Hello there!
Sorry, this is a css-question, not really wordpress related
but I couldn’t find a good css-forum…
So Im new to flexbox and trying to realise a simple layout, where
my list of articles begins under my slider, but the second element
(my list of articles) seems to not be a direct child of my flex
although in the html its just the slider and the articles each in
their own div and the whole thing inside my flex-divHere’s the html:
<div class="lay-main" > <div class="myslider"> <?php get_template_part('template-parts/content/content', 'slider' ); ?> </div> <div class="article-excerpt"> <?php get_template_part('template-parts/content/content', 'short-article' ); ?> </div> </div>
and here’s the css:
.lay-main{ display: flex; flex-direction: column; justify-content: flex-start; }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Flexbox doesnt recognize second element’ is closed to new replies.