Solved

Button Color

Posted on 2004-08-29
3
284 Views
Last Modified: 2010-04-06
What would be the proper coding to add color to a button and its text in a line like the following.

<input type=button value="MY WEBSITE and CAMERA 1" onClick="goToURL()">

BobH
0
Comment
Question by:BOBH
3 Comments
 
LVL 13

Expert Comment

by:StormyWaters
ID: 11925899
0
 
LVL 3

Accepted Solution

by:
Squew01 earned 125 total points
ID: 11926043
Use this code:

<style>
.button{
   color:'white';
   font-size:small;
   font-family:"Arial";
   font-weight:bold;
   background-color:#006699;
}
</style>

<input type=button value="MY WEBSITE and CAMERA 1" onClick="goToURL()" class="button">

/squew/
0
 

Author Comment

by:BOBH
ID: 11926469
Stormy waters :

        TNX for the urls. Very interesting and may keep in favorites

Squew01:

        Code works perfectly and will use it TNX

BobH
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now