473,704 Members | 5,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to put blank spaces between buttons?

55 New Member
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?

Expand|Select|Wrap|Line Numbers
  1. <input type="button" id=""  value=" " onclick="">
  2. <input type="button" id=""  value=" " onclick="">
Ta.

Divina
Aug 23 '07 #1
9 100458
drhowarddrfine
7,435 Recognized Expert Expert
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:
Expand|Select|Wrap|Line Numbers
  1. <input type="button" id=""  value=" " onclick="" style="margin-right: 30px">
Aug 23 '07 #2
divina11
55 New Member
...and how about if I only have one button and I wanted that Tabbed in?

Ta.
Aug 23 '07 #3
pimperiale
2 New Member
Expand|Select|Wrap|Line Numbers
  1. style="margin-left:30px;"
Aug 24 '07 #4
gosai jahnvi
22 New Member
you can use margin

see the below code:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Page Title</title>
  5. </head>
  6. <body>
  7. <input type="button" id="" value="reset" onclick=""  style="margin-right: 30px">
  8. <input type="button" id="" value=" submit" onclick="" "> 
  9. </body>
  10. </html>
Apr 4 '19 #5
AjayGohil
83 New Member
Hello,You can use &nbps; in HTML and also you can use margin property of CSS in style tag.
Below code for &nbps;

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Page Title</title>
  5. </head>
  6. <body>
  7. <input type="button" id="" value="reset" onclick="">&nbsp;
  8. <input type="button" id="" value=" submit" onclick="" ">
  9. </body>
  10. </html>
Below code for margin property
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Page Title</title>
  5. </head>
  6. <body>
  7. <input type="button" id="" value="reset" onclick="" >
  8. <input type="button" id="" value=" submit" onclick="" style="margin-left:20px;">
  9. </body>
  10. </html>
  11.  
Jan 20 '20 #6
gits
5,390 Recognized Expert Moderator Expert
using the 'nonbreakingspa ce' = &nbsp is the worst solution to use. Layout should always be done by css - thats what it is for.
Jan 20 '20 #7
Ishan Shah
47 New Member
Hello! You can use margin to give the space between to buttons and you can also use the margin-left to the button for the same.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <title>Title</title>
  9.     <style>
  10.         .btnSubmit {
  11.             margin: 25px;
  12.         }
  13.  
  14.         .btnCancel {
  15.             margin: 25px;
  16.         }
  17.     </style>
  18. </head>
  19. <body>
  20.     <input class="btnSubmit" type="button" name="btnSubmit" value="Submit" />
  21.     <input class="btnCancel" type="button" name="btnCancel" value="Cancel" />
  22. </body>
  23. </html>
Jan 29 '20 #8
Redmillion
1 New Member
If you want to blank space so you should to use this &nbsp;
Jan 29 '20 #9
gits
5,390 Recognized Expert Moderator Expert
If you want to blank space so you should to use this &nbsp;
in post #7 i did touch on explaining why that is a very bad, if not the worst, solution.
Jan 29 '20 #10

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

Similar topics

9
6691
by: Jean-Marc Molina | last post by:
Hello, I can't find a way to execute a Windows application, whose directory path contains blank spaces, from a PHP script. I also wonder if the problem happens under Linux and other OS. Working dir : "C:\test copy" "copy.php" PHP script : <?php
1
4075
by: Danny | last post by:
Given this: "*" the pattern to remove the htnl code between brackets, how can I remove a series of spaces and just make one space. like here is a series of blank spaces thanks
2
2705
by: Nimmy | last post by:
Hi, How can I print blank spaces with printf() I want something like printf("%6d %2d", lcVar1, lcVarb); Printout should be: 123123 34 12 spaces in between 123123 and 34 and 15 spaces at the end again,
1
2140
by: BethanyBez | last post by:
Is there any way when doing a merge with an Access Query and a columned Word doc that I can avoid blank spaces where the field is blank? I am creating a columned contact sheet with the contacts grouped by state and then position title. Some of the states do not have certain positions filled and this creates a big blank rather than jumping on to the next position. I heard that if I saved my query as a table after filtering out Null values...
3
3773
by: ShaeMills via AccessMonster.com | last post by:
In my table I imported from .txt, one of my columns has blank spaces. The column is as follows, how do I eliminate the blank spaces in between the second and third, and fifth and sixth digits? 12 345 6789 78 241 5869 04 258 3695 14 254 1136 00 045 0285
1
1452
by: abhilash12 | last post by:
validating blank spaces. The input box should accept the value - for eg "JOHN SMITH" but it should not allow two blank spaces.
1
3320
by: maryanncanor | last post by:
Hi everyone, My problem is whenever I export a report to a textfile. The output textfile have blank spaces. Here is my query: SELECT ( & '|' & & '|' & ......................and so on .........................AS EXPR1 FROM ;
1
1758
KeredDrahcir
by: KeredDrahcir | last post by:
I have some values in an array and I need to remove the blank spaces before them. I've used array_walk($context_array, 'trim_value');To trim the spaces using the function: function trim_value(&$value) { $value = trim($value, "\xC2\xA0"); } This seems to have no effect. I need to convert my values into an array of single characters. I don't have PHP 5 so I've used a function to do the same job as str_split.
9
9959
by: madhuriks | last post by:
hi, i tried to delete an element in xml..for that i used servlet coding...it is getting deleted but blank spaces are remaining i dont want that blank spaces..can any one do me needfull..here is my code.. its urgent private void delNode(java.io.File file, Document parent, String filtervalue) throws Exception { NodeList nodeList = parent.getElementsByTagName("PACK_NAME");
2
2187
by: SwapnilD | last post by:
I'm implementing a feature which reads comma separated txt file from server(one line at a time). Format of file is fixed, There are 3 columns on each row. After reading the row from file I insert it in a database table. But first value of each row aoutomatically appends two blank spaces, even if there are no blank spaces at the begining of each row. I tried to use "TRIM/LTRIM/Replace" to remove blank spece from the first value of...
0
8684
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9134
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9025
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8975
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4438
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4699
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.