Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position relative ignored in innerHTML
Message
From
26/02/2017 12:43:13
 
 
To
26/02/2017 11:24:45
General information
Forum:
CSS
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01648528
Message ID:
01648539
Views:
48
This message has been marked as the solution to the initial question of the thread.
>>I think that the style element must be a child of head, so putting it in innerHTML of a body descendant element won't work.
>>
>>You can apply inline styling, though, so it would be something like this:
>>
>>
>>window.parent.oDiv.innerHTML = "<div style='position: relative;'><div style='position: absolute; top: 10; right: 10;'>Test</div></div>";
>>
>
>Going inline does not change anything.
>
>But, thanks for the suggestion

Sorry: "[...] top: 10px; right: 10px;[...]".
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform