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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

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

    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

    Code:
      <input type="text">
      <input type="button">
    Is there a way of playing with spacing between the two?

    Please Assist!
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • ismailc
      New Member
      • Sep 2006
      • 200

      #3
      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!

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        I see no difference.
        Attached Files

        Comment

        • ismailc
          New Member
          • Sep 2006
          • 200

          #5
          Thanks i see there is no space but mine there is
          i'm using xslt which has asp controls.
          Code:
          <xsl:element name="asp:TextBox">
          <xsl:element name="asp:Button">
          Thanks for helping

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            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.

            Comment

            • ismailc
              New Member
              • Sep 2006
              • 200

              #7
              Thank You for helping this worked :)
              Code:
              margin-right: -5px;

              Thank You

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                Originally posted by ismailc
                Code:
                margin-right: -5px;
                that’s about one condensed whitespace character (space) width…

                Comment

                Working...