Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Button Color

Posted on 2004-08-29
3
Medium Priority
?
293 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

722 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