How to center the #urlbar?

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

How to center the #urlbar?

Post by lobbos »

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?

Thanks!
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: How to center the #urlbar?

Post by Grumpus »

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.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
Post Reply