简体   繁体   中英

How to add image after button/div css?

I want to add something like the following in my project; how can I do it using After?

分区:之后

I'm not sure if this is what you wanted? Try adding this after your css:

.col-md-4:nth-child(1)>button> .circle-item h2:after,
.col-md-4:nth-child(2)>button> .circle-item h2:after{
  position: absolute;
  display: inline-block;
  width: 100%;
  margin-left:-5px;
  margin-top: -10px;
  content: "_____________";
  color: black;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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