L
L
lavezzi12015-11-27 18:23:48
css
lavezzi1, 2015-11-27 18:23:48

Bug when designing a site on flexbox, how to solve?

Good evening!
The problem is the following, if you turn on the devtool in chrome or pull the plan down on the codepen so that the sidebar content does not fit into the viewport, then a bug appears, blocks with absolute positioning do not go where, and main does not take up space. How to decide?
codepen.io/anon/pen/ojrJpx
83418ac4906e4ee9b25461c7028a1b1d.png
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BohdanK, 2015-11-27
@lavezzi1

Absolutely positioned elements fall out of the general flow, in your case you need to change the positioning in the nav tag to relative:
nav { position: relative; . . . }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question