Absolute positioning....
Permalink
Hi Ok, I don't use absolute positioning very often as I prefer floats. But on this site I am using it, an issue i'm coming across is that when the edit bar is showing all the absolute elements shift up by 49px, why does it do this? and is there a solution, i can't seem to find anything recent in the forums.
I've tried to fix this with:
But this just makes it so when logged in and in edit mode the site positions correctly but when i'm out of edit mode and just the header bar is shown, the elements still shuffle up??
Thanks in advance, Ben
I've tried to fix this with:
<?php if ($c->isEditMode()) { ?> <div style="height:49px;"></div> <?php } ?>
But this just makes it so when logged in and in edit mode the site positions correctly but when i'm out of edit mode and just the header bar is shown, the elements still shuffle up??
Thanks in advance, Ben
Thanks, this wasn't quite the issue, but i was able to use it to resolve the issue.
Regards
Ben
Regards
Ben
I have started using a Wrapping container which I position Relative, clearing both, that way child elements with absolute position are always Absolute to that element.
I then tend to use this container instead of the body (when I have content I would like to match up)
I then tend to use this container instead of the body (when I have content I would like to match up)
ahh... much better, thanks, spot on :-)
Ben
Ben
Hi Ben,
I have the same issue with the absolute positioning like you had.
Can i ask you what you did to fix your problem?
Thanks in advance
I have the same issue with the absolute positioning like you had.
Can i ask you what you did to fix your problem?
Thanks in advance
http://defunctlife.com/2010/06/concrete5-edit-bar-is-in-the-way-how...