I am building an FAQ on one of my forms and have nested sections to produce topics and specific questions which can be expanded to reveal the detailed information. I am TRYING to make the main topic section header bold and would like to decrease the font size of the sub-headers. I cannot for the life of me figure this out!
I can bold the header, but it then applies the bold setting to all sub-elements. So, I created a normal css class which I have applied to the sub-sections. This is working for what I need. However, I cannot get LF to recognize anything for adjusting the font size.
I have tried this:
#q62 .cf-section-header h1 {font-size:15px;line-height:15px;min-height:15px;}
Question
Question
Using CSS to change the font size of specific section headers (New Forms Designer)
Answer
Glad you got it working! Would you mind marking as an answer? :)
The min-height:15px; you had works fine if that's what you're after, just add it into the code below as it's own line like so:
#q76 label { font-size:24px; min-height:15px; }
It doesn't need to be it's own line, I just find it helps with readability.
You could also set max-height for the subsections with smaller text.
Replies
THANK YOU!!!!! This is perfect!
Try this:
#q76 label { font-size:24px; } #q62 label { font-size:15px !important; }
I have a similar setup and I use this with different css classes for each section:
.section1 label.section-label {font-size: 14px;}
.section2 label.section-label {font-size: 32px;}
etc...
How do you change the size of the header or the space between elements? I struggle with CSS because I don't know how to figure out how to refer to things. LOL
Glad you got it working! Would you mind marking as an answer? :)
The min-height:15px; you had works fine if that's what you're after, just add it into the code below as it's own line like so:
#q76 label { font-size:24px; min-height:15px; }
It doesn't need to be it's own line, I just find it helps with readability.
You could also set max-height for the subsections with smaller text.