Syntax of vertial-align attribute
In the web text editor, there are many ways to align the text in the centre of a line called centre alignment, the title of the article and the data in the table are generally centered. Sometimes there is a requirement to align text vertically, i.e. to align the top or bottom of the text.
In CSS, this can be defined directly using the vertical-align property, which is used to set the vertical alignment. This attribute defines the vertical alignment of the baseline of an in-line element relative to the baseline of the line in which the element is located. Negative length values and percentage values are allowed to be specified. This will cause the element to be lowered rather than raised. In a table, this attribute can be used to set the alignment of the contents of a cell.
The syntax of the vertical-align attribute is formatted as shown below.
vertical- align:baseline l sub l super l top l text-top l bottom l text-bottom l length l % l inherit.
Translated with www.DeepL.com/Translator (free version)
- Previous:How to use text-decoration
- Next:text-transform property syntax
Related Questions
- 2021-09-29 5 Common HTML Mistakes you should avoid
- 2021-09-28 How To Get Selected Checkbox List Value In Jquery
- 2021-09-26 What is CSS?
- 2021-09-16 How the browser displays the default style of table data
- 2021-09-15 What is the role of the list-style-image attribute?
Your opinion
- Hot Ranking
-
- How to upgrade from Windows 10 to Windows 11 for free
- How to avoid duplicate form page submissions
- How to pass PHP variables to JavaScript in WordPress
- What is a weakly typed programming language
- Difference between line break markers and paragraph markers
- What is window.postMessage in HTML5?
- How to implement browser forward and backward functions for web form buttons
- The table layout is suddenly very confusing
- How To Determine Whether PHP Is Good for My Website or WordPress?
- What is a scripting language
- The role of the unordered list ul tag
- What is an XML document declaration?
- The impact of automatic caching on dynamic pages
- What values can be used for the background-position property?
- What is the difference between fixed and absolute?
- Latest Answer
-
-
How to avoid duplicate form page submissions
binary options system strategy page Answer 2022-04-01 03:42:00
-
How To Determine Whether PHP Is Good for My Website or WordPress?
แอพเปลี่ยนรูปเป็นภาพวาด Answer 2022-03-27 18:27:12
-
The impact of automatic caching on dynamic pages
50 deposit binary options Answer 2022-03-24 05:31:20
-
How to avoid duplicate form page submissions
free binary options signals providers of goods Answer 2022-03-20 12:29:02
-
How to avoid duplicate form page submissions
binary options strategy 5 minutes 15 min no loss acord Answer 2022-03-20 09:44:29
-