Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #406392

    Hi,
    We would like to have 2 fields for a form + 1 button all in a single line like this: http://d.pr/i/1dUo6/40UuONln
    This is how the visual editor on WP shows, but when we go to the website the result is http://d.pr/i/13V9Y/2PHTxrSK
    How can we make it all in 1 line?

    #406551

    Hi sitesme!

    Thank you for using our theme.

    You can use the standard contact form (ALB or shortcode) and adjust the column width for each element.

    Did you try that?

    Cheers!
    Günter

    #407565

    Hi Gunter,

    I have no idea on how to do that.
    Could you please give me the ready-code based on my code below?

    #407566
    This reply has been marked as private.
    #407924

    Hi,
    Is there an update for this please?
    Thank you

    #408250

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    @media only screen and (min-width: 769px) {
    .page-id-25 input[type="text"], .page-id-25 select {
      width: 44%!important;
      float: left;
    }
    .page-id-25 select {
      margin-left: 2%!important;
      margin-right: 2%!important;
    }}

    Best regards,
    Yigit

    #408726

    Thank you Yigit,
    However, it is still not 100%: http://d.pr/i/5yzG/2r6CFMWO

    The .ae drop-down should also be very small compared with the text field.
    The domain label is not aligned any more and the button Go should be in the same line as the other two.

    Any other idea?
    Many thanks.

    #408734

    Hi!

    Thank you for coming back.

    There is a problem with the label. If you remove it, you can try the following and adjust the values of width:

    
    .page-id-25 input[type="text"] {
        float: left !important;
        width: 73% !important;
    }
    
    .page-id-25 select {
        float: left !important;
        width: 10% !important;
    }
    
    .page-id-25 select {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    

    The label has no tag, so there is no chance to adjust its position with CSS and it breaks everything.

    Best regards,
    Günter

    #408740

    Thank you Gunter,
    It is getting better now. I had to remove the label as it wouldn’t be adjusted properly.
    Is there a way to have the form centered and not aligned to the left?
    Thank you

    #408744

    Hey!

    Not really. The form container is 100% width, and the elements are not placed in a container, that can be centered.

    Youi can try the following to have a look that is closely centered (adjust the value):

    
    .page-id-25 input[type="text"] {
        margin-left: 15% !important;
    }
    

    Cheers!
    Günter

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.