Recommended Posts

I have two buttons positioned at the extreme left side of the toolbar. From left to right, one is for new tab and the second is for the "home page". Both buttons are png files stored in a local directory:

toolbox[iconsize="small"] #new-tab-button > .toolbarbutton-icon { list-style-image: url("file:///e:/Pics/newtab.png") !important; padding-top: 9px !important; padding-left: 4px !important; }

toolbox[iconsize="small"] #home-button > .toolbarbutton-icon { list-style-image: url("file:///e:/Pics/home.png") !important; -moz-image-region: rect(0px,18px,16px,1px) !important; padding-bottom: 2px !important; }

The thing that I cannot understand is why it seems that this part, "-moz-image-region: rect(0px,18px,16px,1px) !important;", is necessary for the home button png to be displayed. Omitting it gives me a blank space (which is still functional in that clicking on the blank space sends me to the home page). There is no other image in the rectangle and the png in question is 19x17 px. I have tried fiddling with various padding settings, left, right, bottom, and top with no success.

I have no problem with the new tab png.

I have two buttons positioned at the extreme left side of the toolbar. From left to right, one is for new tab and the second is for the "home page". Both buttons are png files stored in a local directory:

The thing that I cannot understand is why it seems that this part, "-moz-image-region: rect(0px,18px,16px,1px) !important;", is necessary for the home button png to be displayed. Omitting it gives me a blank space (which is still functional in that clicking on the blank space sends me to the home page). There is no other image in the rectangle and the png in question is 19x17 px. I have tried fiddling with various padding settings, left, right, bottom, and top with no success.

I have no problem with the new tab png.

Try using this instead.

-moz-image-region: auto !important;

Thanks, Soapy, that works just perfectly :) .

(But what is special about the home button that is requiring specifying "-moz-image-region" at all? Why don't I need it for the new tab?)

All the toolbar buttons are already given a list-style-image and -moz-image-region. If you try to point it to a new list-style-image it will still use the old -moz-image-region value. Setting -moz-image-region: auto just tells it to use the whole image. Hope that makes sense.

All the toolbar buttons are already given a list-style-image and -moz-image-region. If you try to point it to a new list-style-image it will still use the old -moz-image-region value. Setting -moz-image-region: auto just tells it to use the whole image. Hope that makes sense.

Okay, thanks for the explanation :)

In other words, a standalone png (like the new tab one) wouldn't need the moz-image-region but the various pngs that are normally part of toolbar.png will. I hope I got that right!

Okay, thanks for the explanation :)

In other words, a standalone png (like the new tab one) wouldn't need the moz-image-region but the various pngs that are normally part of toolbar.png will. I hope I got that right!

https://developer.mozilla.org/en/CSS/-moz-image-region

http://browsers-dox.net/Que-Firefox.and.Thunderbird-/0789734583/ch15lev1sec3.html

Foxxyn8, thanks for those links. I had referred to the first one when I wanted to point to a specific button in the multibutton image. My confusion arose after I reduced the multibutton image to a single button image with Gimp. But all is well (for) now.

Hi is there a way to have the download window work like it does in this mockup.

44d20844e231f85e5364b11c1c7d4b7e4ebf0deb.png

My God that mockup is so beautiful. Someone needs to make it a reality.

Also I believe there were a couple of test builds that actually have that functionality. you click the download button and that download window pops up exactly like in the preview. It never made it into the RC though.

Follow-up requests!

Is there a way to style the buttons?

Can I get rid of the "opacity effect" on the rest of the page?

to style just those buttons start with this and add the selectors and properties you want to change:

tabmodalprompt button {
-moz-appearance: none !important;

get rid of overlay :

tabmodalprompt {
background: none !important;
}

Could someone please help me hide the "Bookmarks Toolbar w/separator" & "Unsorted Bookmarks w/separator" from the menu button > bookmarks menu.

I was using this code in FF3 but it no longer works:

/* Hide Bookmarks Toolbar Folder */

#bookmarksToolbarFolderMenu, #bookmarksToolbarFolderMenu+menuseparator {display: none !important;}

Could someone please help me hide the "Bookmarks Toolbar w/separator" & "Unsorted Bookmarks w/separator" from the menu button > bookmarks menu.

I was using this code in FF3 but it no longer works:

/* Hide Bookmarks Toolbar Folder */

#bookmarksToolbarFolderMenu, #bookmarksToolbarFolderMenu+menuseparator {display: none !important;}

This will hide those items in all 3 bookmark menus

#BMB_bookmarksToolbar,
#BMB_bookmarksToolbar + menuseparator,
#appmenu_bookmarksToolbar,
#appmenu_bookmarksToolbar + menuseparator,
#bookmarksToolbarFolderMenu,
#bookmarksToolbarFolderMenu + menuseparator,
#BMB_unsortedBookmarks,
#appmenu_unsortedBookmarks,
menuseparator.hide-if-empty-places-result {
        display: none !important;
}

Thx Foxxy! That was perfect.

Now that I think of it, I'd like to also remove "Bookmark This Page" since I only use the icon in the locationbar for that.

Thanks again!

#BMB_bookmarkThisPage,
#appmenu_bookmarkThisPage,
#menu_bookmarkThisPage {
        display: none !important;
}

Hey, I'm not very good with my CSS syntax, but is there a way to apply a style to all toolbars EXCEPT for the navigation bar? For example, #navigator-toolbox {} lets me adjust settings for all toolbars simultaneously, but I'd like to exclude the navigation bar from this set. Thank you.

Hey, I'm not very good with my CSS syntax, but is there a way to apply a style to all toolbars EXCEPT for the navigation bar? For example, #navigator-toolbox {} lets me adjust settings for all toolbars simultaneously, but I'd like to exclude the navigation bar from this set. Thank you.

#navigator-toolbox > toolbar:not(#nav-bar) {
}

to style just those buttons start with this and add the selectors and properties you want to change:

tabmodalprompt button {
-moz-appearance: none !important;

get rid of overlay :

tabmodalprompt {
background: none !important;
}

Thanks, foxxyn8!

I got the buttons sorted out. But a comment about the "background: none !important;" bit. On my net-banking site, when I use "background: none !important;" the modal dialog box (if that's the phrase) appears a bit transparent with the contents of the page underneath the box being somewhat visible. Changing it to "background: black !important;" wipes out the rest of the page until I close the box by hitting "OK" so I'm going with "background: black !important;".

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Weekend PC Game Deals: Resident Evil, Mafia, Like a Dragon, and more by Pulasthi Ariyasinghe Weekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place every week for your consumption. So kick back, relax, and hold on to your wallets. The Epic concluded its mystery giveaways this week with another double freebie promotion. As a part of this, you can now grab Rogue Waters and Songs of Conquest to keep. Songs of Conquest is a turn-based 4X strategy game where you'll be managing a kingdom, making tough decisions, and taking down enemy forces in tactical combat. Meanwhile, Rogue Waters is a roguelike where, as a pirate captain, you command a ship and crew through procedurally generated encounters. The double giveaway is coming to an end on June 11. On the same day, Warhammer 40K Speed Freeks will join in as the next freebie. Another Humble Choice offer was revealed earlier this week, bringing a refreshed eight-game selection to jump into. The June selection is Octopath Traveler 2, The Riftbreaker, Life is Strange: Double Exposure, INDIKA, Citizen Sleeper 2: Starward Vector, Construction Simulator, Hell Clock, and Overlooting to keep as Steam keys. The $15 bundle gives you all eight games from this month's Choice selection. The month-long promotion will come to an end on July 6, giving you ample time to decide on whether you want the titles. The Humble Store also brought in standard gaming collections this week. The IGN Live Bundle kicked things off with games like Control, Shadow Gambit: The Cursed Crew, Blair Witch, Rollerdrome, and The Last Campfire for $10. At the same time, the We Will Always be Here bundle carried in titles like Bad End Theater, Thirsty Suitors, Vampire Therapist, and Tavern Talk for $12. Next, the 2K Sports Champions Bundle comes touting games like NBA 2K26, PGA TOUR 2K25, OlliOlli World Rad Edition, and TopSpin 2K25 with a hefty $25 price tag. Lastly, the Redline Racing Bundle is touting games like Art of Rally, Descenders, Mudrunner, and Assetto Corsa Competizione with a $10 price tag. Big Deals The biggest promotions of this weekend come from franchise discounts for hits like Mafia, Like a Dragon, Resident Evil, and more. With all those and more, here's our hand-picked big deals list for the weekend: Mafia: The Old Country – $34.99 on Steam ARC Raiders – $31.99 on Steam Forza Horizon 5 – $29.99 on Steam Monster Hunter Wilds – $29.39 on Steam Satisfactory – $27.99 on Steam No Rest for the Wicked – $27.99 on Steam Satisfactory – $27.99 on Steam Esoteric Ebb – $19.99 on Steam Street Fighter 6 – $19.99 on Steam Cloudheim – $19.79 on Steam Pacific Drive – $17.99 on Steam Like a Dragon: Infinite Wealth – $17.49 on Steam ACE COMBAT 7: SKIES UNKNOWN – $14.99 on Steam Yakuza 0 Director's Cut – $14.99 on Steam Like a Dragon Gaiden: The Man Who Erased His Name – $14.99 on Steam Like a Dragon: Pirate Yakuza in Hawaii – $14.99 on Steam Grand Theft Auto V Enhanced – $14.99 on Steam Lost Judgment – $13.99 on Steam The Crew Motorfest – $13.99 on Steam Stronghold Crusader: Definitive Edition – $12.59 on Steam The Stanley Parable: Ultra Deluxe – $12.49 on Steam Blood West – $12.49 on Steam Yakuza Kiwami 2 – $11.99 on Steam Judgment – $11.99 on Steam Like a Dragon: Ishin! – $11.99 on Steam Alien: Isolation – $11.99 on Steam Goat Simulator: Remastered – $10.19 on Steam Resident Evil Village – $9.99 on Steam Yakuza 4 Remastered – $9.99 on Steam Yakuza 5 Remastered – $9.99 on Steam Yakuza 6: The Song of Life – $9.99 on Steam Caravan SandWitch – $9.99 on Steam Spyro Reignited Trilogy – $9.99 on Steam Assassin's Creed III Remastered – $9.99 on Steam The Expanse: A Telltale Series – $9.99 on Steam Sons Of The Forest – $8.99 on Steam Untitled Goose Game – $7.99 on Steam Resident Evil 2 – $7.99 on Steam Resident Evil 3 – $7.99 on Steam Resident Evil 7 Biohazard – $7.99 on Steam Yakuza: Like a Dragon – $7.99 on Steam Airborne Kingdom – $7.49 on Steam Assassin's Creed Syndicate – $7.49 on Steam The Wolf Among Us – $7.49 on Steam Amnesia: The Bunker – $7.49 on Steam Mini Motorways – $6.99 on Steam Age of History 3 – $6.99 on Steam Fabledom – $6.29 on Steam Trine 4: The Nightmare Prince – $5.99 on Steam Mafia: Definitive Edition – $5.99 on Steam Mafia II: Definitive Edition – $5.99 on Steam Resident Evil 6 – $4.99 on Steam Resident Evil 5 – $4.99 on Steam Resident Evil Revelations 2 – $4.99 on Steam Resident Evil 3 Nemesis (1999) – $4.99 on Steam Terra Memoria – $4.99 on Steam FOR HONOR – $4.49 on Steam Metro Exodus – $4.49 on Steam The Forest – $4.39 on Steam Mini Metro – $3.99 on Steam Songs of Conquest – $0 on Epic Store Rogue Waters – $0 on Epic Store Gravity Circuit – $0 on Steam DRM-free Specials The DRM-free store GOG has plenty of discounts to look over this weekend too. Here are some highlights: Trials of Mana - $14.99 on GOG SPORE Collection - $14.99 on GOG Stellaris - $12.49 on GOG FINAL FANTASY VIII - REMASTERED - $7.99 on GOG Final Fantasy IV (3D Remake) - $7.99 on GOG Final Fantasy III (3D Remake) - $7.99 on GOG FINAL FANTASY IX - $6.29 on GOG The Forgotten City - $6.25 on GOG Warlords Battlecry 3 - $5.99 on GOG Heroes of Might and Magic 3: Complete - $4.99 on GOG Heroes of Might and Magic 4: Complete - $4.99 on GOG SimCity 4 Deluxe Edition - $4.99 on GOG FINAL FANTASY VII - $4.79 on GOG Cultures 1+2 - $3.99 on GOG Outlast - $3.75 on GOG Dungeon Keeper 2 - $2.99 on GOG Theme Hospital - $2.99 on GOG Sid Meier's Alpha Centauri Planetary Pack - $2.99 on GOG Dungeon Keeper Gold - $2.99 on GOG Alba: A Wildlife Adventure - $2.55 on GOG Disciples 2 Gold - $1.99 on GOG Outcast - Second Contact - $1.49 on GOG Disciples: Sacred Lands Gold - $1.49 on GOG Port Royale 2 - $0.99 on GOG Keep in mind that availability and pricing for some deals could vary depending on the region. That's it for our pick of this weekend's PC game deals, and hopefully, some of you have enough self-restraint not to keep adding to your ever-growing backlogs. As always, there are an enormous number of other deals ready and waiting all over the interwebs, as well as on services you may already subscribe to if you comb through them, so keep your eyes open for those, and have a great weekend.
    • Exciting! It’s amazing how hearing Japanese can naturally enhance the perceived quality of any experience or product.
    • Your other comment in another article says otherwise, namely "Microsoft veteran wants to replace every single line of C/C++ code with Rust and AI".
    • Sued and... exonerated. Oh, they learned a lesson alright. They learned that anyone who uses the word "antiturst" in conjunction with "Microsoft" is an idiot, even if that person is Judge Thomas Penfield Jackson. That judge ruined the image of the US justice system. Microsoft Edge has a 5.14% market share. Also, Windows is no longer the #1 OS. None of this constitutes a monopoly. Google Chrome, however, has 70.25% share. Also, Google's Android is the #1 OS. Now that's closer to a monopoly.
  • Recent Achievements

    • Week One Done
      pestcontrol46 earned a badge
      Week One Done
    • One Month Later
      pestcontrol46 earned a badge
      One Month Later
    • Week One Done
      JKR earned a badge
      Week One Done
    • Rookie
      moog19 went up a rank
      Rookie
    • Mentor
      grik went up a rank
      Mentor
  • Popular Contributors

    1. 1
      +primortal
      490
    2. 2
      PsYcHoKiLLa
      271
    3. 3
      Skyfrog
      75
    4. 4
      Steven P.
      68
    5. 5
      FloatingFatMan
      64
  • Tell a friend

    Love Neowin? Tell a friend!