PDA

View Full Version : Problem in Chrome re. Smooth Scroll



dog
02-28-2010, 03:30 PM
Hello everybody,

I've only recently started testing my sites in Chrome and straight away I've come across a problem with one.

On the following site I'm using a Smooth Scroll effect from Mootools. In Chrome none of my internal links are scrolling to the correct height.

http://raiar.org/01/pt/home/ (try any of the subsections to see it go wrong)

I think this might have something to do with the way in which I defined different CSS to position the named anchors in FF and IE.

CSS I used:
.anchorHolder {
position: relative; top: -170px;
/position:inherit;
/padding-bottom: 20px;
}

Am I right in guessing that whereas FF ignores the last two lines Chrome reads them? How can I better define different CSS for different browsers? And what's good about Chrome anyway?