userstyle for url text slightly upwards
Moderator: trava90
Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
userstyle for url text slightly upwards
Does anyone have a userstyle to slightly move url text up ?
-
- Pale Moon guru
- Posts: 37773
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: userstyle for url text slightly upwards
You should just be able to do that using userContent.css
e.g.:
e.g.:
Code: Select all
A {
transform: translateY(-3px);
}
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
thanks but i need a userstyle to use in stylem, so i can have a quick access to my scripts.
Last edited by xlolitadabananax on 2025-04-12, 20:10, edited 1 time in total.
-
- Pale Moon guru
- Posts: 37773
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: userstyle for url text slightly upwards
I can't help you with a stylem script as I never looked into the format needed for that.
Maybe someone else can help.
Maybe someone else can help.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
i meant userstyle sorry.
examples:
.urlbar-input-box, .ac-title, .ac-url-text {margin-left: 5px !important;}
this moves text in the url field to the right..
examples:
.urlbar-input-box, .ac-title, .ac-url-text {margin-left: 5px !important;}
this moves text in the url field to the right..
-
- Pale Moon guru
- Posts: 37773
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: userstyle for url text slightly upwards
only on pages where those fields have the named CSS classes.
The code I quoted above will change all A type elements (all anchors and links) moving the text the given number of pixels up.
So if your example works then the code above should work as well in your userstyle.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Keeps coming back
- Posts: 957
- Joined: 2020-11-03, 06:47
- Location: Philippines
Re: userstyle for url text slightly upwards
If it's for all sites, you can simply paste Moonchild's CSS in as a blank style when creating a new user style in Stylem from the add-on button, it should become a global style that way.xlolitadabananax wrote: ↑2025-04-12, 19:34thanks but i need a userstyle to use in stylem, so i can have a quick access to my scripts.

"Destroying things, smartly!" - IJN Samidare, probably
Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109
XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.
-
- Board Warrior
- Posts: 1108
- Joined: 2021-01-26, 11:18
Re: userstyle for url text slightly upwards
Didn't anyone guess that the question was about the browser URL bar?
This should work:
And don't forget the line at the beginning that specifies that the style applies to the browser itself.

This should work:
Code: Select all
.urlbar-input-box { margin-bottom: 3px !important; }
Code: Select all
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
@moonchild & @jobbautista9
your code doesn't work as a userstyle in stylem.
& @kris_88
you'r language is a known userstyle language but that code doesn't move the urlbar text up..
i tried 2xp & 8xp, and nothing changes, & at 9xp or 10 & above, a white space covers the url text, so that code isn't the right one to move text up in the urlbar..
your code doesn't work as a userstyle in stylem.
& @kris_88
you'r language is a known userstyle language but that code doesn't move the urlbar text up..
i tried 2xp & 8xp, and nothing changes, & at 9xp or 10 & above, a white space covers the url text, so that code isn't the right one to move text up in the urlbar..
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
I retried your code kris, & it seems to work but partly, so it's not a definitive solution.
i'll explain..
your code seems to partly work for normal urls..
this one:
.urlbar-input-box, .ac-title, .ac-url-text {margin-bottom: 8px !important;}
so playing with px moves url up or down, but ... .
what i need to move actually is what i see with an extension
(navigation bar enhancer 1.3.4) & your given code only affects it
by instoring a blank image or transparancy over the extension's given text.
that's why i need a userstyle that can move the text given by the extension.
i'll explain..
your code seems to partly work for normal urls..
this one:
.urlbar-input-box, .ac-title, .ac-url-text {margin-bottom: 8px !important;}
so playing with px moves url up or down, but ... .
what i need to move actually is what i see with an extension
(navigation bar enhancer 1.3.4) & your given code only affects it
by instoring a blank image or transparancy over the extension's given text.
that's why i need a userstyle that can move the text given by the extension.
Last edited by xlolitadabananax on 2025-04-13, 05:19, edited 1 time in total.
-
- Board Warrior
- Posts: 1108
- Joined: 2021-01-26, 11:18
Re: userstyle for url text slightly upwards
It works for me.xlolitadabananax wrote: ↑2025-04-13, 04:56so that code isn't the right one to move text up in the urlbar..
Or explain more precisely what you want...
You do not have the required permissions to view the files attached to this post.
-
- Board Warrior
- Posts: 1108
- Joined: 2021-01-26, 11:18
Re: userstyle for url text slightly upwards
I honestly don't want to experiment with additional extensions...
Try a slightly modified method suggested by Moonchild:
Code: Select all
.urlbar-input-box { transform: translateY(-3px); }
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
wow Kris, ur a master, it perfectly works now ))
one last tweak: do you have a userstyle code to turn bookmarks text type into:
Times New Roman
?
one last tweak: do you have a userstyle code to turn bookmarks text type into:
Times New Roman
?
-
- Board Warrior
- Posts: 1108
- Joined: 2021-01-26, 11:18
Re: userstyle for url text slightly upwards
Do you mean the buttons in the bookmarks toolbar?xlolitadabananax wrote: ↑2025-04-13, 05:36one last tweak: do you have a userstyle code to turn bookmarks text type into:
Times New Roman
?
Code: Select all
toolbarbutton.bookmark-item { font-family: "Times New Roman", Times, serif !important; }
-
- Apollo supporter
- Posts: 48
- Joined: 2022-12-03, 13:18
Re: userstyle for url text slightly upwards
Thanks a bunch Kris ))
-
- Board Warrior
- Posts: 1108
- Joined: 2021-01-26, 11:18
Re: userstyle for url text slightly upwards
Don't mention it...
-
- Pale Moon guru
- Posts: 37773
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: userstyle for url text slightly upwards
No, because OP didn't specify it was for the browser UI. Just mentioned "URL text"
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite