The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Text drops down a line when centering text vertically, when using a div to do so and minimizing the page
bumpercrop
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 05:06 AM