Changing the Z-Index of the Edit Bar / Overlays
Permalink
I'm just beginning tweaking an existing template for use with Concrete, so I apologize for the newbie-ness.
The template I'm using has absolutely positioned elements that overlay other elements - some items have large z-index values (3000 / 4000).
When in edit mode, these page elements overlay the edit bar / overlay screens, etc.
Where can I change the z-index of the overlays/edit bar to make sure they are always on top?
Attached is an image of the problem.
Note: I'm using Google Chrome 1.0.154.48
The template I'm using has absolutely positioned elements that overlay other elements - some items have large z-index values (3000 / 4000).
When in edit mode, these page elements overlay the edit bar / overlay screens, etc.
Where can I change the z-index of the overlays/edit bar to make sure they are always on top?
Attached is an image of the problem.
Note: I'm using Google Chrome 1.0.154.48
Thanks for the reply - I keep finding things out about Concrete that make me really happy. I can tell now that the whole isEditMode() variable is going to be awesome.
I think first, I'll just attempt to reduce the z-index values of my elements. I have no need for them to be so high.
I think first, I'll just attempt to reduce the z-index values of my elements. I have no need for them to be so high.
I'm running into an interesting z-index issue, myself... because a menu item has a z-index that causes it not to be editable when in edit mode.
I can click on it all day long, and it just won't show me the popup that lets me into the edit mode.
So, I just commented it out in the default css and its now editable... which tells me that I think you just solved my problem with the "isEditMode" comment... at least I HOPE so!
I can click on it all day long, and it just won't show me the popup that lets me into the edit mode.
So, I just commented it out in the default css and its now editable... which tells me that I think you just solved my problem with the "isEditMode" comment... at least I HOPE so!
This may be an old post but I would like to respond anyway.
The trick of using another CSS didn't work for me, better is just to change the div tag. I defined 2 classes; one is navbar and the second is navbar-edit. They are identical with the exception for the z-index which is in the navbar-edit class 0.
It would look like this:
to make sure the 2 area's that are normally overlapping are free to edit a second isEdit can be added:
The trick of using another CSS didn't work for me, better is just to change the div tag. I defined 2 classes; one is navbar and the second is navbar-edit. They are identical with the exception for the z-index which is in the navbar-edit class 0.
It would look like this:
if($c->isEditMode()){ <div class="navbar-edit"> } else { <div class="navbar">
to make sure the 2 area's that are normally overlapping are free to edit a second isEdit can be added:
if($c->isEditMode()){ <div style="min-height:80px;"></div> }
To do this you would need an essentially identical stylesheet but with more "normal" z-index.
Then the reference would be something like: