Results 1 to 6 of 6

Thread: Trying to align button with textbox...

  1. #1
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trying to align button with textbox...

    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.
    Last edited by monkeyboy; 02-07-2006 at 06:20 PM.

  2. #2
    Join Date
    Oct 2005
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    do you mean because of the non-breaking spaces between the input and submit?
    Code:
    <input id="photos" type="password" size="10">
    
    &nbsp;&nbsp;
      <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...

  3. #3
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

  4. #4
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Aha! I do believe I've cracked it! 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.

    I'll be keeping an eye out here for other ideas though... P.

  5. #5
    Join Date
    Oct 2005
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Code:
    style="-/+#px"
    where the red -/+ is the negative or positive number of pixels away from where the button actually is

  6. #6
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Use this

    Put a style on your submit button itself by specifying a class then in that class use:

    .yourButtonClass {
    vertical-align: bottom;
    }

    Hope this helps.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •