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)
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>
|
|
|
|
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)
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)
|
|
|
|
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)
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
|
|
|
|