HTML+css to create a simple progress bar

HTML+css to create a simple progress bar

1. HTML code

Copy code
The code is as follows:

Experience points:
<span class="progress-bar"><b style="width:50px;"> </b></span>

2. CSS styles

Copy code
The code is as follows:

.progress-bar, .progress-bar b{background: url("/images/ico.png") no-repeat scroll 0 0; display: block;}
.progress-bar {background-position: 0 0; height: 15px;width: 430px;}
.progress-bar b {background-position: 0 -17px; height: 12px;}

appendix:

<<:  How to use CSS attribute value regular matching selector (tips)

>>:  Example of javascript bubble sort

Recommend

How to block and prohibit web crawlers in Nginx server

Every website usually encounters many non-search ...

MySQL trigger principle and usage example analysis

This article uses examples to explain the princip...

Solution to "No input file specified" in nginx+php

Today, the error "No input file specified&qu...

Solve the problem of ugly blue border after adding hyperlink to html image img

HTML img produces an ugly blue border after addin...

Detailed steps for setting up a nexus server

1. The significance of building nexus service As ...

js canvas implements verification code and obtains verification code function

This article example shares the specific code of ...

10 HTML table-related tags

In fact many people will say “I’ve seen that table...

Detailed process of installing Jenkins-2.249.3-1.1 with Docker

Table of contents 1. Install Docker 2. Pull the J...

How to deploy SpringBoot project using Docker

The development of Docker technology provides a m...

Steps to install Pyenv under Deepin

Preface In the past, I always switched Python ver...

Analysis and practice of React server-side rendering principle

Most people have heard of the concept of server-s...

How to use JavaScript strategy pattern to validate forms

Table of contents Overview Form validation withou...

Make your website automatically use IE7 compatibility mode when browsing IE8

Preface To help ensure that your web pages have a ...

Several ways to encapsulate breadcrumb function components in Vue3

Table of contents Preface 1. Why do we need bread...

CSS form validation function implementation code

Rendering principle In the form element, there is...