Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anchors and IE

Featured Replies

I'm sweating over a problem with anchor links on a website I'm creating. It works fine in all browsers on Mac but it seems like it doesn't work on IE 6, however on Windows IE 7 seems to work. I think IE has a problem linking between different div tags?

 

Is there anyone who has an experience with this kind of problem?

 

 

 

Thankful for any kind of response!

I think IE has a problem linking between different div tags?

 

Hi there and welcome to the forum :)

 

We had similar problem the other day actually... try moving your <a name> about, it did the trick for us.

 

But as ben said, if you post your code, it'll be easier to help you out

 

Oli

  • Author

Oh, Thankyou!! :)

 

This is the site http://improco.se/test/kurser.htm

 

The link to the anchor on this page is at the bottom and says "Till början".

 

In the source code you can se the anchor on line 101 and the link is on line 343 (I hope this is a good way to present the problem)

 

I appreciate it a lot!! :)

 

 

 

Hi OzzieCat, welcome to the forum.

 

Would you mind posting an example of your code or perhaps a link to your website and where the problem is happening. I'll be pleased to take a look for you.

 

:)

  • Author

Hi Oli and thank you for your reply! :)

 

I did try to move it about but it did not work for me, I tried to put an id as well (<a name=toppen id=toppen></a>) and tried both inside the div tag and out side without any great succes.

 

try moving your <a name> about, it did the trick for us.

Hello again :)

 

I have just had a play.

If you move the <a name> out of the div it works (for me anyway).

So at the moment you have

<div id="top"> <img src="img/top.jpg" width="827" height="80"><a name="top"></a> </div>

on line 101

 

Put this instead

 

<div id="top"> <img src="img/top.jpg" width="827" height="80"></div><a name="top"></a>

 

And it should work ;)

 

hope this helps

 

Oli

and also, you should add alt tag to your back to top images, just in case someone don't see the images, they would still see a link!

 

Just a thought ;)

 

Oli

 

Pretty site you have there btw :)

  • Author

Thanks oli, for the code and the tip :) . May I ask what expoler you're using I've been trying to do what you showed me but it will not work anyways. It seems like it is IE version 6 on windows.

 

/OC

I tested it on IE6/7 FF2 on windows + FF2 & Safari on MAC...

Very strange 80

  • Author

Nope I did try again just to be sertain and no sucess. Could the problem be that I have a linked css template? <_<

 

If you go to the site it won't work right... www.improco.se/test/kurser.htm

 

I tested it on IE6/7 FF2 on windows + FF2 & Safari on MAC...

Very strange 80

  • 2 weeks later...
  • Author

Woho!!

 

I came up with a really simple and fundamental resolution to this problem. Instead of linking to an anchor i just made the site go to itself by putting <a href="#"><img></a>

 

Maybe not the smartest way to go but it did the trick.

 

Thanks for all your help anyways :) /OC

  • 1 month later...
Woho!!

 

I came up with a really simple and fundamental resolution to this problem. Instead of linking to an anchor i just made the site go to itself by putting <a href="#"><img></a>

 

Maybe not the smartest way to go but it did the trick.

 

Thanks for all your help anyways :) /OC

 

Doesn't work on Opera though.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.