FlexiContact Alignment

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
williama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 112
Joined: Sun May 18, 2008 10:01 pm

FlexiContact Alignment

Post by williama » Mon Mar 20, 2023 10:23 pm

Hi guys, I am trying to centralise three elements to the main input areas. At the moment they are aligned to the left, and it just looks strange. Here is the page.

https://www.williamallum.com/index.php/contact-me

I want to align these three elements.

1) Use the form below, or please email me at...
2) Please click on the...
3) Send button.

I have tried to change the positions through the plugin before, but it does not seem to want to align everything that far right with the input fields.

Any suggestions would be very much appreciated.

Many thanks.

This is the code I am using for the plugin style.

Code: Select all

/* Flexicontact 12.12 */

div.fc_outer   {}
div.fc_line {box-sizing:border-box;margin-top:2px}
div.fc_line label {box-sizing:border-box;display:inline-block;min-height:32px;padding:0;margin:0 1% 0 0;vertical-align: top;
    font: normal normal normal 14px Arial, Tahoma, sans-serif;line-height:32px}
div.fc_line input.fc_input {box-sizing:border-box;display:inline-block;height:32px !important;padding:4px 6px;margin:0;vertical-align: top;
    font: normal normal normal 15px Arial, Tahoma, sans-serif}
div.fc_line textarea.fc_input {box-sizing:border-box;display:inline-block;line-height: normal;margin:0;padding:4px 6px;min-height:32px;height:auto !important;
    font: normal normal normal 15px Arial, Tahoma, sans-serif}
div.fc_line select.fc_input {box-sizing:border-box;display:inline-block;padding: 4px;margin:0;width:auto;height:32px !important;
    font: normal normal normal 15px Arial, Tahoma, sans-serif}

/* field appearance */      

div.fc_line input.fc_input, div.fc_line select.fc_input, div.fc_line textarea.fc_input {border:1px solid lightgray;border-radius:4px;transition:border-color 0.4s ease 0s}
div.fc_line input.fc_input:hover, div.fc_line textarea.fc_input:hover, div.fc_line select.fc_input:hover {outline:none;border-color:#999}
div.fc_line input.fc_input:focus, div.fc_line textarea.fc_input:focus, div.fc_line select.fc_input:focus {outline:none;border-color:#0079C1;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,.075)}

div.fc_line input:focus:invalid, div.fc_line textarea:focus:invalid, div.fc_line select:focus:invalid {
    border-color:#277ac2;box-shadow:none}
  
div.fc_line.fc_err .fc_input {border-color:#277ac2}
div.fc_line.fc_err .fc_input:focus {border-color:gray;box-shadow:none}
div.fc_line.fc_err label:after {content:"*";color:red;padding-left:2px}

/* error messages */

.fc_error     {display:block;font-size:small;color:#277ac2;margin-left:22%}
.fc_top_error {margin-bottom:10px}
  
/* image captcha */

.fc_image_inner      {text-align: center}
.fc_image_inner img  {display:inline;transition:all .2s}
.fc_inactive         {border-radius:5px;border:2px solid transparent}
.fc_active           {border-radius:5px;border:2px solid #277ac2;box-shadow: 2px 2px 7px 0px rgba(0,0,0,0.63)}

/* captcha plugin */

div.fc_line.fc_jcap  {text-align:center}
#fcjcap              {display:inline-block}

/* form layout */

div.fc_line label.fc_left          {text-align:right;width:20%}
div.fc_line input[type="checkbox"] {margin:0 1% 0 0}
div.fc_line input[type="text"],
div.fc_line input[type="email"]    {width:75%;max-width:100%}
div.fc_line textarea.fc_input      {width:75%;max-width:100%}

/* Send button */

div.fc_send input.fc_button {display:inline-block;box-sizing:border-box;background-color:#ffffff;border:none;
    width:auto;margin:2px 5px;padding:10px 35px;font-size:16px;color:black !important;
    text-align:center;-webkit-appearance:none;cursor:pointer;transition:all .2s}
div.fc_send input.fc_button:hover    {background-color:#0285D2}
div.fc_send input.fc_button:disabled {opacity:.4;cursor:not-allowed}

/* responsive */

@media screen and (max-width: 800px) 
{
    div.fc_line label.fc_left {display:block;text-align:left;width:auto;min-height:0}
    div.fc_line input.fc_input[type="text"], div.fc_line input.fc_input[type="email"], div.fc_line textarea.fc_input {width:100%}
    .fc_error {margin-left:0}
    div.fc_send {margin-top: 15px;text-align:center}
    div.fc_send input.fc_button {margin:0;min-width:50%}
    div.fc_outer {max-width:calc(100% - 20px) !important}
    div.fc_lcb {margin-top:5px}
}

@media screen and (max-width: 600px) 
{
    div.fc_send input.fc_button {width:100%}
}

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30892
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: FlexiContact Alignment

Post by Per Yngve Berg » Mon Mar 20, 2023 10:51 pm

Looks perfectly fine on a mobile phone.

williama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 112
Joined: Sun May 18, 2008 10:01 pm

Re: FlexiContact Alignment

Post by williama » Mon Mar 20, 2023 11:58 pm

Per Yngve Berg wrote:
Mon Mar 20, 2023 10:51 pm
Looks perfectly fine on a mobile phone.
Thanks for the reply Per Yngve Berg. This is how it looks on a desktop though.

Image
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30892
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: FlexiContact Alignment

Post by Per Yngve Berg » Tue Mar 21, 2023 9:51 am

Use something like this:

Code: Select all

.fc_line .fc_input {
     allign-self: end;
}
To have an effect the "display-block" on the parent must be changed to "display-flex" or "display-grid"

williama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 112
Joined: Sun May 18, 2008 10:01 pm

Re: FlexiContact Alignment

Post by williama » Tue Mar 21, 2023 11:57 am

Thank you for the reply Per Yngve Berg, but where would that go?
Can that just be added to the end of the code I shared, or is there specific section it should go. I am sorry, please explain to me as simply as possible. Thank you.

Per Yngve Berg wrote:
Tue Mar 21, 2023 9:51 am
Use something like this:

Code: Select all

.fc_line .fc_input {
     allign-self: end;
}
To have an effect the "display-block" on the parent must be changed to "display-flex" or "display-grid"


Locked

Return to “Extensions for Joomla! 4.x”