Override CSS in Widget
So for the past couple weeks I've tried every way I know how to override the "margin-left" property for the <label> tag within the Radio Widget. Through the process of reduction, it seems my issue is not referencing the iframe, but referencing an ID, Class, or HTML tag within the iframe. Since Captivate generates it's learning interactions within <iframe> tags when publishing for HTML5 output, somehow I feel like I need to reference the iframe using the ".children" argument, such as document.getElementById("#459680").children.style.marginLeft = "15px"; but I still can't seem to find a solution.
I've tried:
- Adding the CSS override "!important" in the style area within the index.html file.
- Breaking down and manipulating the Radio Widget files directly, but this always breaks my project.
- Changing it using jQuery with "Execute JavaScript" action within Captive.
- Changing it using JavaScript with "Execute JavaScript" action within Captive.
- Changing it using jQuery and/or JavaScript by adding a function in the index.html file, then referencing the function in Captivate.
- Changing it using a combination of jQuery by referencing the ID, then using the JavaScript argument ".setProperty" to set the overriding CSS.
- I found another forum post about how to reference an iframe directly, which was helpful, but still no luck when trying to manipulate the CSS.
So if anybody has any insight on how to dive into a specific iframe and then override the CSS, you'd be really helping me out. Thanks!
