Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Element's CSS, reverts back at the end of page load? [closed]

Asked by 10 years ago

I am trying to change the position of

<div class="BannerRedesign" id="Banner" style="position: fixed ! important; height: 36px ! important; width: 100% ! important;"> <div class="BannerCenterContainer" id="NavigationRedesignBannerContainer"> (roblox banner element, trying to make it not float) to relative using Greasemonkey, with all privileges enabled. But, every time, at the end of the loading of the document, it reverts to floating.

I even tried appending bannercentercontainer to a different element, but I don't know if I did it right... can you please help me change this to relative position?

I tried:

$('#Banner').css('position', 'relative !important') and

if ($('#Banner').css('position') == 'fixed') { $('#Banner').css('position', 'relative') } , but it just changed back once the page finished loading.

0
I'm not sure that you'll get much help with that here, this is a Roblox Lua-centric forum, sorry! duckwit 1404 — 10y

Closed as off-topic by jobro13 and evaera

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 10 years ago

That's is for Lua Scripts, not for HTML/CSS Webpage Scripting...

Ad