inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Apr 11, 2018 15:36:58 GMT -8
Forum URL: (private) Is the font size of a label hard-coded, or is it possible to figure out the size? I ask because I'm trying to replicate something like that on this page of this forum, as I think I said in another thread (although I can't seem to find it at the moment). Thanks!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 11, 2018 15:38:34 GMT -8
Hi, Alan Vende. All font sizes on a web page are determined by that page's CSS and any inline styles related to font sizes specified in that element's style attribute.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Apr 11, 2018 15:45:12 GMT -8
Hi, Alan Vende . All font sizes on a web page are determined by that page's CSS and any inline styles related to font sizes specified in that element's style attribute. Thanks, Brian ! I just don't remember there being a label class/ID name. Or am I going about that wrong? You said, they're determined by that page's CSS and any inline styles related to font sizes specific in that element's style attribute. So, does that mean that they are in the Stylesheet? I took a quick look there, and it doesn't look like there's anything there, unless I'm missing an obvious ID/class name. But they're the same for all forums on the default theme, aren't they? Or, like I said, am I going about it wrong? I'm probably overthinking it. PS: Sorry for posting in the wrong board. I wasn't sure where this would go, so I put it in the Support Board. Thank you for moving it!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 11, 2018 15:57:15 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 Apr 11, 2018 16:03:50 GMT -8
Whoops, yes, that's what I was referring to. I thought I had said thread labels, but I didn't, I apologize for that. So, inline styles determine their colors, but the .ui-label determines their size and so forth. It says 80% as the font size. Is there any way to convert that to px, do you know?
Thank you for your help!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 11, 2018 16:11:01 GMT -8
80% means the font size will be 80% of whatever its parent element uses as its font size. If its parent element uses a percentage as its font size or uses inherit then you continue looking through parents until you find one with an explicitly defined font size.
The Computed tab also tells you the final font size of the element, and expanding that shows you what CSS selectors affected it.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Apr 11, 2018 16:19:50 GMT -8
Thank you! What browser are you using? For some reason, Google Chrome's tools don't have a Computed tab, from what I'm seeing. (I attempted to look at a label through Google Chrome and couldn't find what you had in the screenshot.)
|
|