Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Button Color

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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.
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…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

916 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