Change image size in CSS

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
madpatrick
Posts: 667
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Change image size in CSS

Post by madpatrick »

Hi
I need some help with customization of my dashboard.
For some blocks i've added an image, but i like to have this bigger

Image

This is the line in custom.js

Code: Select all

blocks['OV'] 			= {width: 12,type: 'blocktitle',title: 'OV',image : 'bus.png'}
This is the line in custom.css

Code: Select all

.block_OV img		{width: 400% !important}
The image is not getting bigger.
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
User avatar
madpatrick
Posts: 667
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Change image size in CSS

Post by madpatrick »

I've found it:

Code: Select all

.titlegroups[data-id='OV'] img				{width: 200% !important; max-width: 100px !important;}
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest