Easy Fixed Position |
Post Reply |
Author | |
Gorksmash
Senior Member Joined: Jan 09 2014 Location: Lansing, MI Status: Offline Points: 133 |
Post Options
Thanks(0)
Posted: Jan 29 2014 at 4:38pm |
Is there an easy way to make an element have a fixed position without having to make a css style based on it's ID? I see that under properties there is a Position: absolute but it is greyed out so I can't change it to anything else like float.
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
Currently there's no way. You can add a Custom Class "positionFixed" to all elements that need to be fixed, then use CSS script in the base layer or in the page:
.positionFixed{position: fixed !important; } |
|
Gorksmash
Senior Member Joined: Jan 09 2014 Location: Lansing, MI Status: Offline Points: 133 |
Post Options
Thanks(0)
|
ya, I tried that but it wasn't working with just the class name in the CSS file I had to use the element ID with it before it would apply.
I am trying to have a fixed element inside another so that when it scrolls the title text follows it down. when I set it to fixed it sets it relative to the page, I thought you could set it relative to it's container as well. |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
You need "!important" - that is.. important:) Otherwise, the CSS code that corresponds to ID has priority.
|
|
Gorksmash
Senior Member Joined: Jan 09 2014 Location: Lansing, MI Status: Offline Points: 133 |
Post Options
Thanks(0)
|
lol I'm smart.... thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |