為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

a href links not working on website when margin top: -60px

  • 2 回覆
  • 8 有這個問題
  • 223 次檢視
  • 最近回覆由 cor-el

more options

I'm building a website test.digitaldemocracy.org.uk and used a CSS trick called sticky footer to ensur the footer is always at the bottom of the page.

This requires that the footer has a negative margin assigned i nthe CSS margin-top : -60px;

Page with not full content and sticky footer

http://test.digitaldemocracy.org.uk/proposal/guide.php


This works fine until an A href link becomes placed in the area of the screen that would were the footer would be stuck if the content did not fill the screen.

page where this is an issue

http://test.digitaldemocracy.org.uk/proposal/proposal.php?category_id=15&concern=ggrfg&solution=grgff&proposal_title=ergre&locale=2&categories_entered=TRUE&x=91&y=8

Problem with link { User Guide (opens in a new window) } does not work on bottom of page

In Firefox 3.6 the A href is shown but has no function (onclick does not work) yet when the same page is viewed in I.E 8 or chrome or safari or Opera the A Href link works??

I'm building a website test.digitaldemocracy.org.uk and used a CSS trick called sticky footer to ensur the footer is always at the bottom of the page. This requires that the footer has a negative margin assigned i nthe CSS margin-top : -60px; Page with not full content and sticky footer http://test.digitaldemocracy.org.uk/proposal/guide.php This works fine until an A href link becomes placed in the area of the screen that would were the footer would be stuck if the content did not fill the screen. page where this is an issue http://test.digitaldemocracy.org.uk/proposal/proposal.php?category_id=15&concern=ggrfg&solution=grgff&proposal_title=ergre&locale=2&categories_entered=TRUE&x=91&y=8 Problem with link { User Guide (opens in a new window) } does not work on bottom of page In Firefox 3.6 the A href is shown but has no function (onclick does not work) yet when the same page is viewed in I.E 8 or chrome or safari or Opera the A Href link works??

所有回覆 (2)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

more options

Add a rule clear: both; to the CSS rules for the DIV .footer