Hi There,
I have scoured the forums to no avail and am hoping this is a simple fix!
I am passing numbers of varying sizes from a database to text boxes on a page but am unable to get the content to align to the right within the box. All other Theme variables are passing fine, but no matter how I work it alignment will not.
Here is how the content is called in code. This works fine, save for alignment. The H5 theme color / size / font are all displayed correctly, but all content is aligning to the left. Making it impossible to properly align text on the right side of the page when larger numbers arise.
$w('#cashprice').html = "<h5>" + cashprice + "</h5>";
Here are some of my attempts at alignment:
$w('#cashprice').html = "<h class='h5'; style=text-align:right>" + cashprice + "</h5>";
$w('#cashprice').html = "<h5>" + '<right>' + cashprice + '</right>' + "</h5>";
I have also attempted this with the span subset.
Thanks for your time!
#database #text #alignment #wixcode