搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

userChrome.css Tabs at Bottom covering content

  • 8 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 abt

more options

I have moved the tabs to the bottom but now the tabs are covering some useful content. Is there a way to pad the content bottom or some other way to move the content up to make way for the tabs? I've tried everything.

Here's my current code:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 

#main-window:not([inFullscreen]) #content-deck {margin-bottom: 32px !important;}
#main-window[inFullscreen] #content-deck {margin-bottom: 0px !important;}

#TabsToolbar
{
   position: fixed !important;
   bottom: 0px !important;
   width: 100% !important;
}

#tabbrowser-tabs {width: 96% !important;}
#TabsToolbar[inFullscreen]
#TabsToolbar { background-color: #4d4d4d !important }
#tabbrowser-tabs { background-color: #4d4d4d !important }

I have moved the tabs to the bottom but now the tabs are covering some useful content. Is there a way to pad the content bottom or some other way to move the content up to make way for the tabs? I've tried everything. Here's my current code: <pre> @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); #main-window:not([inFullscreen]) #content-deck {margin-bottom: 32px !important;} #main-window[inFullscreen] #content-deck {margin-bottom: 0px !important;} #TabsToolbar { position: fixed !important; bottom: 0px !important; width: 100% !important; } #tabbrowser-tabs {width: 96% !important;} #TabsToolbar[inFullscreen] #TabsToolbar { background-color: #4d4d4d !important } #tabbrowser-tabs { background-color: #4d4d4d !important } </pre>

由abt于修改

被采纳的解决方案

As you may know, the author of Classic Theme Restorer maintains a large set of CSS files with intricately detailed rules for moving the tab bar. The ones to move the tab bar below the content start here, and incorporate several additional files:

https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/userChrome.css#L423

I have not tried it myself.

定位到答案原位置 👍 0

所有回复 (8)

more options

Hi abt, it might be beneficial to follow up with the source of the rules you're using, to make sure they are current with the latest release of Firefox. Do you recall where you got them?

P.S. Use <pre> before and </pre> after your code to preserve its integrity.

#main-window:not([inFullscreen]) #content-deck {margin-bottom: 32px !important;}
#main-window[inFullscreen] #content-deck {margin-bottom: 0px !important;}

#TabsToolbar
{
   position: fixed !important;
   bottom: 0px !important;
   width: 100% !important;
}

#tabbrowser-tabs {width: 96% !important;}
#TabsToolbar[inFullscreen]
#TabsToolbar { background-color: #4d4d4d !important }
#tabbrowser-tabs { background-color: #4d4d4d !important }
more options

@jscher2000 Thanks.

No, I don't recall where I got the code other than I searched, found, and tried lots of different ways and this is what I went with. Many of them worked but they all have the same problem, the tabs cover the content.

Duly noted on using the pre tag. I have edited my post.

由abt于修改

more options

Try to add a "display:block !important;" rule:

#TabsToolbar
{
  display: block !important;
  position: fixed !important;
  bottom: 0px !important;
  width: 100% !important;
}
more options

cor-el said

Try to add a "display:block !important;" rule:
#TabsToolbar
{
  display: block !important;
  position: fixed !important;
  bottom: 0px !important;
  width: 100% !important;
}


Thanks. No luck with that. I the problem is that this moves the tabs tools bar and what I'm trying to do is resize the content so that the tabs aren't over the top of it.

more options

Can you attach a screenshot?

See also:

more options

Okay, so I think I may have been misleading with my post (sorry!). When I said I want the tabs on the bottom I meant the bottom of the screen not the bottom of the navbar.

I've attached screenshot of what I mean by the tabs covering the content.

由abt于修改

more options

选择的解决方案

As you may know, the author of Classic Theme Restorer maintains a large set of CSS files with intricately detailed rules for moving the tab bar. The ones to move the tab bar below the content start here, and incorporate several additional files:

https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/userChrome.css#L423

I have not tried it myself.

more options

jscher2000 said

As you may know, the author of Classic Theme Restorer maintains a large set of CSS files with intricately detailed rules for moving the tab bar. The ones to move the tab bar below the content start here, and incorporate several additional files: https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/userChrome.css#L423 I have not tried it myself.

THANKS @jscher2000! That worked.

Here's the link to the code is case someone reads this:

https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/css/tabs/tabs_below_main_content.css