You are viewing limited content. For full access, please sign in.

Question

Question

Color border on a form

asked on January 22, 2019 Show version history

Is there a way that I can place a color border (box) around the highlighted area on my form? 

0 0

Answer

SELECTED ANSWER
replied on January 23, 2019

You can put a border around a specific section.

Just give it a custom class, then use that class in the CSS instead of the form ID.

For example,

 

.sectionBorder {
  border: 1px solid blue;
}

 

1 0

Replies

replied on January 22, 2019

You can use the id (#form1) or the class (.cf-form) to add a border, but it is going to take some adjustment to get exactly what you want.

#form1 {
  border: 1px solid blue;
}

The title section has a lower margin, which pushes the form body down and will create a gap if you don't remove that as well.

1 0
replied on January 22, 2019

Thanks so much. This definitely got me started. I'll keep you posted on how this goes. 

0 0
replied on January 23, 2019

Do you know if I was to place a section at the top of the form and hide it, could I then place a border around that particular section? 

0 0
replied on January 23, 2019

I'm not sure what you mean. Are you trying to get rid of the gap?

0 0
replied on January 23, 2019

So I only want a colored box around the heading of the form. Is there a way that I can just get the border around that section. I put in the css you gave me but its putting the border around the entire form. I was wondering if I inserted a section at the top of the form but hide it, maybe I could've put in a code to wrap the boarder just around the section. If that makes sense. 

0 0
SELECTED ANSWER
replied on January 23, 2019

You can put a border around a specific section.

Just give it a custom class, then use that class in the CSS instead of the form ID.

For example,

 

.sectionBorder {
  border: 1px solid blue;
}

 

1 0
replied on January 24, 2019

Thank you so much. I got the box the way I wanted it. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.