Page 1 of 1

small question about buttons

Posted: Sun Dec 24, 2006 12:59 am
by Mythic Fr0st
<form method="post" action="indexg.php">
<input type='hidden' name='attack' value='attk'>
<input type="submit" value="Attack">
</form>

say having that, if I have multiples of them in line, would it be normal for them to space themselves out quite a bit? or should they fit next together (the buttons)

E>G
fitting together
|||||||||||| Button 1
|||||||||||| Button 2

spaced out
|||||||||||| Button 1

|||||||||||| Button 2

because all my buttons are doing this O_O (spacing out alot) everyone, I have no 'alignment' tags, only few tables and <font color>'s

Re: small question about buttons

Posted: Sun Dec 24, 2006 2:40 am
by Kieran Huggins
Mythic Fr0st wrote:..only few tables and <font color>'s..
8O ewe... the 90's called, they want the font tag back. :P

Seriously though, use xhtml and CSS!

Cheers,
Kieran

hmm

Posted: Sun Dec 24, 2006 2:54 am
by Mythic Fr0st
Dont know xhtml, and css im learning

Posted: Sun Dec 24, 2006 12:52 pm
by neel_basu
Honestly Speaking I Didn't Understand Your Problem

Posted: Sun Dec 24, 2006 5:10 pm
by Luke
there's no problem with using HTML... I still do for a number of sites, but definately use css. I don't know if I fully understand what you're asking either, but you could try adding a class name to each input element

Code: Select all

<input type="text" class="text_element">
and then in your css file, do this:

Code: Select all

.text_element{
    margin: 0;
}

hmm

Posted: Sun Dec 24, 2006 9:08 pm
by Mythic Fr0st
Honestly I dont have a external style sheet, couldnt get it to work O_O

so I left it,

but i'll try that class thing

(put the css thing in the head? yes?)

Re: hmm

Posted: Sun Dec 24, 2006 9:19 pm
by John Cartwright
Mythic Fr0st wrote:Honestly I dont have a external style sheet, couldnt get it to work O_O

so I left it,

but i'll try that class thing

(put the css thing in the head? yes?)
Normally, I'd say try it, but since it is x-mas eve, the answer is yes :)

Posted: Sun Dec 24, 2006 9:31 pm
by Mythic Fr0st
but you could try adding a class name to each input element
does that mean like this

<input type="text" class="text_element">
<form method="post" action="indexg.php">
<input type='hidden' name='Nth1' value='Nth2'>
<input type="submit" value="North">
</form>

or

<form method="post" action="indexg.php">
<input type='hidden' name='Nth1' value='Nth2'>
<input type="submit" value="North" class="text_element">
</form>
Normally, I'd say try it
so make a txt file add the css to it (without html or anything else but the css) and name it.css?

then include it in the head of my files?

(please tell me how if so:))

Posted: Sun Dec 24, 2006 9:36 pm
by John Cartwright
apply the class to whichever elements you want the style applied to, although you should note in your example one if your inputs is outside the form tags.

This time I'm going to say try it. I'm not here to hold your hand every step of the way :?

hmm

Posted: Sun Dec 24, 2006 10:13 pm
by Mythic Fr0st
No:/ it didnt work, argh, maybe once I fix my css problem I'll just use my css to position everything exactly