Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

problem using css absolute positioning, works in IE not in FireFox http://www.barryrich.net/timeline/timelinemap.htm

  • 4 відповіді
  • 4 мають цю проблему
  • 11 переглядів
  • Остання відповідь від Michael Verdi

more options

in my html code I use css for absolute positing of a sit map. One of my boytom styles #1935 works fine in IE but in Firefox it displays at the top left of the screen.

The address of the page is: http://www.barryrich.net/timeline/timelinemap.htm

It's a yellow block with text (1935)

Thanks for any advice on this.

in my html code I use css for absolute positing of a sit map. One of my boytom styles #1935 works fine in IE but in Firefox it displays at the top left of the screen. The address of the page is: http://www.barryrich.net/timeline/timelinemap.htm It's a yellow block with text (1935) Thanks for any advice on this.

Обране рішення

Without a doctype declared, I believe Firefox parses this as HTML 4.01. In that case you can't start the name of a div with a number. I suggest changing the name of the div to start with a letter.

Читати цю відповідь у контексті 👍 2

Усі відповіді (4)

more options

Вибране рішення

Without a doctype declared, I believe Firefox parses this as HTML 4.01. In that case you can't start the name of a div with a number. I suggest changing the name of the div to start with a letter.

more options

Let me cahnge the code and give it a try, thank you

more options

Changed the code and it is fine, thank you. Can us suggest a doctype to use for that code?

more options

Probably no reason why you can't just use HTML5. The doctype is:

That should be the very first line of the document. Check out our developer docs on HTLM5 - https://developer.mozilla.org/en/HTML/HTML5