Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems with css and forms

Status
Not open for further replies.

DataSpy

Technical User
Nov 15, 2002
39
0
0
US
I'm trying to use css and forms together and for some reason when I click the submit button I'm not redirect. Heres the code from a basic page I'm working on.

Code:
<html>
<head>
</head>
<body>
<div>
<form action="test.php" method="POST">

<input type="text" class="default-style" name="edit"
style="position:absolute; top:128; left:290; width:200; height:23; padding:0;overflow:hidden">

<input type="button" class="default-style" name="button" value="Submit" style="position:absolute; top:326; left:339; width:100; height:24; padding:0; overflow:hidden">

</form>
</div>
</body>
</html>

Any help greatly appretiated, thanx in advance!!!
 
Try changing the input type to "submit" instead of "button" type.

Code:
<input type="[red]submit[/red]" class="default-style" name="button" value="Submit" style="position:absolute; top:326; left:339; width:100; height:24; padding:0; overflow:hidden">

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanx, sorry about the stupid mistake! :)
 
And add some units to your css values. How do you suppose the browser should know how big your button should be or where it should lie? The specified number of pixels, percents, inches, centimeters, points or something entirely different?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top