CSS delivery address parallelogram line style example code

CSS delivery address parallelogram line style example code

The code looks like this:

// Line style of the parallelogram of the delivery address <view class="top"></view>
	
	//Style .top{
		background-color: #fff;
    	position: relative;
	}
	.top:before{
		position: absolute;
	    right: 0;
	    bottom: 0;
	    left: 0;
	    height: 2px;
	    background: repeating-linear-gradient(-45deg,#ff6c6c,#ff6c6c 20%,transparent 0,transparent 25%,#1989fa 0,#1989fa 45%,transparent 0,transparent 50%);
	    background-size: 80px;
	    content: "";
} 

insert image description here

ps: css realizes the parallelogram colored lines under the delivery address

<div class="xiantiao">
  <div class="city" style="margin-left:8px;"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city" style="margin-right:0px;"></div>
</div>
<style>
            .xiantiao{width:100%; height:2px; overflow:hidden;}
            .city {
              width:36px;
              height:2px;
              margin-right: 23px;
              background-color: #44a5fc;
              color: #333;
              transform: skew(-45deg);
              float:left;
            }
</style>

This is the end of this article about the CSS delivery address parallelogram line style example code. For more related CSS border line style content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

<<:  Teach you to quickly build a web cluster project based on nginx

>>:  Discussion on horizontal and vertical centering of elements in HTML

Recommend

How to modify the default network segment of Docker0 bridge in Docker

1. Background When the Docker service is started,...

Detailed explanation of the basic usage of the Linux debugger GDB

Table of contents 1. Overview 2. gdb debugging 2....

MySql sharing of null function usage

Functions about null in MySql IFNULL ISNULL NULLI...

Illustration-style website homepage design New trend in website design

You can see that their visual effects are very bea...

jQuery implements ad display and hide animation

We often see ads appear after a few seconds and t...

A simple example of using Vue3 routing VueRouter4

routing vue-router4 keeps most of the API unchang...

Detailed explanation of JavaScript BOM composition and common events

Table of contents 1. BOM 2. Composition of BOM 2....

Pure CSS to achieve input box placeholder animation and input verification

For more exciting content, please visit https://g...

Docker configuration Alibaba Cloud Container Service operation

Configuring Alibaba Cloud Docker Container Servic...

Make your website run fast

Does performance really matter? Performance is im...

Summary of the differences between count(*), count(1) and count(col) in MySQL

Preface The count function is used to count the r...

Vue Learning - VueRouter Routing Basics

Table of contents 1. VueRouter 1. Description 2. ...