Good afternoon, I am trying to center the images in a "radio buttons" field. I would like to center only the radio button fields' images, not all the fields in my form (see the image attached to see the problem, or the link below: https://presupuesto.islasolarweb.com/formulario-v2 You can see that the images are not aligned with the SEND/ENVIAR button. I have tried the code below, but it does not work:
.with_frm_style .frm_radio .frm_image_option {
margin: 0 auto;
}
Thank you in advance
The best way to solve all these problems is to use the browser developer tools (go to the web page and hit the F12 button). Then you can select a specific element and see what its CSS settings are and you can change them yourself to see how that affects the output in real-time. In this case, if you hit F12 and click any one of the text elements, you'll see its class is frm_text_for_image_inner
Thanks! I tried with different options, and it finally worked with font_size
Thanks! I tried with different options, and it finally worked with font_size
The following will work, however, it may affect other fields on your page, so you might have to change the selectors to be more specific to the elements you're changing.
.frm_form_field.frm_image_options { text-align: center; } .frm_radio.frm_image_option.frm_image_small { margin-right: auto; margin-left: auto; }
Please login or Register to submit your answer