How to center the #urlbar?

User Help for Mozilla Firefox
Posts: 4
Joined: December 2nd, 2014, 7:06 am

Post Posted December 2nd, 2014, 7:10 am

On my navigationbar I only have the back/forward buttons on the one side
and the menu button on the other side of the urlbar.
Now I'd like to horizontally center the urlbar on the remaining space of the navigationbar with a custom userstyle.

In my css, I've added the following code:

Code: Select all
#urlbar {
 width: 800px;
 margin: 0 auto !important;

But that doesn't work. Can you maybe point me in the right direction?



User avatar
Posts: 12200
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted December 2nd, 2014, 8:35 am

You might be able to save yourself some coding and grief if you add Classic Theme Restorer
It's been updated a couple of times and has a lot of flexibility.
If your intent is to build your own theme you probably need to look into the Theme Development Forum off the Index page.
Cashless society sacrifices independence, privacy and lastly liberty, encouraged by ignorance and villainy.

Return to Firefox Support

Who is online

Users browsing this forum: No registered users and 8 guests