1. Rendering JD Effect Simulation Effect 2. Principle Prepare a box with height and width of 0 Set a border around this box Replace the unnecessary borders with If you need to change its size, just set the border width Set the Finally, use positioning to set it to the desired position 3. Code HTML Structure <div class="square"> <p class="triangle"></p> </div> CSS Styles .square { position: relative; width: 400px; height: 200px; background: green; margin: 150px auto; } .triangle { position: absolute; top: -40px; left: 50%; margin-left: -20px; width: 0; height: 0; border-style: solid; border-width: 20px; border-color: transparent transparent red transparent; font-size: 0; line-height: 0; } This is the end of this article about CSS chat bubbles. For more relevant CSS chat bubbles content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: MySQL 5.7 Common Data Types
>>: Linux checkup, understand your Linux status (network IO, disk, CPU, memory)
Table of contents 1. Always use key in v-for loop...
1. CPU utilization sar -p (view all day) sar -u 1...
During system maintenance, you may need to check ...
Why doesn't your height:100% work? This knowl...
Table of contents Preface 1. Check the file disk ...
Preface: The "Getting Started with MySQL&quo...
Develop a number guessing game that randomly sele...
Table of contents Discover: Application of displa...
VNC is a remote desktop protocol. Follow the inst...
This article takes the deployment of Spring boot ...
Background of the problem The server monitoring s...
The CSS implementation code for setting the scrol...
First download JDK. Here we use jdk-8u181-linux-x...
Table of contents How to represent the current ti...
1. Download the RPM package corresponding to Linu...