Results 1 to 12 of 12
Jan 18, 2013, 09:32 #1
- Join Date
- Jun 2009
- 0 Post(s)
- 0 Thread(s)
back to an old prob: vertical-align:middle
so what do you have to do to make vertical-align:middle work??
acc. to this page
setting this property to "middle" should do just that: vertical-align an element to middle (i.e., equal amount of white space above and below element.. for example a div with text inside another div.. in my case content will be inserted dynamically and I don't know how many lines of text it will be; it has to be middle-aligned vertically in all cases..)
display:table-cell does not work in all browsers, so that's a non-starter..
I get so sick of this problem.. why can't vertical-align:middle ever work as it should? (like text-align:center; this always works.. why doesn't vertical-align:middle ever work??????)