Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Website not centered on layout, but it is on Internet Explorer, what could be the problem?

  • 8 trả lời
  • 1 gặp vấn đề này
  • 4 lượt xem
  • Trả lời mới nhất được viết bởi RemyK

more options

My website www.thegreatestmindsofourtime.com/downloadpagemain.htm does not get centered when it displayed with Firefox.

But if I use internet explorer, it is centered as it supposed to be.

My website www.thegreatestmindsofourtime.com/downloadpagemain.htm does not get centered when it displayed with Firefox. But if I use internet explorer, it is centered as it supposed to be.

Giải pháp được chọn

That CSS rule works for me on Linux to center the page.

Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (8)

more options

Add this style rule to the CSS code.


.style54 {
 margin-left: auto;
 margin-right: auto;
}
more options

Not solved it. I put the code in css at the top first. Then I tried at the bottom.

It does not centralized the body of the site.

Regards.

more options

I'm not seeing that style rule.


.style54 {
 background-color: #FFFFFF;
}

You can test it by pasting this bookmarklet code in the Scratchpad window and execute (run) the code via Ctrl+R

javascript:(function(){var doc=document,css=doc.createElement('LINK');css.rel='stylesheet';css.type='text/css';css.href='data:text/css,'+'.style54 {margin-left:auto; margin-right:auto;}';doc.documentElement.childNodes[0].appendChild(css);})();
more options

Hi, Again.

What is a ScratchPad window? My CSS file sits on my host server.

more options

You can open the Scratchpad via Firefox > Web Developer > Scratchpad or Shift+F4

more options

Hi,

I tried this option, but it does not change anything.

Regards,

Remy

more options

Giải pháp được chọn

That CSS rule works for me on Linux to center the page.

Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

more options

In vain. Not working.

Regards,