473,507 Members | 5,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make "this" form look like "that" button?


I would like to adapt, as much as possible, the appearance and color red
of the
font in this button:

<P><CENTER><BUTTON VALUE="SUBMIT"><A
HREF="http://www.familytreedna.com/surname_join.asp?code=Q17978"
STYLE="TEXT-DECORATION: NONE;">
<FONT COLOR="RED" FACE="COPPERPLATE GOTHIC BOLD">Right
Here</FONT></A></BUTTON></CENTER></P>

to this form:

<form
action="http://www.familytreedna.com/surname_join.asp?code=Q17978"><div
align="center"><center>
<p><input type="submit" value="Right Here"></p></center></div></form>

What would I add to the second to accomplish this? I know that the above
are no doubt slap-dash looking,
but I know little about html, etc.

Thanks very much.

Dale Bricker
Jul 20 '05 #1
3 4214
Hodad <zi*@nospam.com> wrote:
I would like to adapt, as much as possible, the appearance and
color red of the
font in this button:

<P><CENTER><BUTTON VALUE="SUBMIT"><A
HREF="http://www.familytreedna.com/surname_join.asp?code=Q17978"
STYLE="TEXT-DECORATION: NONE;">
<FONT COLOR="RED" FACE="COPPERPLATE GOTHIC BOLD">Right
Here</FONT></A></BUTTON></CENTER></P>

to this form:

<form
action="http://www.familytreedna.com/surname_join.asp?code=Q17978"><
div align="center"><center>
<p><input type="submit" value="Right
Here"></p></center></div></form>


It seems that you are trying to convert the use of a <button> element
to the use of <input type="submit">, which is a good idea, since the
latter is better supported by browsers.

When using <input>, you don't set visual properties in HTML but use
CSS. At the same time, you might move all the presentational issues
into CSS. I have also fixed the form to use the post method (since the
effect of submitting a form is apparently the act of joining something,
not just information retrieval) and to contain a meaningful text in the
button:

<form method="post"
action="http://www.familytreedna.com/surname_join.asp?code=Q17978">
<div><input type="submit" value="Join the project"></div></form>

And you could style it by putting the following into the <head> part of
your document (assuming that this is the only <input> field - if there
are several of them, a little more is needed):

<style type="text/css">
form div { text-align: center; }
input { color: red;
background: #ccc;
font-family: "Copperplate Gothic Bold"; }
</style>

The color #ccc is close to the default gray color of buttons in several
browsers. Personally I would use something lighter.

Beware that Copperplate Gothic Bold is not very widely available.
The page
http://www.codestyle.org/css/font-fa...sResults.shtml
estimates that 44 % of Windows systems have it, and on other systems
the coverage is even smaller. Maybe selecting a list of some more
common fonts for font-family and setting font-variant: small-caps
would give roughly the appearance you're looking for.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
On Thu, 25 Dec 2003 14:39:36 +0000, Jukka K. Korpela wrote:
<form method="post"
action="http://www.familytreedna.com/surname_join.asp?code=Q17978"> ^^^^^^^^^^^^ <div><input type="submit" value="Join the project"></div></form>


Shirley you meant to put that in a hidden input? If not, why not?

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #3
Owen Jacobson <an******@lionsanctuary.net> wrote:
On Thu, 25 Dec 2003 14:39:36 +0000, Jukka K. Korpela wrote:
<form method="post"
action="http://www.familytreedna.com/surname_join.asp?code=Q17978">
^^^^^^^^^^^^ <div><input type="submit" value="Join the
project"></div></form>


Shirley you meant to put that in a hidden input? If not, why not?


I did, but a cow flew by. Or maybe it was a delayed reindeer.

Naturally I meant

<form method="post"
action="http://www.familytreedna.com/surname_join.asp">
<div><input type="hidden" name="code" value="Q17978">
<input type="submit" value="Join the project"></div></form>

But on the other hand, although a query part is not correct in an
action attribute when method="get" (the default) is used, wouldn't it
be acceptable to have it when method="post". After all, the reason for
not using it is that when method="get", then, by HTML specifications, a
question mark "?" will be appended to the URL (to be followed by form
data fields, if any), making it violate URL specifications since "?" is
a reserved character in the query part. For method="post", that
shouldn't happen.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
3142
by: Christopher Benson-Manica | last post by:
Is the following code legal, moral, and advisable? #include <iostream> class A { private: int a; public: A() : a(42) {}
6
1625
by: B Blue | last post by:
here's the situation: a produce dept at a grocery store needs to generate a weekly sheet for ordering. This is how it looks: 5 columns across with the following headings: Product Description,...
1
1961
by: news.wanadoo.nl | last post by:
Hi, I have found whit google this form in this group. But i'n not good in javascript :(. I try and error normal but i only error now :P Whit i now want to now how can i get access to the vars...
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
1382
by: loga123 | last post by:
Hi All, I am new to .net. I am creating a text box in a "button1" "click event" dynamically based on user input. Name of the text box and ID of the text box contro are set dynamically in the...
2
4713
by: Dustin | last post by:
I found a solution to my problem in the topic called "OOP (and the XMLHttpRequest)". You may find it useful to reference to see what I have done so far. I am making a small AJAX helper object...
4
1666
by: marek zegarek | last post by:
Hello! I have strange and simple problem.... I am starting developer. I need to create webform, that will insert my data into SQL 2005 database. My idea is to make something like MS Access...
7
2411
by: Brave | last post by:
I am hoping for a code example of how to do this, and hopefully it will help me to see an easy way to code what seems to be a huge monster. I need to create a form that has two pulldown menues...
14
75437
by: white lightning | last post by:
How to have <select onchange="this.form.submit()"and also a Submit button on one form? I have something like this: <form action="<?php $_SERVER; ?>" method="post"...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.