java html font size -


i trying generate html file start template. have problem font size cannot configure code provide.

buildhtml.append("<p style=" + "font-size:" + fontsize * 0.1 + " align=" + "center" + ">f</p>");

it moves letter f center, no difference @ fontsize.

i think need semicolons between each property. code gave, buildhtml.append("<p style=\"" + "font-size:" + fontsize * 0.1 + "; align=" + "center\"" + ">f</p>");.

edit: need surround style element quotes.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -