How to eliminate the extra blank space at the bottom of the created web page when browsing

How to eliminate the extra blank space at the bottom of the created web page when browsing

When using Dreamweaver or FrontPage to create HTML web pages, we may encounter this problem: once a good web page in the software is placed in a browser, more or less blank space will inexplicably appear at the bottom of the web page. So how do we eliminate this gap?
At first I thought that I just needed to add a CSS to the web page code to constrain the height of the web page, but it turns out that this doesn't work.

reason:

First of all, we need to know that when using software to write web pages, most of the time they are "stacked" through a graphical interface. When stacking web pages in this way, when creating layers or tables, the height defined by the software for the layers or tables will often exceed the height we want, but this is not visible in the software; however, when we open the web page in a browser, we will find that the blank spaces that do not exist in the software will be displayed in the browser.

The height of a web page cannot be constrained simply by adding an html{height:XX px;} because in a web page, the characteristics of other elements nested inside an element have a higher priority. For example: If you have the following code in the same web page: body{font-size: 10px;} p {font-size: 9px;}, then the font size in the <p> element of the web page should be 9px instead of 10px. Due to the existence of this rule, when the total height of the middle layer of a web page is greater than the value of XX in html{height:XX px;}, html{height:XX px;} will naturally have no effect.

Solution:

For web page codes written by software like this, unnecessary blank spaces can be removed from the web page by looking for the definition of layer or table height in CSS and then modifying the height value.

<<:  Thumbnail hover effect implemented with CSS3

>>:  A brief discussion on the application of Html web page table structured markup

Recommend

When MySQL is upgraded to 5.7, WordPress reports error 1067 when importing data

I recently upgraded MySQL to 5.7, and WordPress r...

How to add conditional expressions to aggregate functions in MySql

MySQL filtering timing of where conditions and ha...

HTML code that can make IE freeze

We simply need to open any text editor, copy the f...

Complete Tutorial on Deploying Java Web Project on Linux Server

Most of this article refers to other tutorials on...

Navicat Premium operates MySQL database (executes sql statements)

1. Introduction to Navicat 1. What is Navicat? Na...

dl, dt, dd list label examples

The dd and dt tags are used for lists. We usually...

Detailed explanation of common commands in MySQL 8.0+

Enable remote access Enable remote access rights ...

Summary of problems encountered in the implementation of Vue plug-ins

Table of contents Scene Introduction Plugin Imple...

Summary of ways to implement single sign-on in Vue

The project has been suspended recently, and the ...

Difference between querySelector and getElementById methods in JS

Table of contents 1. Overview 1.1 Usage of queryS...

Analysis of GTK treeview principle and usage

The GtkTreeView component is an advanced componen...

Detailed explanation of Axios asynchronous communication in Vue

1. First, we create a .json file for interactive ...

How to handle the tcp_mark_head_lost error reported by the Linux system

Problem Description Recently, a host reported the...

Learning to build React scaffolding

1. Complexity of front-end engineering If we are ...