X
點擊此處開啟此網站的行動版。

技術支援討論區

Spacing in FireFox

已張貼

Well, I recently noticed it while making a site for one of my clients. You know when you're structuring the front-end output to be more organized and you use tabs to space it on the doc? The problem is that Firefox recognize these structuring tabs as a space which leads to breaking the page and the only way around it is to not structure your front-end output, which then produce a very unorganized code - which ultimately makes it difficult to maintain.

Will this be fix any time in the near future? I know that even if it will be fixed, this will still exist in older versions of Firefox so I still wont be able to structure it the way I need to.

This usually happens for grids and certain elements, in the condition they are positioned inside a container like the below example:

< style >
#wrapper {
 width:1000px;
}

#block-one {
 width:60%;
}

#block-two {
 width:40%;
}
< /style >

< div id="wrapper" >
    < div id="block-one" >< /div >
    < div id="block-two" >< /div >
< /div >

When child elements expected to use the entire space of the parent, the spaces are noticed more and because of those spaces - the child elements breaks as if #block-one is say width 61%, then #block-two (40%) is too big to fit there so it will be displayed below #block-one.

Not sure I explained it in an understandable way but hope you got what I'm trying to say.

Well, I recently noticed it while making a site for one of my clients. You know when you're structuring the front-end output to be more organized and you use tabs to space it on the doc? The problem is that Firefox recognize these structuring tabs as a space which leads to breaking the page and the only way around it is to not structure your front-end output, which then produce a very unorganized code - which ultimately makes it difficult to maintain. Will this be fix any time in the near future? I know that even if it will be fixed, this will still exist in older versions of Firefox so I still wont be able to structure it the way I need to. This usually happens for grids and certain elements, in the condition they are positioned inside a container like the below example: <pre><nowiki> < style > #wrapper { width:1000px; } #block-one { width:60%; } #block-two { width:40%; } < /style > < div id="wrapper" > < div id="block-one" >< /div > < div id="block-two" >< /div > < /div ></nowiki></pre> ---------------------------------------------------------------------------------- When child elements expected to use the entire space of the parent, the spaces are noticed more and because of those spaces - the child elements breaks as if #block-one is say width 61%, then #block-two (40%) is too big to fit there so it will be displayed below #block-one. Not sure I explained it in an understandable way but hope you got what I'm trying to say.

由 cor-el 於 修改

額外的系統細節

已安裝的外掛程式

  • Creative Cloud Desktop Plugin.v_2_0_0_0
  • Hola VLC media player Web Plugin
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • Shockwave Flash 18.0 r0
  • Adobe Shockwave for Director Netscape plug-in, version 12.1.2.152

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17467 個解決方法 157847 個答案

You can try to ask advice at the Stack Overflow forum site.

You can try to ask advice at the Stack Overflow forum site. *http://stackoverflow.com/questions/ *https://support.mozilla.org/kb/where-go-developer-support

提出問題者

cor-el said

You can try to ask advice at the Stack Overflow forum site.

This is not a help thread, I was just reporting it and asking if anyone else has it too, and also seeing if anyone has a better solution for this than the one I mentioned above, but regardless, I wasn't asking for help or for a solution by posting this, main reason I posted it is to make sure it's known to Mozilla.

Thanks for suggesting though. :)

''cor-el [[#answer-782536|said]]'' <blockquote> You can try to ask advice at the Stack Overflow forum site. *http://stackoverflow.com/questions/ *https://support.mozilla.org/kb/where-go-developer-support </blockquote> This is not a help thread, I was just reporting it and asking if anyone else has it too, and also seeing if anyone has a better solution for this than the one I mentioned above, but regardless, I wasn't asking for help or for a solution by posting this, main reason I posted it is to make sure it's known to Mozilla. Thanks for suggesting though. :)
cor-el
  • Top 10 Contributor
  • Moderator
17467 個解決方法 157847 個答案

Mozilla probably won't notice this if you post on this support forum. The people who answer questions on this forum are mostly volunteers that have no connection to Mozilla. It might work if you try the Stack Overflow forum or you could consider to create a bug report if you consider this a bug in Firefox.

Mozilla probably won't notice this if you post on this support forum. The people who answer questions on this forum are mostly volunteers that have no connection to Mozilla. It might work if you try the Stack Overflow forum or you could consider to create a bug report if you consider this a bug in Firefox.