small question about buttons

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

small question about buttons

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: small question about buttons

Post 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
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

hmm

Post by Mythic Fr0st »

Dont know xhtml, and css im learning
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

Honestly Speaking I Didn't Understand Your Problem
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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;
}
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

hmm

Post 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?)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: hmm

Post 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 :)
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

Post 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:))
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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 :?
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

hmm

Post 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
Post Reply