Header 的 Flex Box 两列

Flex Box Two Columns with Header

我是编码的初学者,只是想创建随机布局以提高我的技能。我在使用我的 flex boxes 时遇到了问题。我还在下面附上了我的素描照片以供参考!

我真的不知道我怎么办不到这个,因为我知道 flexboxes 相当简单。

有人可以帮助我走上正轨吗?

.body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.both-column {
  display: flex;
  flex-direction: row;
  font-family: Arial, Helvetica, sans-serif;
  /* margin: 10px; */
}

.top-column {
  display: flex;
  flex-direction: row;
  width: 100%;
  z-index: 3;
}

.column-left {
  width: 30%;
  height: 100vh;
  border: black solid 1px;
  /* padding: 10px; */
}

.column-right {
  width: 70%;
  height: 100vh;
  border: black solid 1px;
  text-align: center;
  color: white;
  /* padding: 10px; */
}
<div class="both-column">
  <div class="top-column">
    <marquee>welcome to my portolfio if you have any questions please reach out!</marquee>
  </div>
  <div class="column-left">
    <h1>ARTIST NAME</h1>
    <ol>
      <li><a href="google.com">instagram</a></li>
      <li><a href="google.com">are.na</a></li>
      <li><a href="google.com">github</a></li>
      <li><a href="google.com">email</a></li>
    </ol>
  </div>
  <div class="column-right">
    <ol>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
    </ol>
  </div>
</div>

我试图安排我的 flexboxes,但我无法将 header 选框部分置于其余部分之上......我不确定网格是否更适合这个或者我是否需要使用一个z-index。对于许多人来说,这可能是一个相当简单的 flexbox 问题!

使用flex-wrap: wrap。还有 box-sizing: border-box:

*{
  box-sizing: border-box;
}
.body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.both-column {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
  /* margin: 10px; */
}

.top-column {
  display: flex;
  flex-direction: row;
  width: 100%;
  z-index: 3;
}

.column-left {
  width: 30%;
  height: 100vh;
  border: black solid 1px;
  /* padding: 10px; */
}

.column-right {
  width: 70%;
  height: 100vh;
  border: black solid 1px;
  text-align: center;
  color: white;
  /* padding: 10px; */
}
<div class="both-column">
  <div class="top-column">
    <marquee>welcome to my portolfio if you have any questions please reach out!</marquee>
  </div>
  <div class="column-left">
    <h1>ARTIST NAME</h1>
    <ol>
      <li><a href="google.com">instagram</a></li>
      <li><a href="google.com">are.na</a></li>
      <li><a href="google.com">github</a></li>
      <li><a href="google.com">email</a></li>
    </ol>
  </div>
  <div class="column-right">
    <ol>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
      <li><a href="google.com">PROJECT ONE</a></li>
    </ol>
  </div>
</div>