small question about buttons
Moderator: General Moderators
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
small question about buttons
<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
<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
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: small question about buttons
Mythic Fr0st wrote:..only few tables and <font color>'s..
Seriously though, use xhtml and CSS!
Cheers,
Kieran
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
hmm
Dont know xhtml, and css im learning
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
and then in your css file, do this:
Code: Select all
<input type="text" class="text_element">Code: Select all
.text_element{
margin: 0;
}-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
hmm
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?)
so I left it,
but i'll try that class thing
(put the css thing in the head? yes?)
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: hmm
Normally, I'd say try it, but since it is x-mas eve, the answer is yesMythic 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?)
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
does that mean like thisbut you could try adding a class name to each input element
<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>
so make a txt file add the css to it (without html or anything else but the css) and name it.css?Normally, I'd say try it
then include it in the head of my files?
(please tell me how if so:))
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
hmm
No:/ it didnt work, argh, maybe once I fix my css problem I'll just use my css to position everything exactly