Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] CSS position settings #1677

Closed
drawcard opened this issue May 4, 2017 · 7 comments
Closed

[Idea] CSS position settings #1677

drawcard opened this issue May 4, 2017 · 7 comments
Milestone

Comments

@drawcard
Copy link
Contributor

drawcard commented May 4, 2017

I'm just throwing an idea out there (not urgent, since you can use Custom CSS to handle this)

But it would be nice if there were options for elements to control positioning. I noticed that each column has position: relative; applied to it, and therefore if you apply position: absolute to elements, you can move things around in that column precisely.

So I am thinking, perhaps a dropdown like:
Position: [setting] set to static by default, but also having absolute & relative

then a set of value controls (like margin or padding values):
top: 0px/% left: 0px/% right: 0px/% bottom: 0px/%
(along with responsive breakpoint settings)

and finally, z-index settings in a text field.

I just get the odd request sometimes from a client that they want to put an element exactly -20px to the top left of some other thing and if I don't write custom CSS, I resort to negative margins to fudge it 😱

@drawcard
Copy link
Contributor Author

drawcard commented May 4, 2017

I also thought about fixed positioning but that's probably going to create havoc in the previewer (unless it's not rendered at all during preview, like how you treat hidden elements for various breakpoints)

@katart
Copy link

katart commented May 5, 2017

I think I should make a comment about my issue in this thread.

I noticed that all elementor-widget-wrap elements have a z-index equal to 1. I think this is causing an overlay issue on any other elementor widget higher up in the DOM.

I created a Button with Tooltip Shortcode that uses an absolute positioned Tooltip Popup with a z-index equal to 999. If this Tooltip is close to another Elementor widget, the high z-index has no affect on surrounding widgets farther down the DOM. I can't seem to make the Tooltip display over any other Elementor Widgets. I assume that's because of the z-index: 1 on the elementor-widget-wrap.

Does this make sense? and how can this be fixed?

@drawcard
Copy link
Contributor Author

drawcard commented May 6, 2017

Couple of ideas:

  • Set the button's container div to z-index: 999 as well. In Chrome Inspector, look for the unique ID that each elementor container is given & write some CSS to bump the Z-index up
  • (warning: not pretty) use !important if you have to to override the elementor behaviour

You can experiment around with the Custom CSS panel in Elementor Pro + using selector { ... } to target whatever element you're working on.

@drawcard
Copy link
Contributor Author

drawcard commented May 6, 2017

Also you may want to create a seperate issue (in case the one I raised gets closed). FWIW I have also used JSTooltipster + Elementor on other sites without any z-index problems: http://iamceege.github.io/tooltipster/

@arielk arielk added this to the 1.5.0 milestone Jun 11, 2017
@arielk
Copy link
Member

arielk commented Jun 11, 2017

Z-index option will be released in version 1.5

Also please read this issue: #1743

Thanks for your feedback!

@arielk arielk closed this as completed Jun 11, 2017
@temsool
Copy link

temsool commented Aug 21, 2018

Need this feature too

@hufer
Copy link

hufer commented Nov 25, 2018

Piotnet Addons For Elementor can do it for you
https://pafe.piotnet.com/#absolute-positioning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants