Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 5
Registered: ‎08-12-2010
My Device: Not Specified

Vertical align on web page does'nt work

[ Edited ]

Hello,

I don't know if its the right place to ask this question but it's the closest place i've found.

I have a table with a single cell that have a vertical-alignment:middle in CSS but it doesn't seem to work on my BB device.

It is working on a 2.13.0.108 simulator but does not work on a 2.13.0.50 simulator nor on my AT&T  9700 bold device.

 

The text should be dynamic and so is the size.

 

Anyone knows how can i work around this?

 

Sample:

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<style type="text/css">
 .wb {
 text-align:center;
 height:180px;
 width:100%;
 background-color:black;
 color:white;

 font-size:80px;

 vertical-align: middle;
}
</style>
</head>

<body>

<table width="100%">
<tr>
<td class="wb" id="ctext" >
Hello
</td>
</tr>
</table>
</body>

</html>

 

Thanks. 

New Member
Posts: 1
Registered: ‎08-23-2010
My Device: Not Specified

Re: Vertical align on web page does'nt work

I'm having the same problem. Every other CSS attribute works fine for me except vertical-align. I've tested on virtually all of the 5.0.0 simulators, and on my physical Storm 2 9550.