Solved

Button Color

Posted on 2004-08-29
3
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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…

734 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