- Joined
- Oct 18, 2019
- Messages
- 149
- Reaction score
- 14
- Points
- 18
- Location
- Indonesia
- Website
- www.anymusics.com
Offline
Use the CSS vertical-align property
The vertical-align property is used to vertically center inline elements.
The values of the vertical-align property align the element relative to its parent element:
- Line-relative values vertically align an element relative to the entire line.
- Values for table cells are relative to the table-height-algorithm, which commonly refers to the height of the row.
Code:
<center> <h2>www.vevioz.com</h2> </center>
Code:
<p align="center">Learn web programming at www.vevioz.com</p>
Code:
<p style="text-align:center"> Learn web programming at www.vevioz.com </p>