Archived topic
Comment area fileds inline
12 replies · Started by Denis on March 4, 2018
I want to put comment fields (author, email, url) inline.
I've read this thread https://generatepress.com/forums/topic/modify-comment-area-layout/ but I don't know how to apply the code to 3 fields.
What's the proper CSS to do this? Thanks.
Hi there,
Sorry for not getting back to you sooner!
Adding this should be enough:
@media (min-width: 769px) {
.comment-form #author,
.comment-form #email {
width: 48%;
float: left;
}
.comment-form #email {
float: right;
}
.comment-form #url {
width: 100%;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Thanks for reply, however I asked how to put 3 fields on a single line, thanks
Ah, try this:
@media (min-width: 769px) {
.comment-form #author,
.comment-form #email,
.comment-form #url {
width: 32.5%;
float: left;
}
.comment-form #author {
margin-right: 1%;
}
.comment-form #url {
margin-left: 1%;
}
}
That works but I want to add margins between fields
Desired result looks like

Thanks
Just edited the code above :)
Thanks again!
Almost perfect, apart of Google reCaptcha overlay

Can you link me to that page?
DELETED
Try this:
.g-recaptcha {
clear: both;
}
That works! Thank you
resolved
You're welcome :)