Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

#urlbar { visibility: collapse !important; }

  • 2 (ردّان اثنان)
  • 1 has this problem
  • 12 views
  • آخر ردّ كتبه Yaron

more options

How do I set ‘#urlbar { visibility: collapse !important; }’ when ‘.searchbar-textbox[focused]’?

Thank you.

How do I set ‘#urlbar { visibility: collapse !important; }’ when ‘.searchbar-textbox[focused]’? Thank you.

All Replies (2)

more options

Hmmm, it seems you want to hide the urlbar when you click in the search box. Would this have the effect of allocating more space to the search box? I don't know how to do that with CSS alone. The two bars do not have a parent/child relationship and are not adjacent neighbors (the stop and reload buttons are in between). Perhaps someone with a more advanced understanding of CSS selectors can think of a way.

I see you posted this question on userstyles.org as well (Firefox Search Bar Tweaks - forum.userstyles.org). That might be a good place to get an answer because it attracts advanced tweakers.

Modified by jscher2000 - Support Volunteer

more options

You have a sharp eye, and your observations are correct. :)

Thank you.