Recent

Author Topic: Modifying element styling on THTMLViewer  (Read 1835 times)

K-Qha

  • Newbie
  • Posts: 3
Modifying element styling on THTMLViewer
« on: March 30, 2019, 11:17:05 am »
I'm currently using THTMLViewer and I need to modify some styling, says the font color or background color, after the HTML is loaded. How do I achieve that if I know the element ID only? I guess it's somehow related to IDDisplay, but cannot find any clue whatsoever in help files and demos. Consider I have this html:
Code: Pascal  [Select][+][-]
  1. <html>
  2.   <body>
  3.     <span id="text1">This is text 1</span>
  4.     <a href="#" id="link1">This is link 1</a>
  5.   </body>
  6. </html>
  7.  
If I want to change, for example text1 color to red, what should I do?

 

TinyPortal © 2005-2018