inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Mar 15, 2018 10:21:25 GMT -8
An element's padding isn't inherited by its children. If you add or remove padding from one element using CSS it's not going to affect another element unless that element shares its CSS selector or you've outright told that element to inherit its padding ( padding: inherit;). So, in this case, the content area of the table is considered the element's child? Would this be an instance of nth-child, or is that wrong?
|
|
#eb7100
33409
0
1
Nov 23, 2024 16:57:32 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 15, 2018 10:47:38 GMT -8
So, in this case, the content area of the table is considered the element's child? support.proboards.com/post/6866165Would this be an instance of nth-child, or is that wrong? This has absolutely nothing to do with that.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Mar 15, 2018 11:42:26 GMT -8
Thank you! I'd forgotten about that thread/post. My only other question from that thread: How do you target it with CSS? I understand from that example how they work, but I didn't see in there how to target them in the CSS and so forth. Would this be an instance of nth-child, or is that wrong? This has absolutely nothing to do with that. Thank you for that confirmation. I was doing some coding for the plugin where the nth-child was referenced in some examples, so I just wanted to make sure.
|
|
#eb7100
33409
0
1
Nov 23, 2024 16:57:32 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 15, 2018 11:54:07 GMT -8
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Mar 15, 2018 12:29:13 GMT -8
Thanks, Brian. Do you by any chance know, or can you direct me to find, how much padding pad-all gives an element?
|
|
#eb7100
33409
0
1
Nov 23, 2024 16:57:32 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 15, 2018 13:11:53 GMT -8
.pad-all is defined in the default theme's style sheet.
If you inspect an element with the class pad-all the browser's developer tools will show you all of the CSS that affects it. It should be among the first few results.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Mar 15, 2018 13:57:56 GMT -8
Thanks for that information, Brian. So, I just pretty much have to find the correct selector to use to target that area?
|
|
#eb7100
33409
0
1
Nov 23, 2024 16:57:32 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 15, 2018 14:08:03 GMT -8
Yes, that is usually how CSS works.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Mar 15, 2018 14:15:29 GMT -8
Yes, that is usually how CSS works. True, true. It's just annoying how the pad-all class isn't working at all. I have that on all of the tab content areas, so I thought that would take care of it, but I guess not.
|
|