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

Question

Question

How to change the size of a Table Name

asked on August 28, 2019

I am trying to adjust the size of the name of a table I have on a form. In the Theme section, you can adjust the field size, section header size, etc. but nothing for the Table Name size. I found some CSS to change the color of the table name and that works, so there has to be a way to change the font size. Unfortunately, I am still really new to CSS and I've tried everything I can think of to make the font size change and it wont work. Has anyone else been able to figure out how to change the size of a Table Name?

 

Thanks in advance! :)

0 0

Answer

SELECTED ANSWER
replied on August 28, 2019 Show version history

This was confusing for me too until I understood the parent/child hierarchy. When you apply a class to an object in forms, it applies that class to the parent element called an li.

Any css you apply directly to the class applies only to the parent element and not children elements unless specified after the class name.

To see the child elements you can use the google developer tools. Press F12, then Ctrl+Shift+C and as you mouse over the element you will see the li element but as you mouse around inside of the object you will see the types of child elements it has.

I am mousing over the table header and I can see that the child object is called an h2. So all you have to do to edit that object is define your CSS like this, following the class name with a space and the child object type.

.yourTableClassName h2 {
font-size: 20px;
}

If there are multiple child objects of the same type, all will be effected.

3 0
replied on August 28, 2019

Thank you so much!! That was exactly what I needed!! Thank you for explaining this in detail and not just giving me the answer - I really appreciate it! 

1 0

Replies

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

Sign in to reply to this post.