OK, now I better understand the custom slider css better as well (uses before)
but I tried to define a custom style class, and it fails. In the CSS editor the '.item-value' is in red. I guess CSS does not allow the like the 'resurcive' style listing.
23.05.2022, 19:11 (This post was last modified: 23.05.2022, 19:17 by cdebackere.)
(23.05.2022, 16:22)admin Wrote: Post an image of what you are trying to accomplish.
We've made a BluOs KNX (& modbus & BACnet) gateway library / gateway and for the visualisation we're constructing as attached (just a prelim version).
On the top right you see 2 boxed texts, currently left aligned, which open a widget
In front of the text is an icon. This is now a seperate img element.
But we want to right align those 2 elements (in fact the top one is an object with dynamic content depending on player grouping, the one below is a text label)
For the rounded bow we havea custom css class:
.BWgroupBorder {
border-styleolid;
border-width: 2px;
border-color:#E5E5E5;
border-radius: 12px;
padding-top: 4px;
padding-bottom: 4px;
padding-right: 8px;
padding-left: 28px;
}
the left padding creates the space for the img at size 16x16
Cheers,
Christof
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
24.05.2022, 08:57 (This post was last modified: 24.05.2022, 09:12 by cdebackere.)
OK, works indeed with png
and found the issue with the svg as well. Works also now.
But the width and height statements are just cropping the top 16x16 corner, rather than rescaling the img to 16x16
Can that be solved? THe inspector does not use strikethrough on the 2 settings, so 'important' won't fix
I can rescale the images of course and upload several versions, but that seems like a last resort ... call me lazy
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
Which browser and version are you using? background-size: contain; resizes the image to fit inside the container. You can change that to background-size: 100%; which is acts the same for square images.
(24.05.2022, 13:58)admin Wrote: Which browser and version are you using? background-size: contain; resizes the image to fit inside the container. You can change that to background-size: 100%; which is acts the same for square images.
both did the trick
I was currently working with Chrome, Version 101.0.xxx
THanks for your patient assistance
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu