cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

in a cell with an text-object the css-format

text-align:center;  works

but

vertical-align:middle; does not work

Is there any way to bring the text vertical in the middle?

thx for hints

br harry

0 Likes
View Entire Topic
TammyPowlas
SAP Mentor
SAP Mentor
0 Likes

I am not a CSS expert, but after Googling and then trying it out on my system, here is what I have working:

background:indigo;

vertical-align: middle;

  text-align: center;

  #text{ line-height: 30px; vertical-align:middle; }

    width: 50px;

    height: 34px;

    text-align: center;

    line-height: 30px;

    vertical-align: middle;

<style type="text/css">

          #myoutercontainer2 { line-height:4em }

</style>

...

<p id="myoutercontainer2">

          Hey, this is vertically centered. Yay!

</p>

I cannot tell you which part of the CSS makes this work, but it is working on my test system.

Regards,

Tammy

Former Member
0 Likes

Hi Tammy,

thanky for the idea.

Yes it works but is the same the main-cell ist not fillend.

I changed the code by height = 100% then filled the main-cell but the text is not vertical in the middle.

thx for hint  br harry