I came across https://minimill.co/ and saw it as a good example to what I'm trying to achieve.

我遇到了https://minimill.co/,并将其视为我正在努力实现的一个很好的例子。

I made an attempt to display the listed items like the site:

我试图显示列出的项目,如网站:

.wrap {
    display: block;
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0;
    border: 0;

    li {
        background-color: green;
    }
}

.content {
    margin: 0 auto;
    max-width: 66rem;
    width: 90%;
    padding: 0;
    border: 0;
    position: relative;
}

.right-details {
    display: inline-block;
    float: right;
    box-size: border-box;
    width: 33.33333%;
}

.left-img {
    display: inline-block;
    float: left;
    box-sizing: border-box;
    width: 66.66666%;

    img {
        width: 50px;
    }
}
<ul class="wrap">
    <li>
        <div class="content">
            <div class="left-img">
                <img src="/assets/img/macbook-image.png"/>
            </div>
            <h2 class="right-details">
                Item 1
            </h2>
        </div>
    </li>
    <li>
        <div>
            <h2>
                Item 2
            </h2>
        </div>
    </li>
</ul>

更多相关文章

  1. 显示json数组中的所有项目
  2. 市委组织部考核项目——多条数据的提交
  3. 在项目之间共享ASP.NET MVC部分视图
  4. React:更新列表中的一个项目而不重新创建所有项目
  5. 【项目实战】自监控-09-DataFrame索引操作(上篇)
  6. 为独立的“产品”打包django项目及其依赖项
  7. 用于Python项目的低内存和最快查询数据库
  8. 如何自动启动/调试大型项目?
  9. 人工智能和机器学习领域开源项目

随机推荐

  1. Android SDK Manager不能显示所有包的解
  2. android 设置 dialog位置
  3. Android:BadTokenException: Unable to ad
  4. android 字符串加解密算法
  5. Android-BLE低功耗蓝牙开发
  6. 很好的资源 for android
  7. android中textview设置为多行文本时,如何
  8. Android最新版本号与API级别对应关系
  9. android 应用程序不出现在最近打开程序列
  10. 2013.08.29——— android ObjectAnimato