473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Decrease the Spacing between a textbox & button next to each other

200 100+
Hi,

I have a textbox and a button next to each other but i would like to decrease the space between them - so that they like part of one another

Expand|Select|Wrap|Line Numbers
  1.   <input type="text">
  2.   <input type="button">
  3.  
Is there a way of playing with spacing between the two?

Please Assist!
Oct 21 '09 #1

✓ answered by Dormilich

does that result in the HTML code given in the 1st post? then you either need to get rid of the whitespace (presumably \n\t) or fiddle with the margin property.

7 8996
Dormilich
8,658 Expert Mod 8TB
how do I have to imagine that? usually (if you have reset any (if there are any) default values for margin, padding, etc. and you don’t have whitespace between the tags) they are next to each other.
Oct 21 '09 #2
ismailc
200 100+
There is nothing between them and right next to each other,

i'm trying to simulate the look of the type="file" browse button where the button is nicly spaced between the textbox.

And now i this button and want to align them nicley - please assist!
Oct 21 '09 #3
Dormilich
8,658 Expert Mod 8TB
I see no difference.
Attached Images
File Type: jpg buttons.jpg (14.2 KB, 841 views)
Oct 21 '09 #4
ismailc
200 100+
Thanks i see there is no space but mine there is
i'm using xslt which has asp controls.
Expand|Select|Wrap|Line Numbers
  1. <xsl:element name="asp:TextBox">
  2. <xsl:element name="asp:Button">
  3.  
Thanks for helping
Oct 21 '09 #5
Dormilich
8,658 Expert Mod 8TB
does that result in the HTML code given in the 1st post? then you either need to get rid of the whitespace (presumably \n\t) or fiddle with the margin property.
Oct 21 '09 #6
ismailc
200 100+
Thank You for helping this worked :)
Expand|Select|Wrap|Line Numbers
  1. margin-right: -5px;
  2.  

Thank You
Oct 21 '09 #7
Dormilich
8,658 Expert Mod 8TB
@ismailc
that’s about one condensed whitespace character (space) width…
Oct 21 '09 #8

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

Similar topics

2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
3
by: Henry | last post by:
Hi. I've also posted this at another discussion board and here is the original question. ------------------------- "I have this problem and I don't know what I can do. First of all, I have a...
2
by: tshad | last post by:
I have a Datalist that will display 4 columns of data. I am not using a table format just labels to display a radio button and label for the radio button. Is there a way to set a size for the...
1
by: VB Programmer | last post by:
With HTML, how do I get the value of a textbox in an ItemTemplate column within a datagrid? Simple shopping cart. For each row: 1 column is a textbox where they can enter the quantity. 1...
12
by: Peter | last post by:
I'm looking to create multiple textboxs that change to a light blue on focus. What is the most efficient way to do this? -Peter
2
by: simon | last post by:
hello, new to vb.net, have a few questions about DataGrid. I have a dataGrid that is working pulling a dataset back from a stored proc and binding to the datagrid for display the datagrid's...
6
by: John Smith | last post by:
I have my <asp:TextBox> inside one of DataGrid's columns. I haven't set AutoPostBack=True. When I hit the ENTER button, my page "refreshes" (I belive that PostBack was performed - however not...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: Chris | last post by:
Hey, I created a usercontrol with a few textboxes arranged next to each other, kind of like a grid. But when I put the control on my form, there's a gap between all the textboxes! I set all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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...

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.