I would like to align my html text to be right justified. The font size works, but not the text align. I would also ideally like to change the font type to Basic instead of the default too.
Here's the code:
$w('#calculate').html = `<span style='font-size: 14px'><span style='text-align: right'>$${price}.00</span>`
Create two lines for the text element, One that centers it and the other that styles it.
$w("#text").text=`<center>${$w("#text").text}</center>` $w("#text").html = `<span style = "color:#009CA7;font-size:14px;font-family:Questrial;">${$w("#text").text}</span>`
You can find a complete discussion of the supported tags and styles in the $w.Text API.
You can also set the style (font, size, effects, alignment, etc) in the Text Settings panel of the field.
@Yisrael (Wix) Is there an example you can point us to?
I'm also looking for the answer to this question... anyone?
I agree.
I have no idea, but I would also like to know
Hello?
Anyone?