Hi Wikitude support, i'm trying to add CSS to an HTML widget, basically this code:
<html> <head> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine"> <style> body { font-family: 'Tangerine', serif; font-size: 48px; } </style> </head> <body> <div>Making the Web Beautiful!</div> </body> </html>
What I get is the text but with no CSS format. What is going wrong here? The code works on the browser.
Thanks,
Nicolás
M
Martin Lechner
said
over 8 years ago
Hi Nicolas,
Unfortunately, you cannot define <head> in Studio, you can only define the <body> of your HTML content. If you want to use Studio, you need to stick to body elements.
To use <head> as well, you would have to use HTMLDrawables in the Wikitude SDK, without the Wikitude Studio support. The SDK also supports the <head> tag.
Nicolas Videla