B4J Question Alignment text (web server)

micro

Well-Known Member
Licensed User
Hi to all
I have a problem on aligning text

in index.html
<p id = "variable"> </ p>

where variable is sent from the server and can be 3 to 11 characters length

in index.css
#variable {
font: bold 36px "verdana", "arial";
position: absolute;
left: 80px;
top: 55px;
color: #ffffff;
text-align: right;
}

but the position of the text is not aligned to the right and flows to the right if the length increases.
Where i have been wrong?
Thanks
 

micro

Well-Known Member
Licensed User
ok thanks
but if I want to align right, starting from a fixed point and not fully to the right of the page?
Best regards
 
Top