HTML table tag tutorial (33): cell vertical alignment attribute VALIGN

HTML table tag tutorial (33): cell vertical alignment attribute VALIGN

In the vertical direction, you can set the cell alignment, which can be top, center, or bottom.
Basic syntax
<TD VLIGN="TOP">
<TD VLIGN="MIDDLE">
<TD VLIGN="MOTTOM">
Syntax
TOP means on the top, MIDDLE means in the middle, and MOTTOM means at the bottom.
File example: 10-31.htm
Sets the vertical alignment of the cell.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-31.htm -->
03 <!-- File description: Set the vertical alignment of the cell -->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Setting cell vertical alignment</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=3 WIDTH=400 HEIGHT=200 Bordercolor=#336699 Background=10-8.jpg>
12 <TR>
13 <TD VALIGN="Top">Web Graphics Software</TD><TD>Fireworks</TD>
14 </TR>
15 <TR>
16 <TD>Web page creation software</TD><TD>Dreamweaver</TD>
17 </TR>
18 <TR>
19 <TD>Web animation software</TD><TD>Flash</TD>
20 </TR>
21 </TABLE>
22 </BODY>
23 </HTML>
File Description <br />Line 13 defines the vertical alignment of the cell as top.

<<:  Some questions about hyperlinks

>>:  Vue implements a simple shopping cart example

Recommend

MySQL partitions existing tables in the data table

Table of contents How to operate Operation proces...

How to use JavaScript to determine several common browsers through userAgent

Preface Usually when making h5 pages, you need to...

Understanding the MySQL query optimization process

Table of contents Parsers and preprocessors Query...

Common problems and solutions during MySQL MGR construction

Table of contents 01 Common Faults 1 02 Common Fa...

64-bit CentOs7 source code installation mysql-5.6.35 process sharing

First install the dependent packages to avoid pro...

Detailed explanation of web page loading progress bar (recommended)

(When a web page is loading, sometimes there is t...

Add ?v= version number after js or css to prevent browser caching

Copy code The code is as follows: <span style=...

How to insert 10 million records into a MySQL database table in 88 seconds

The database I use is MySQL database version 5.7 ...

Introduction and usage examples of ref and $refs in Vue

Preface In JavaScript, you need to use document.q...

How to implement interception of URI in nginx location

illustrate: Root and alias in location The root d...

How to install Element UI and use vector graphics in vue3.0

Here we only focus on the installation and use of...

Source code reveals why Vue2 this can directly obtain data and methods

Table of contents 1. Example: this can directly g...