That i know, the only way to center an element is using javascript: - getting the window innerheight - setting a block with absolute positionning and fixed height - set a top value to 1/2 of the window inner height and apply a top margin negatively equal to 1/2 of element fixed height - tadaa ! I think you should googling around for that, there is for sure already a out-of-the-box solution for that!
With height = auto or %, i don't have even a clue. The last time i saw vertical alignment was in HTML4 using valign=center in TD tags… R. Le 18 mai 2010 à 09:21, Scott Kallen a écrit : > Hey, folks. > > I've got a two-cell <LI> with an anchor that I'm using "edgetoedge" and > "arrow" classes in JQTouch. In this line is first, a fixed-size box holding > large numbers or small text. Second cell holds a description that can be one > or two lines of text. > > I've tried "display: table-cell; vertical-align:middle;" with no appreciable > effect. Rather than doing a lot of computing to figure out just what the top > margin should be, I'm hoping there's an easier solution out there. I tried > using an actual table, but that seemed to allow the first box to be variable > width. > > Any suggestions? > > > Scott. > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
