I created a page with several anchors, created using TinyMCE. But I get the same results when I hand code the links and tags.
At the top of the page I made a uniform list of links to the anchors using the self link tags in the following format:
{cms_selflink dir="anchor" anchorlink="#maintenance" text="Website Maintenance Contract" label=""}
The anchors in the page are in this format:
This generates pages with code that appears to be correct.
But when I actually click on one of the links to the anchors, the content above the anchor is annihilated, leaving only the remainder. I have to click back and refresh the page to get the top part of the content column back.
I searched for this problem and did not find it in the forums, so perhaps this is a bug in my version:
CMSMS 1.1.2 running on RHEL with PHP 5 MYSQL 5.
My computer OS is Windows XP. I get the same results with Firefox and with IE7.
You can test this page for yourself here:
http://clinchmountain.net/webdesign/services.htm
Is this a CSS bug? Is it being done by Javascript? I am mystified.
Self-link Anchor Chops Off Top of Page [Solved]
-
kendo451
Self-link Anchor Chops Off Top of Page [Solved]
Last edited by kendo451 on Wed Oct 03, 2007 12:17 am, edited 1 time in total.
-
kendo451
Re: Self-link Anchor Chops Off Top of Page
I should have mentioned that this problem does not seem to occur in IE6.
Also I use this meta:
{metadata showbase='false'}
Also I use this meta:
{metadata showbase='false'}
Last edited by kendo451 on Sun Sep 30, 2007 1:51 am, edited 1 time in total.
-
kendo451
Re: Self-link Anchor Chops Off Top of Page [Solved]
I solved this one myself.
My page was using the equal length columns solution from positioneverything.net.
In summary, that solution to the equal columns problem adds a large padding on the bottom of the columns and then a negative margin in order to cover it back up. Overflow is set to hidden for both columns. It works great.... unless you have named anchors in the page.
The bug and the possible solutions are described here:
http://www.positioniseverything.net/art ... htproblems
So it has nothing to do with CMSMS. But if you have this kind of problem with named anchors in CMSMS, you should check to see if you are using overflow:hidden for the div in which the anchors are placed.
My page was using the equal length columns solution from positioneverything.net.
In summary, that solution to the equal columns problem adds a large padding on the bottom of the columns and then a negative margin in order to cover it back up. Overflow is set to hidden for both columns. It works great.... unless you have named anchors in the page.
The bug and the possible solutions are described here:
http://www.positioniseverything.net/art ... htproblems
So it has nothing to do with CMSMS. But if you have this kind of problem with named anchors in CMSMS, you should check to see if you are using overflow:hidden for the div in which the anchors are placed.
