change imagesize

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

change imagesize

Post by JuanUil »

Hi all,

I have made a block "gordijnen" and added a css_class like this.

Code: Select all

blocks['gordijnendicht'] = {
	addClass: 'gordijn',
	idx:250,
	image:'gordijnen dicht.png',
	hide_data : true,	
	last_update : false, 	
}
In custom.css I can adjust font border title and colors.
but i can not change the image size.

tried:

Code: Select all

.gordijn image{
	max-width: 130px;
	width: 110px;
}
I also can not adjust my camera in custom.css

Code: Select all

blocks["camera voor"] = {
        type: "camera",
		key : "CAM",
        cameras: [
               
                {
                        title: "Camera Voor",
                        imageUrl: "http://192.168.x.x.x/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=pwd",
                },
        ],
        width: 8,
        height: 150,
        refresh: 0.1,
        traytimeout: 3,
        slidedelay: 3,
        forcerefresh: 1,
};


and in css

Code: Select all

.blocks[data-id='CAM'] {
	margin-left:50px;
		
}
any help?
Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: change imagesize

Post by Lokonli »

Try with ' !important' behind the CSS value


Sent from my SM-A320FL using Tapatalk

JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: change imagesize

Post by JuanUil »

Tried that with no luck :-(
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: change imagesize

Post by HansieNL »

Can you try with:

Code: Select all

.gordijn .icon {
	max-width: 130px !important;
	width: 110px !important;
}
If you want to know what class to use you can use dev tools (F12) of the browser and select the element.
Blah blah blah
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: change imagesize

Post by JuanUil »

Thnx Hansie,

that did the trick.
Now stil my cameraview, this is on a tablet so I cannot use f12
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest