Page 1 of 1

fontsize of a block value

Posted: Friday 04 October 2019 11:10
by rene2716
Hi,

I can change the fontsize of a block with custom.css, but it does not change the value fontsize, only the title text of the block.
Any tips or tricks?

tnx in advance
René

Re: fontsize of a block value

Posted: Sunday 10 May 2020 20:10
by hannuf
Hi,

I am also trying to change font size of value in one block, did you find out how to? or can someone help with this?

Re: fontsize of a block value

Posted: Sunday 10 May 2020 20:22
by hannuf
Found it on other topic, .block_6_3 .title { font-size:12px ; }

Re: fontsize of a block value

Posted: Sunday 19 July 2020 0:24
by webrazor
This worked for me to, but after update to 3.5 it is not working anymore.
Now i use:

Code: Select all

.block_78 .value {
	font-size	: 48px!important;
}

Re: fontsize of a block value

Posted: Saturday 01 August 2020 13:52
by Lokonli
Is this solved already?
What kind of device is it?

If the above is not working try with:

Code: Select all

.block_78 .state{
	font-size	: 48px!important;
}

Re: fontsize of a block value

Posted: Saturday 01 August 2020 14:07
by Lokonli
webrazor wrote: Sunday 19 July 2020 0:24 This worked for me to, but after update to 3.5 it is not working anymore.
Now i use:

Code: Select all

.block_78 .value {
	font-size	: 48px!important;
}
From your other post I guess it's a temperature device. Correct?

On my system with device ID 2 as a temperature device the following is changing the size of the temperature value:

Code: Select all

.block_2 .value {
    font-size: 35px!important
}
However, if you defined a block in CONFIG.js with a custom identifier, then you have to use that identifier as well in custom.css.

So, in case your CONFIG.js contains:

Code: Select all

blocks['mytemp'] = {
	idx: 2
}
then you have to add the following to custom.css:

Code: Select all

.block_mytemp .value {
    font-size: 35px!important
}