搜尋 Mozilla 技術支援網站

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

了解更多

website scrolls to the right in Firefox

more options

my website scrolls to the right in Firefox but not in any other browsers. can anybody suggest how to fix? THX! the website is www.truthcafe.net

my website scrolls to the right in Firefox but not in any other browsers. can anybody suggest how to fix? THX! the website is www.truthcafe.net

由 jjoyous1 於 修改

所有回覆 (4)

more options

replied by accident...

由 jjoyous1 於 修改

more options

The DIV above it with the ads have floating elements. In such a case you need to add a clearing DIV to prevent content from being placed to the right of it. You can either add an extra DIV with style="clear:both" under the last DIV.ai (preferred). In that case you need to remove the height:35px from the containing DIV as well (width: 750px; height: 35px;). Or you can add the style="clear:both" to the DIV with the shifted content (<div style="text-align: center; clear:both">).

You should always be careful with specifying the height. It is always better to let the browser do this in case of increased font sizes or other changes made by visitors.

<div id="1974125074" align="center">
 <div class="bnu"></div>
 <div style="width: 750px;">
  <div class="ai" style="margin-right: 5px;"></div>
  <div class="ai" style="margin-right: 5px;"></div>
  <div class="ai" style="margin-right: 5px;"></div>
  <div class="ai" style="margin-right: 5px;"></div>
  <div style="clear: both;"></div>
 </div>
</div>

<div style="text-align: center;">
 <div style="width: 900px; margin: auto;">
  <div>
   <table>
   </table>
  </div>
 </div>
</div>

由 cor-el 於 修改

more options

thank you so much!!! you are a lifesaver.

more options

Please click the Helpful button next to the answer that solved your Firefox support issue, when you are logged in, so this thread gets marked as Solved.