Use CSS to implement special logos or graphics

Use CSS to implement special logos or graphics

1. Introduction

Since pictures take up a lot of space and the more pictures there are, the harder it is to manage, so sometimes we can use some simple label styles to implement simple graphic logos to replace pictures.

2. Example display:

Triangle Example

Sample code:

<style type="text/css">
.triangle b {
    border: 5px solid #fff;
    border-left: 5px solid #353535;
    margin: 0;
    font-size: 0;
}
</style>

Directional Arrow Examples

Sample code:

<style type="text/css">
 .mark b{border:solid #D0D0D0;width:6px;height:6px;display:inline-block;}
 .mark b.lmark{border-width:2px 2px 0 0;transform: rotate(45deg);}
 </style>

Empty circle

 	*{
		padding:0;
		margin:0;
	}

	div:before{
		content:"";
		width:20px;
		height:20px;
		position:absolute;
		top:-10px;
		left:40px;
		border-radius:50%;
		background-color:white;
	}

	div{
		position:relative;
		width:100px;
		height:100px;
		margin:100px auto;
		box-shadow:0 0 2px red;
		background-color:#ccc;
	}

This is the end of this article about using CSS to implement special logos or graphics. For more relevant CSS special logo content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

<<:  Detailed explanation of how to use JS to achieve the effect of PS eraser scratch card in canvas

>>:  50 Super Handy Tools for Web Designers

Recommend

User needs lead to marketing-oriented design

<br />For each of our topics, the team will ...

Docker - Summary of 3 ways to modify container mount directories

Method 1: Modify the configuration file (need to ...

Solve the problem of docker log mounting

The key is that the local server does not have wr...

WeChat applet custom tabBar step record

Table of contents 1. Introduction 2. Customize ta...

Summary of common MySQL table design errors

Table of contents Mistake 1: Too many columns of ...

MySQL query statement simple operation example

This article uses examples to illustrate the simp...

The unreasonable MaxIdleConns of MySQL will cause short connections

1 Background Recently, some performance issues ha...

JavaScript canvas to achieve meteor effects

This article shares the specific code for JavaScr...

jQuery implements nested tab function

This article example shares the specific code of ...

How to view and terminate running background programs in Linux

Linux task management - background running and te...

Three ways to implement animation in CSS3

This is a test of the interviewee's basic kno...

Detailed explanation of three ways to cut catalina.out logs in tomcat

1. Log4j for log segmentation 1) Prepare three pa...

Some understanding of absolute and relative positioning of page elements

From today on, I will regularly organize some smal...

Specific use of Linux man command

01. Command Overview Linux provides a rich help m...

Some suggestions for Linux system optimization (kernel optimization)

Disable swap If the server is running a database ...