I would like to include HTML elements inside an HTML layer. The elements should be styled through individual CSS classes. According to the documentation one can use the attribute htmllinkcolor to either enable a general link color (by setting a color value) or disabling general link colors (by setting an empty value). Unfortunately this seems not to work in version 1.23.3. I tested both a color value and an empty value, but krpano always added style="color: inherit;" to the link. As an easy workaround !important can be added to the CSS class. However it would be better if htmllinkcolor is working as expected. In the example below the link is neither blue nor green, but has the default text color.
Code
<cssstyles>
.container-class
{
background-color: #666666;
}
.heading-class
{
color: #FF0000;
}
.link-class
{
color: #0000FF;
}
</cssstyles>
<data name="test_data"><![CDATA[
<div class="container-class">
<h1 class="heading-class">Heading</h1>
<p>This is a <a href="#" class="link-class">sample link</a>.</div>
</div>
]]></data>
<layer
name="test_layer"
type="html"
x="100"
y="200"
width="200"
height="100"
htmllinkcolor="#00FF00"
keep="true"
html="get:data[test_data].content"
/>
Display More