How to implement blank space in Taobao with CSS3

How to implement blank space in Taobao with CSS3

Make a blank space for Taobao:

When you shrink the browser page, the content area does not shrink, but the blank space becomes smaller.

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.wrapper{
				height: 30px;
				background-color: gray;
			}
			.content{
				width: 1200px;
				height: 30px;
				background-color: #0f0;
				margin: 0 auto;/* 0 for top and bottom, adaptive for left and right*/
			}
		</style>
	</head>
	<body>
		<div class="wrapper"><!-- Background area -->
			<div class="content"></div><!-- Content area-->
		</div>
	</body>
</html> 

In this way, when you zoom, the gray part outside is zoomed, and the green part is always in the center.

This is how the text inside is written.

<div>
<ul style="float: left;"></ul>
<ul style="float: right;"></ul>
</div>

This is the end of this article about how to achieve Taobao white space with CSS3. For more relevant CSS3 Taobao white space content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

<<:  Analysis of examples of using anti-shake and throttling in Vue components

>>:  MySQL configuration master-slave server (one master and multiple slaves)

Recommend

An article to quickly understand Angular and Ionic life cycle and hook functions

Table of contents Angular accomplish Calling orde...

MySQL Flush-List and dirty page flushing mechanism

1. Review The Buffer Pool will be initialized aft...

Specific use of lazy loading and preloading in js

Delayed loading (lazy loading) and preloading are...

How to build a Vue3 desktop application

In this article, we will look at how to develop a...

MySQL 8.0.3 RC is about to be released. Let’s take a look at the changes

MySQL 8.0.3 is about to be released. Let’s take a...

JavaScript to achieve all or reverse selection function

This article shares the specific code of JavaScri...

mysql splits a row of data into multiple rows based on commas

Table of contents Separation effect Command line ...

Discussion on the problem of iframe node initialization

Today I suddenly thought of reviewing the producti...

Vue implements Dialog encapsulation

Table of contents Vue2 Writing Vue3 plugin versio...

Solution to overflow:hidden failure in CSS

Cause of failure Today, when I was writing a caro...

Docker-compose steps to configure the spring environment

Recently, I need to package the project for membe...

Detailed example of MySQL joint table update data

1.MySQL UPDATE JOIN syntax In MySQL, you can use ...

Install mysql5.7 on Ubuntu 18.04

Ubuntu 18.04 installs mysql 5.7 for your referenc...