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

Detailed steps to modify MySQL stored procedures

Preface In actual development, business requireme...

Implementation code for adding slash to Vue element header

<template> <div class="app-containe...

The latest 36 high-quality free English fonts shared

01. Infinity Font Download 02. Banda Font Download...

Summary of Css methods for clearing floats

Float is often used in web page layout, but the f...

A simple example of MySQL joint table query

MySql uses joined table queries, which may be dif...

Example code for implementing hexagonal borders with CSS3

The outermost boxF rotates 120 degrees, the secon...

Promise encapsulation wx.request method

The previous article introduced the implementatio...

Mac+IDEA+Tomcat configuration steps

Table of contents 1. Download 2. Installation and...

Shell script settings to prevent brute force ssh

The shell script sets access control, and the IP ...

Detailed explanation of how to install MariaDB 10.2.4 on CentOS7

CentOS 6 and earlier versions provide MySQL serve...

How to use Nginx proxy to surf the Internet

I usually use nginx as a reverse proxy for tomcat...

Detailed explanation of Nginx regular expressions

Nginx (engine x) is a high-performance HTTP and r...

JavaScript implements a box that follows the mouse movement

This article shares the specific code of JavaScri...

Implementation of Portals and Error Boundary Handling in React

Table of contents Portals Error Boundary Handling...

JS implements request dispatcher

Table of contents Abstraction and reuse Serial Se...