css Positioned obejcts?
Permalink 1 user found helpful
Hi
I'm trying to convert an old page to a theme.
It has a lot of position:absolute and relative divs.
If I put in any editable content inside such a div it does not work,´.
So what is the best way to do this? I dont want to rebuild the whole site.
And where are the guidelines for this? How should the css be setup?
Regards
Olle
I'm trying to convert an old page to a theme.
It has a lot of position:absolute and relative divs.
If I put in any editable content inside such a div it does not work,´.
So what is the best way to do this? I dont want to rebuild the whole site.
And where are the guidelines for this? How should the css be setup?
Regards
Olle
The easiest way to do this would be to set a block wrapper for the areas that are causing problems. In you page type templates ("default.php", "right_sidebar.php", "full.php", etc.), find the code that's outputting the area, for example:
And change it to something like this:
Then in your theme's stylesheet, add this:
.positionwrapper {
position:relative;
}
Hope that helps!