• Resolved daan

    (@dhoitink)


    Hi,

    Great plug-in! Thanks first of all!
    Having a small issue with the way it’s shown,as you can see https://goo.gl/eg8yPr

    I prefer the 2-column view, but i think it’ won’t show because of the ultra-wide ‘aantal’ (amount) cel. Any idea why it’s using al of the width? I’m not deep on CSS so any help would be great! Also is there an option to have the ‘add message’ field been directly shown in expanded view?

    Thanks! Dani?l

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @dhoitink,

    The aantal select field is very wide because of some CSS on your theme. Here’s some quick CSS code you can use to put the booking form into two columns:

    
    .rtb-booking-form {
        max-width: 30em;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .rtb-booking-form fieldset {
        float: left;
        max-width: 50%;
        padding-left: 1em;
        padding-right: 1em;
        text-align: left;
    }
    

    If you want to show the message field by default, add this CSS code:

    
    .rtb-booking-form .add-message {
        display: none;
    }
    
    .rtb-booking-form .message {
        position: relative;
        top: auto;
        left: auto;
    }
    
    Thread Starter daan

    (@dhoitink)

    Thanks Nate!, it now splits up in 2 columns.
    Not sure why, https://goo.gl/bLhexO , but the columsn are really small.
    I’ve put a line on top, which has to normal 100%, but the 2 columns are only 25% of the total width…

    Also the message part is not expanded by default. Any idea?

    Thanks again!

    Hi @dhoitink,

    This is because of the following CSS rule, which sets a thin max width:

    `
    .rtb-booking-form {
    max-width: 30em;
    }
    `

    I included that to keep the form from stretching too wide. But you can widen that as much as you’d like by increasing the 30em.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 column view and add message field’ is closed to new replies.