View Single Post
Old 07-25-2004, 09:32 PM   #14 (permalink)
ibis
PIKE!
 
ibis's Avatar
 
Quote:
Originally posted by Silvy
Thanx for the tip, there is an interesting IE hack there, but neither of those pages handle vertical centering.

I could use one of the tricks, also mentioned in an earlier post to put the element at 50%, and then set the margin negative to half the size of the content (i.e. -200px for an element that is 400px high), but that would require fore-knowledge of the content size, something that is not necessary for say: "text-align: center".
Sorry man, I mixed up horizontal and verticle.

From what I know, there's currently no way to do this except with javascript.
ibis is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60