943,655 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Apr 23rd, 2007
0

Anchoring problem in Firefox, it crops my browser after clicking the link

Expand Post »
Hi,

I made a few links that lead to another page on my website but each to a different anchor and when I click in Firefox on one of the links my whole page gets cropped on the destination page. Everything before the anchor is hidden. Please help me! Visit the source file link with Firefox and click on one of the three links in the dashed div space.

Source file address: http://learn-croatian.com/apdejt
Destionation file address: http://learn-croatian.com/apdejt/usluge.php

Here's the code I used for making anchors on the destination page (it's named usluge.php):

HTML and CSS Syntax (Toggle Plain Text)
  1. ...<span class="naslov_blok"><a name="prijevod">professional translations</a></span>...

And here's the link I used on the source file:

HTML and CSS Syntax (Toggle Plain Text)
  1. ...<small><a href="usluge.php#prijevod">read more</a></small>...

Here is a screenshot of the problem:

http://learn-croatian.com/svasta/screenshot.jpg

Thank you in advance!
Reputation Points: 10
Solved Threads: 0
Light Poster
poslanik is offline Offline
26 posts
since Feb 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

It works OK in HTML files.

Need more info:
- What does the class in the span tag do?
- Is part of your page dynamically formed?
- Did you forget to close a tag above the span tag?
- Is there a change caused by the use of php.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

Hi.

The style:

HTML and CSS Syntax (Toggle Plain Text)
  1. .naslov_blok {font-variant:small-caps;letter-spacing:1px;font-weight:bold;}

- Nothing is dinamically formed but I use php includes.

- No, as far as divs and spans go because it would mess up my layout.

- Like I said I use includes, only that.
Last edited by poslanik; Apr 24th, 2007 at 1:03 pm. Reason: typo
Reputation Points: 10
Solved Threads: 0
Light Poster
poslanik is offline Offline
26 posts
since Feb 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

There are some warnings in Firefox about closing div tags in your pages. Maybe try to fix that....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bosko is offline Offline
14 posts
since Jan 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

Could you tell me how to check for that myself? I'm guessing with the web developer extension somehow?
Reputation Points: 10
Solved Threads: 0
Light Poster
poslanik is offline Offline
26 posts
since Feb 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

Im not very good with anchors, but im pretty sure the anchor link is incorrect. try to make the link go to that page, but use cookies to redirect to the section when the page loads.
Reputation Points: 9
Solved Threads: 0
Newbie Poster
connor4312 is offline Offline
16 posts
since Apr 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

I've checked several sites that use anchors and my code if flawless. It's nothing complicated, 2 tags and that's it.

Plus I can't code what you said. I'm guessing it's a css thing but I need to find that loose div tag.

Bosko could you please tell me how did Firefox tell you that there are unclosed div tags?
Last edited by poslanik; Apr 24th, 2007 at 6:01 pm.
Reputation Points: 10
Solved Threads: 0
Light Poster
poslanik is offline Offline
26 posts
since Feb 2007
Apr 24th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

Zdravo poslanik!
When open your page in Firefox press ctrl+u to see page code and then you will see all warnings (not just about divs).
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bosko is offline Offline
14 posts
since Jan 2007
Apr 25th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

Hvala

But I haven't noticed any warnings, just code. I opened the code of the index page and of the page where the anchors are situated.
Reputation Points: 10
Solved Threads: 0
Light Poster
poslanik is offline Offline
26 posts
since Feb 2007
Apr 25th, 2007
0

Re: Anchoring problem in Firefox, it crops my browser after clicking the link

You have to install a Firefox plugin HTML validator TIDY(tools->plugin).
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bosko is offline Offline
14 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Learning CSS
Next Thread in HTML and CSS Forum Timeline: Browser scrollbar colors





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC