Click to See Complete Forum and Search --> : link buttons


qweqwe
02-18-2006, 10:33 AM
hi
help a newbie very new to web programming

i can't place link buttons abreast

i write these
<form method="link" action="http://localhost">
<input type="submit" value="localhost"></form>
<form method="link" action="http://www.google.com">
<input type="submit" value="google"></form>

and i got this: http://awci.gen.tr/qwe

but i want this: http://awci.gen.tr/qweqwe

but in that page i didnt close the first form with "</form>"... so every link button goes to the same page.



can you help...

The Little Guy
02-18-2006, 11:07 AM
Try this. The form part is needed to make the button go somewhere when the link is clicked.

Only use this if its part of a form:

<form action="sidefiles/thankyou.html">
<input src="submit.gif" name="text" type="image">
</form>


Otherwise use this:
<a href="google.com"><img border="0" src="xxx.jpg"></a>

qweqwe
02-18-2006, 12:24 PM
thanks for reply

i think i could not explain well

i make link buttons by writing:

<form method="link" action="http://www.yahoo.com">
<input type="submit" value="yahoo"></form>


when i write this code twice or more, the link buttons are placed one under the other. As in this page http://awci.gen.tr/qwe

but i want more than one link buttons to place next to each other on top of the page

NogDog
02-18-2006, 12:30 PM
<div>
<form method="link" action="http://localhost" style="display: inline">
<input type="submit" value="localhost"></form>
<form method="link" action="http://www.google.com" style="display: inline">
<input type="submit" value="google"></form>
</div>

qweqwe
02-18-2006, 01:19 PM
thanks

and how to place link buttons one under the other but without any blanks between them?


by the way
this doesnt make the text blink
<p>Schrödinger's cat is <span style="text-decoration: blink">not</span> dead.</p>

or am i missing something?

NogDog
02-18-2006, 02:48 PM
To minimize space, you'll probably want to use a style block or external stylesheet to set the margins and padding (as opposed to long style attributes in your HTML tags).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<title>Link Buttons</title>
<style type="text/css">
#links form {
margin: 0;
padding: 0;
}
#links input {
width: 8em; // adjust this value to desired width
margin: 0;
}
</style>
</head>
<body>
<div id="links">
<form method="link" action="http://localhost">
<input type="submit" value="localhost"></form>
<form method="link" action="http://www.google.com">
<input type="submit" value="google"></form>
</div>
</body>
</html>

As far as blinking goes, not all browsers support it (thankfully!).

qweqwe
02-18-2006, 03:20 PM
thanks again