Help us understand the problem. What is going on with this article?

footerの位置

どのようにググればいいのかが不明なので自己解決した

スクリーンショット 2019-05-25 15.47.06.png

qiitaの背景が白なのでわかりづらいですが、下にでかい空白ができてしまいます。ダサい

<div class="wrapper">
  <div class="header">
    header
  </div>
  <div class="kiji">
    記事です
  </div>
  <div class="footer">
    footeer
  </div>
</div>

こんな感じに分割して、cssで

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

min-height: 100vh;こうすれば、最低でもディスプレイの縦幅に高さが固定されます
justify-content: space-between;で記事は真ん中に配置、headerは記事の一番上に固定、footerは記事の一番下に固定
flex-direction: column;で
header
記事
footer
という順に縦に並びます

スクリーンショット 2019-05-25 15.57.18.png

下の空白が消えました

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away