Real basic HTML question from my HTA

Author Message
DeepSeed

  • Total Posts : 61
  • Scores: 0
  • Reward points : 0
  • Joined: 1/15/2009
  • Status: offline
Real basic HTML question from my HTA Wednesday, January 26, 2011 12:24 PM (permalink)
0
Why does this generate a line feed after the button and how to I make it go away so I can have buttons next to each other?
 
<a href="#" onclick="VBScript:Connect" class="cleanbutton" name="Start"><span class="connect">Connect</span></a>
 
#1
    X BiLe

    • Total Posts : 45
    • Scores: 2
    • Reward points : 0
    • Joined: 6/18/2008
    • Location: Des Moines, IA
    • Status: offline
    Re:Real basic HTML question from my HTA Saturday, February 26, 2011 7:12 AM (permalink)
    0
    i would suspect it is due to the span element. 
     
    either you can set it directly to a spot with css or you can use a diff element like a div, maybe even stick it into a div container that will allow the 2 spans to be side by side (by limiting the div height)
    - X BiLe
     
    #2
      TNO

      • Total Posts : 2094
      • Scores: 36
      • Reward points : 0
      • Joined: 12/18/2004
      • Location: Earth
      • Status: offline
      Re:Real basic HTML question from my HTA Saturday, February 26, 2011 8:14 AM (permalink)
      0
      DeepSeed


      Why does this generate a line feed after the button and how to I make it go away so I can have buttons next to each other?

      <a href="#" onclick="VBScript:Connect" class="cleanbutton" name="Start"><span class="connect">Connect</span></a>


      Because the CSS class "cleanbutton" or the class "connect" probably has "display:block" in it.   Remove that declaration and they should stay together.

      PS: Its bad practice to put events on elements. See: http://www.visualbasicscript.com/fb.ashx?m=68460
      PSS: Why not simply use a <button>?
      To iterate is human, to recurse divine. -- L. Peter Deutsch
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9