Editing hidden (display:none) content block
Permalink
Hi.
I have 2 blocks:
1) large image area
2) smaller content block on top of it that is hidden (by display:none) until the user clicks on it.
When I click "edit page" on the C5 header I cannot edit the content, is there anyway of forcing the display:none block to be seen when in edit mode?
Thanks
I have 2 blocks:
1) large image area
2) smaller content block on top of it that is hidden (by display:none) until the user clicks on it.
When I click "edit page" on the C5 header I cannot edit the content, is there anyway of forcing the display:none block to be seen when in edit mode?
Thanks
Perfect. Thanks jelthure.
One small issue I do have is because the image block underneath is large it is very hard to "edit" (rollover when grey) the smaller area. Is there any way to make the smaller block "selected" so I can edit it when I roll over?
See attached images to help explain.
Thank you
One small issue I do have is because the image block underneath is large it is very hard to "edit" (rollover when grey) the smaller area. Is there any way to make the smaller block "selected" so I can edit it when I roll over?
See attached images to help explain.
Thank you
you could try defining an hover state in your css that on hover the image changes the z-index.
I do not appear to be getting a page class with this code. I have copied and pasted this in my header. IS this correct?
Ok I have managed to make this work. I am unsure now how to reference it in my css. Could you please help?
Thanks
Thanks
Using jelthure's code example above it would be adding a class to the body tag so in your css you would chain together something like:
.my-hidden-div { display: none; } .edit-mode .my-hidden-div { display: block; }
then you will have a class on the body tag you can reference.
hope this helps