HTML: <TD> Tags Not Vertically Aligned
Date: 2016-04-25 |
**Problem: **I have an HTML table with rows containing two
Example:
Hard to see, but if you look really close, you can see that the results on the right are positioned slightly higher than the fields on the left.
**Solution: **The solution is the valign style.
In your CSS, just add:
td {
vertical-align: bottom;
}
This will cause the vertical-align: bottom style to be added to all of your td tags, so all the content is aligned to the bottom of the “cell”. This will change the above example to look something like:
Want more like this?
The best / easiest way to support my work is by subscribing for future updates and sharing with your network.