Text drops down a line when centering text vertically, when using a div to do so and minimizing the page |
Text drops down a line when centering text vertically, when using a div to do so and minimizing the page |
bumpercrop |
Aug 27 2013, 06:50 AM
Post
#1
|
Novice Group: Members Posts: 29 Joined: 21-February 13 Member No.: 18,700 |
I've had this issue before where when I center text vertically in a <div> using
(for example) height: 50px; line-height: 50px; When you minimize the page using ctrl - the entire page scales down, but for some reason some of the words in the single line sentence drop down 50px to the next line. Why is that? And how would one prevent it from happening? This post has been edited by bumpercrop: Aug 27 2013, 06:52 AM |
Frederiek |
Aug 27 2013, 08:36 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Can you post the URL (address) of a page that demonstrates the problem?
I can't reproduce that problem with the snippet you posted. Maybe there is something else on the page that interferes. |
Lo-Fi Version | Time is now: 24th April 2024 - 06:15 AM |