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 description of HTML table border control

Only show the top border <table frame=above>...

Detailed explanation of how to manually deploy a remote MySQL database in Linux

1. Install mysql Run the following command to upd...

MySQL 8.0.20 Installation Tutorial with Pictures and Text (Windows 64-bit)

1: Download from mysql official website https://d...

JavaScript function call classic example code

Table of contents JavaScript function call classi...

VMware Workstation download and installation detailed tutorial

Virtual machines are very convenient testing soft...

15-minute parallel artifact GNU Parallel Getting Started Guide

GNU Parallel is a shell tool for executing comput...

A brief discussion on the difference between src and href in HTML

Simply put, src means "I want to load this r...

Detailed installation process of MySQL 8.0 Windows zip package version

The installation process of MySQL 8.0 Windows zip...

Website background music implementation method

For individual webmasters, how to make their websi...

Summary of discussion on nginx cookie validity period

Every visit will generate Cookie in the browser, ...

Implementation of Vue 3.x project based on Vite2.x

Creating a Vue 3.x Project npm init @vitejs/app m...

How to set remote access permissions in MySQL 8.0

The previous article explained how to reset the M...

Use of Linux file command

1. Command Introduction The file command is used ...

Ideas and codes for implementing waterfall flow layout in uniapp applet

1. Introduction Is it considered rehashing old st...