Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Text drops down a line when centering text vertically

Posted by: bumpercrop Aug 27 2013, 06:50 AM

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?

Posted by: Frederiek Aug 27 2013, 08:36 AM

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.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)