View Full Version : Trying to align button with textbox...
monkeyboy
02-06-2006, 08:57 PM
Hello there.
I can't seem to align this submit button horizontally with the textbox:
http://www.chuffingmarvellous.com/photo/photos.htm
Can anyone help?
Cheers.
sleipner
02-07-2006, 04:54 PM
do you mean because of the non-breaking spaces between the input and submit?
<input id="photos" type="password" size="10">
<input type="image" value="submit" src="../images/go.gif" width="18" height="18" border="0" alt="go" name="image">if I understand your problem right, kill the nonbreaking spaces - thats the problem I see...
monkeyboy
02-07-2006, 05:41 PM
Hi there. Have taken the spaces out but the textbox and the button still don't seem to be level... button is always a bit higher for some reason...
monkeyboy
02-07-2006, 06:19 PM
Aha! I do believe I've cracked it (http://www.chuffingmarvellous.com/photo/photos.htm)! And all with a strategically placed table.
Actually, it still doesn't line up quite exactly, but it's close enough for me... as only a few of my friends will be looking at these particular photos, and I don't think they'll notice! I don't have the same problem with my page of nice photos (http://www.chuffingmarvellous.com/files/other/nicephotos.htm).
I'll be keeping an eye out here for other ideas though... P.
sleipner
02-08-2006, 02:13 AM
it wouldnt exactly be recommended, but if the button is only about 5 or 10 pixels away, I guess you could absolutely position the button with the style attribute on the button
style="-/+#px" where the red -/+ is the negative or positive number of pixels away from where the button actually is
markricard
12-03-2006, 02:51 PM
Put a style on your submit button itself by specifying a class then in that class use:
.yourButtonClass {
vertical-align: bottom;
}
Hope this helps.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.