KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to understand why the line-height CSS property places the text vertically in the middle of this button: .btn-order { width: 220px; height: 58px; font-size: 24px; padding: 0; text-align: center; vertical-align: middle; line-height: 58px; border: 1px solid black; } <div class="btn-order">Complete Order</div>
Tags (comma-separated)
Save Edits
Cancel