ḥari
3 years agoFrequent Contributor
How to get text alignment
Hi I tried to verify the text alignment in TC with the below code getComputedStyle(var).textAlign but its not fetching the alignment Can you please help me regarding these???
A div tag defines a division or a section in an HTML document. If you look at the styling in this example, you can use the inherited object i.e. div.myDiv
rraghvani_2-1677575020946.png
You will have to find the correct styling for your object.
Thanks for the information. I didn't try this way it's new for me.
So, here for me (div.text-center) it shows 1 of 5 for me.
How to use this method in TC. If you don't mind, can you please help meDOM2.png