LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-07-2003, 09:15 AM   #1
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
Mozilla customization: userContent.css


I'm trying to use userContent.css to set the font for buttons & text input on web pages, for example the "Search" button on the Google search page and the box where you type in the search string.

I've tried the following and several other attempts but nothing works:

button {
font-family: sans-serif !important
}

buttons {
font-family: sans-serif !important
}

input[type="button"] {
font-family: sans-serif !important
}

Does anyone know how to do this? I've been reading web-pages about usercontent & userchrome for quite a while and not found how to do this.
 
Old 11-02-2003, 06:13 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
I've done some customisation of buttons on webpages, but this is the only way I could get it to work:

Code the button something like:

<input type="button" class="buttonclass" name="mybutton" value="ClickMe" onclick="myfunction()" />

And then in the CSS:

input.buttonclass
{
font-family:sans-serif;
}


But if you're trying to customise the look and feel of buttons in mozilla you'll have to either make every input element - text boxes, radio buttons, checkboxes, buttons etc the same sans-serif font, because there's no way to change the class of the 'generic' button in mozilla that i'm aware of.

Hope this helps

David
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Customization rcallahan Linux - Newbie 5 01-27-2005 04:11 PM
Customization Jmcatch742 Linux - General 7 08-21-2004 09:55 PM
Logon Customization technochef Debian 3 08-11-2004 09:46 PM
CSS / HTML in Mozilla jpbarto Programming 4 04-26-2004 08:08 PM
Debain customization. Vipes Debian 3 01-26-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration