M micro Well-Known Member Licensed User Longtime User Dec 17, 2014 #1 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
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
B billzhan Active Member Licensed User Longtime User Dec 17, 2014 #2 try to remove B4X: position: absolute; left: 80px; FYI : http://www.w3schools.com/cssref/tryit.asp?filename=trycss_text-align Upvote 0
try to remove B4X: position: absolute; left: 80px; FYI : http://www.w3schools.com/cssref/tryit.asp?filename=trycss_text-align
M micro Well-Known Member Licensed User Longtime User Dec 17, 2014 #3 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 Upvote 0
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
B billzhan Active Member Licensed User Longtime User Dec 17, 2014 #4 try to add B4X: margin-right: 70px; Upvote 0