473,657 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Special Form Input And submit Setting in CSS

1 New Member
hello
this is my first post in this forum...
I am just a BEGINNER.. Not much Understanding..
I have a website which consist a BOX and a Submit Button
I would like to make a custom setting to it...
Also would like to separte it in a EXTERNAL CSS.. i already have other codes but want to incorporate this.. Really confused with the CLASS, ID, NAME which one to choose for css.. Kindly provide the code...
[HTML]<div id="thebox" class="style2">
<form action="index.p hp" class="chooser_ form" name="chooser_f orm" id="chooser_for m" method="post" onsubmit="retur n false;">
<input id="url" name="url" class="chooser_ input_url_2" size="10" type="text" style="border: 1px #000080 solid; background: #C0C0C0; width: 447px; height: 25px; font-family: Arial, Helvetica, sans-serif; font-size: large; font-style: normal; font-variant: normal; font-weight: bolder; line-height: normal;" onfocus="this.s elect()">
<input id="enter" type="image" src="img/example.gif" class="chooser_ input_submit" align="absmiddl e" title="example" onclick="exampl efunc();return false;">
</form>
</div>[/HTML]

The above code works perfectly But the problem is i am try to redesign my site...The only thing left is this code.. I already Designed it (i wanted to make it more attractive but do not know much abt decorating FORM INPUT SUBMIT system)...

Also what abt the validation error i get this:
Expand|Select|Wrap|Line Numbers
  1. …" class="chooser_input_submit" align="absmiddle" title=
There is no attribute "ALIGN".
Is ABSMIDDLE is not allowed ? If not allowed than which one to use ?

Also how can i add The UP DOWN PRESS button system ?
It doesn't work with images ! i really forgotten how to do it ? any way with css ?

Few example of custom input boxes with submit button (it is from some proxy sites)
Expand|Select|Wrap|Line Numbers
  1. http://shareimagesonline.com/viewer.php?file=mpaufdvst20xtikk6b5k.jpg
Expand|Select|Wrap|Line Numbers
  1. http://shareimagesonline.com/viewer.php?file=arl84s9yj7nbbfpykoxn.jpg
Feb 6 '08 #1
2 2240
Death Slaught
1,137 Top Contributor
They look like they used images to make it look that way. I wish I could help you more but I can't at the moment. I'm that someone will though :).

^_^ Thanks, Death
Feb 6 '08 #2
tijivarghese
3 New Member
hello
this is my first post in this forum...
I am just a BEGINNER.. Not much Understanding..
I have a website which consist a BOX and a Submit Button
I would like to make a custom setting to it...
Also would like to separte it in a EXTERNAL CSS.. i already have other codes but want to incorporate this.. Really confused with the CLASS, ID, NAME which one to choose for css.. Kindly provide the code...
[HTML]<div id="thebox" class="style2">
<form action="index.p hp" class="chooser_ form" name="chooser_f orm" id="chooser_for m" method="post" onsubmit="retur n false;">
<input id="url" name="url" class="chooser_ input_url_2" size="10" type="text" style="border: 1px #000080 solid; background: #C0C0C0; width: 447px; height: 25px; font-family: Arial, Helvetica, sans-serif; font-size: large; font-style: normal; font-variant: normal; font-weight: bolder; line-height: normal;" onfocus="this.s elect()">
<input id="enter" type="image" src="img/example.gif" class="chooser_ input_submit" align="absmiddl e" title="example" onclick="exampl efunc();return false;">
</form>
</div>[/HTML]

The above code works perfectly But the problem is i am try to redesign my site...The only thing left is this code.. I already Designed it (i wanted to make it more attractive but do not know much abt decorating FORM INPUT SUBMIT system)...

Also what abt the validation error i get this:
Expand|Select|Wrap|Line Numbers
  1. …" class="chooser_input_submit" align="absmiddle" title=
There is no attribute "ALIGN".
Is ABSMIDDLE is not allowed ? If not allowed than which one to use ?

Also how can i add The UP DOWN PRESS button system ?
It doesn't work with images ! i really forgotten how to do it ? any way with css ?

Few example of custom input boxes with submit button (it is from some proxy sites)
Expand|Select|Wrap|Line Numbers
  1. http://shareimagesonline.com/viewer.php?file=mpaufdvst20xtikk6b5k.jpg
Expand|Select|Wrap|Line Numbers
  1. http://shareimagesonline.com/viewer.php?file=arl84s9yj7nbbfpykoxn.jpg

Hi buddy!
The very 1st thing I would like to mention is that align="absmiddl e" is NOT a standard html tag.. the attributes for align can be 'Center' , 'justify' or 'right'..
Now, to have the Up-Down Press button system you will have to use a button instead of image..Instead of using the image as button, use it as the background image of the button.. For example here is a class what i wrote:
Expand|Select|Wrap|Line Numbers
  1. .orangeButton    {
  2. BACKGROUND-IMAGE: url('images/button_bg.gif');
  3. background-repeat: no-repeat;
  4. COLOR: white;
  5. FONT-FAMILY: Arial, Verdana, Tahoma;
  6. FONT-SIZE: 15pt;
  7. TEXT-ALIGN: center;
  8. border:0px;
  9. width:139px;
  10. height:44px;
  11. cursor: pointer;
  12. }
In the above code the width and height have been fixed on the basis of the image's width and height. Now all you have to do is call this class in the input tag.
Coming to the other part of the problem, can you please be more clear on what exactly do u want??
Feb 7 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3680
by: Bruce Duncan | last post by:
I can't seem to figure our why this doesn't work. I don't get any errors, it just doesn't submit. Can anyone shed some light. <?PHP $var1 = "http://localhost/php/index.php"; $varx = "bruce"; echo "<form name='formx3' method='post'><input type='text'><input type=button value=go onclick=document.formx3.action='".$var1."'; document.formx3.submit();></form>"; ?> I got it working using the following...but I want to know why the above code...
3
4222
by: Hodad | last post by:
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>
11
10187
by: charlie_M | last post by:
I have a number of applications where I want to have many onclick='submit()' attached to different 'elements' on a single form ..... which sends the form to a CGI "script" which does all the validation. The problem is.. how can I code the submit()s so the CGI's form collection knows which 'element' was clicked?? I am NOT permitted to use <input type=image...> or any "button" that browsers produce for forms.... the reasons are all client...
2
2929
by: Mike Button | last post by:
Hello all, I am really really desperate on what I should do, and I am asking for help from anyone in this newsgroup, here's the situation: I am creating a form that is being run on a server where there is no scripts allowed running (the software is from Opentext called Livelink)- therefore I need javascript to do the tasks listed below: 1. validate the form - this has been completed 2. pop up another window that will go ahead and...
5
8438
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform' action='ins_op.php' method='post'>"; lots of form stuff
3
6071
by: awebguynow | last post by:
in other words, Can I make client side mod's before I submit a form and Post ? I guess its just a matter of cycling through the form elements and setting value to null (or empty string) for those that did not Change ( using onChange ).
0
2252
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional assistance. I say additional because I've already had help which is greatly appreciated. I do try to take the time and understand the provided script in hopes on not having to trouble others on those. But here it goes...
2
2477
by: drakorq | last post by:
I got stuck on this, and it would be really great if anybody could point me in the right direction. I was trying setting up these scripts following instructions in a book from 2003, so I thought maybe some of the code might be outdated. Basically this is what Is supposed to happen: 1.- Display a form, enter details into fields and click submit. 2.- After having clicked on submit you're redirected to another page that will display the...
6
3587
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing has been happening. It has only been searching when I click the Search button. 2) Neither of the Response.Write's have been displaying any text. Here's the code:
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.