我正在使用flex与HTML & CSS一起实践动手项目,这个项目有7行4列,我使用div创建了列,到目前为止我正在编写第一列,其中提到了价格,但我无法按照我所附的项目的图像来完成。我已经分享了我下面的HTML和CSS代码。
#main-container {
  display: flex;
  background-color: rgb(24, 30, 30);
  margin-top: 1%;
  align-content: center;
  justify-content: center;
  width: 65%;
  font-size: 1.5vmin;
}
#main-container div {
  background-color: bisque;
  align-items: center;
  width: 65%;
}
#main-container button {
  color: white;
  background-color: #117CC0;
}
#main-container h1 {
  text-align: center;
}<div id="main-container">
  <div>
    <h1>10.99</h1>
    <p>UDS/DAY</p>
    <button>SELECT</button>
    <P>Total 76.93 USD</P>
  </div>
  <div>car image</div>
  <div>capacity</div>
  <div>features</div>
</div>
如果有人能帮我做这件事,也能让我理解逻辑。

https://stackoverflow.com/questions/73929232
复制相似问题