By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,480 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,480 IT Pros & Developers. It's quick & easy.

How to put blank spaces between buttons?

P: 55
So, if you have two buttons side by side how do you create space between them? I've tried the 'SPACER' tag, however this did not work?

[HTML]<input type="button" id="" value=" " onclick="">
<input type="button" id="" value=" " onclick="">[/HTML]

Ta.

Divina
Aug 23 '07 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
I've tried the 'SPACER' tag, however this did not work?[/HTML]
There is no such thing as a 'spacer' tag.

Always use margin or padding for spacing. In CSS:
<input type="button" id="" value=" " onclick="" style="margin-right: 30px">
Aug 23 '07 #2

P: 55
...and how about if I only have one button and I wanted that Tabbed in?

Ta.
Aug 23 '07 #3

P: 2
style="margin-left:30px;"
Aug 24 '07 #4

P: 22
you can use margin

see the below code:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<input type="button" id="" value="reset" onclick="" style="margin-right: 30px">
<input type="button" id="" value=" submit" onclick="" ">
</body>
</html>
Apr 4 '19 #5

Post your reply

Sign in to post your reply or Sign up for a free account.