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.
You are not logged in.
Hi there,
just installed BL2 and having trouble getting the contact form centered. I hate that it is aligned to the left.
I should be able to do this through CSS or do I need PHPplugin?
Second question is it possible to add a Border and Shadow around images in the "viewer" of a gallery?
Thanks a lot
Last edited by christopherhauser (2019-02-03 00:21:31)
Offline
try this in your custom css for the form:
form {
width: 50%;
margin:0 auto;
}
This will apply to all forms on your site so if you want it to be specific to a page you can precede the form selector with a body class specific to the page. For example, if this is in your contact page (and the slug for that page is contact/) then:
.slug-contact form {
width: 50%;
margin:0 auto;
}
not sure what you mean by your second question. What do you mean by "the viewer"?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Just tried it and it kinda centered it. Still a little strange.
I figured out the second part by myself. ( I was talking about Fancy Box )
Offline
Line 17 of your local css file chauser.css defines a max-width for form fields:
form input[type="color"], form input[type="date"], form input[type="datetime"], form input[type="datetime-local"], form input[type="email"], form input[type="month"], form input[type="number"], form input[type="password"], form input[type="search"], form input[type="tel"], form input[type="text"], form input[type="time"], form input[type="url"], form input[type="week"], form input:not([type]), form select, form textarea, .form input[type="color"], .form input[type="date"], .form input[type="datetime"], .form input[type="datetime-local"], .form input[type="email"], .form input[type="month"], .form input[type="number"], .form input[type="password"], .form input[type="search"], .form input[type="tel"], .form input[type="text"], .form input[type="time"], .form input[type="url"], .form input[type="week"], .form input:not([type]), .form select, .form textarea {
max-width: 450px;
}
Once you increase it, it looks better. But this affects many other fields and might have unintended side effect. You might want to add the .slug-contact class to the selector.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thanks a lot! One last thing, is there a way to center the "text/labels" and send button as well? I am slowly getting back to CSS with inspecting and changing, but some things just won't work :Q
Offline
Thanks a lot! One last thing, is there a way to center the "text/labels" and send button as well? I am slowly getting back to CSS with inspecting and changing, but some things just won't work :Q
This seems to work for me:
.contact-form p {
text-align: center;
}
.contact-form .actions {
text-align: center;
}
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thanks a lot!
Offline
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline