简体   繁体   English

css columns ,正确的实现方式?

[英]css columns , the right way to implement?

I wanted to implement the design below , but I am having trouble on the positions , can anyone give a basic css example and implementation of the sample image below ?我想实现下面的设计,但我在位置上遇到了问题,谁能给出一个基本的 css 示例和下面示例图像的实现? Help would really be appreciated.帮助将不胜感激。 Thank you.谢谢你。 are we going to use col for that ?我们要为此使用 col 吗? how do we seperate text based on the design ?我们如何根据设计分离文本?

在此处输入图片说明

Really simple example using bootstrap :使用bootstrap非常简单的示例:

 .col { background-color: red; } #icon { background-color: green; } hr { border-top-width: 3px !important; } .arrow-up { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid black; }
 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <div class="row"> <div class="col m-2"> <div class="row"> <div id="icon" class="col-4"> ICON </div> <div class="col-8"> <h3> Unmuted <span class="arrow-up"></span> </h3> <hr> <p> Panacast </p> </div> </div> </div> <div class="col m-2"> <div class="row"> <div id="icon" class="col-4"> ICON </div> <div class="col-8"> <h3> Unmuted <span class="arrow-up"></span> </h3> <hr> <p> Panacast </p> </div> </div> </div> </div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM