Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-01-25 21:09:47

DonWa2
Member
From: Ann Arbor, Michigan USA
Registered: 2015-11-03
Posts: 69
Website

Contact Form Right Margin Justified?

What Custom CSS code can be written to right justify the contact form fields?


Quatrain ƒotographic, LLC
…seeing, thinking, teaching. Visual Poetry.
https://quatrainfotographic.com

Offline

#2 2018-01-25 23:36:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Form Right Margin Justified?

try this:

form.backlight-form input {
	text-align: right;
}

this aligns the text entered in the form fields.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-01-26 12:09:21

DonWa2
Member
From: Ann Arbor, Michigan USA
Registered: 2015-11-03
Posts: 69
Website

Re: Contact Form Right Margin Justified?

Thanks, Rod...
This solution works great for the text inside of each respective field, but I'd actually like to take all the form fields and move them all the way across the page [defaults to left margin] so that they line up on the right margin of the page.

Sorry that I didn't clarify that earlier.
Don


Quatrain ƒotographic, LLC
…seeing, thinking, teaching. Visual Poetry.
https://quatrainfotographic.com

Offline

#4 2018-01-26 14:34:45

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Form Right Margin Justified?

I’ll take a look tomorrow when I can get to my pc and use a browser inspector


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2018-01-26 17:12:41

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Contact Form Right Margin Justified?

Maybe this:

form.backlight-form input {
	margin-left: auto;
	margin-right: 0;
}

Else you could float:right, but that would be sort of strong-arming it, and I'd prefer investigating other avenues before resorting to that.


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2018-01-27 00:41:45

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Form Right Margin Justified?

to get the labels and the message text area to align right, I added to what Matt has:

form.backlight-form input, form.backlight-form textarea {
	margin-left: auto;
	margin-right: 0;
}
form.backlight-form p {
	text-align:right;
}

If you also need to control the width of the text area:

form textarea {
    max-width: 500px;
}

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2018-01-27 05:15:12

DonWa2
Member
From: Ann Arbor, Michigan USA
Registered: 2015-11-03
Posts: 69
Website

Re: Contact Form Right Margin Justified?

Thanks Matt & Rod!
Got it to work with the following as I need it to function. I'll look at the other options provided too.

form.backlight-form {
    margin-left: auto;
    margin-right: 20px;
    float: right;
}

https://quatrainfotographic.com/contact.php
/* Let's Disco! */
[LOL]


Quatrain ƒotographic, LLC
…seeing, thinking, teaching. Visual Poetry.
https://quatrainfotographic.com

Offline

Board footer

Powered by FluxBB