Hey,
Thanks for the reply John. You wrote:
I can't see what you are talking about.
Ok, I've just had a look into that and realised that the problem is only occuring on the Further Information page. Try the "Raiar News Blog" link on the home page example. You'll find yourself badly positioned. Then once you're on that page try the side menu and you'll see that it works fine. Try refreshing the page and the bad positioning occurs again.
I've got a good idea of what's causing the problem. There's a part of the newletter form that hides itself on 'domload'*. I'm guessing that's what's messing with the anchors as the positioning seems to be thrown out by the height of the hidden div. Funny that IE isn't having any trouble with these calculations.
...it is almost never a good idea to do what you are proposing...
Ok, bad idea.
You could have different css - one main css for all browsers, and a supplemental IE only stylesheet. That is usually the best way to deal with such matters.
In this case I've seperated the CSS for IE like this, (the last two lines are only acted upon by IE):
Code:
.anchorHolder {
position: relative; top: -170px;
/position:inherit;
/padding-bottom: 20px;
}
This method is working fine, this isn't the problem. However, now you mention it I am interested to learn how to seperate a CSS just for IE. Is there a past thread about doing that?
As far this problem thread goes, it's the positioning of the anchors being thrown out by the self hiding div. I'm going to try getting it to hide on 'load' rather than on 'domready'*.
*I'm using mootools to initialize the javascript. For info about the on 'domready'function check out http://demos.mootools.net/DomReadyVS.Load
If I continue to have problems may be I should take them to the mootools forum. What's the correct etiquette here?
For those of you who are interested here's a copy of the code that initializes the effects.
Code:
window.addEvent('domready', function(){
var myPanal = new Fx.Slide('optionalInputs');
var myTab = new Fx.Slide('h5Optional1');
mySlide.hide();
$('slidein').addEvent('click', function(e){
e = new Event(e);
myPanal.slideOut();
myTab.slideIn();
e.stop();
});
And the HTML it applies to:
HTML Code:
<h5 id="h5Optional1">
<a href="#" id="slidein">Optional Details (click here to reveal) : </a></h5>
<div id="optionalInputs">
<h5 id="h5Optional2">Optional Details</h5>
<label for="name">Organisation :</label>
<input name="orgNews" type="text" id="orgNews" />
<br>
<label for="email">Location :</label>
<input name="locationNews" type="text" id="locationNews" />
<br>
<label for="email">Website :</label>
<input name="siteNews" type="text" id="siteNews" value="http://" />
<br>
<label for="email">Interest in Raiar :</label>
<input name="locationNews" type="text" id="interestNews" />
</div><!-- optionalInputs -->
PEACE
Bookmarks