Design of block/colum Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Design of block/colum

Post by webrazor »

Hello,

I am building my design in dashticz and i have a question if it is possible to make one background for multiple blocks.
Like the second image(photoshop) below. First image is what you get in Dashticz and second image is what i want. So is it possible to do this.
I think the space between the original blocks are made by the column and the column you can't edit with css i believe.

Image

Image

Thanks
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Design of block/colum

Post by Lokonli »

webrazor wrote: Monday 13 January 2020 10:57 Hello,

I am building my design in dashticz and i have a question if it is possible to make one background for multiple blocks.
Like the second image(photoshop) below. First image is what you get in Dashticz and second image is what i want. So is it possible to do this.
I think the space between the original blocks are made by the column and the column you can't edit with css i believe.

Image

Image

Thanks
It should be possible to change this via custom.css

I think it's the css margin setting. If you right-click on a block, and then on inspect, then in the developer window of your browser you can change/add the css settings.
For the first block you have to change the margin-right setting, for the middle block margin-left and margin-right, for the right block only the margin-left setting.
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Design of block/colum

Post by webrazor »

Lokonli wrote: Monday 13 January 2020 11:35 It should be possible to change this via custom.css

I think it's the css margin setting. If you right-click on a block, and then on inspect, then in the developer window of your browser you can change/add the css settings.
For the first block you have to change the margin-right setting, for the middle block margin-left and margin-right, for the right block only the margin-left setting.
I already tried setting the margin/padding/border to 0px this dit not change a thing. When i increase the px number the margin/padding/border gets bigger. It looks like this is set in the column.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Design of block/colum

Post by clinkadink »

It is the inner div that needs amending (e.g "data-id=174"), not the outer div (e.g: "block_174").

Below are 3 device blocks, with IDs 174 (left), 79 (middle) and 80 (right).

Before ...
Image

After ...
Image

In your custom.css put this, substituting the data-id values with your block device IDs.

Code: Select all

[data-id='174'],
[data-id='79'] {
	border-right: 0!important;
}

[data-id='79'],
[data-id='80'] {
	border-left: 0!important;
}
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Design of block/colum

Post by webrazor »

clinkadink wrote: Monday 13 January 2020 17:18 It is the inner div that needs amending (e.g "data-id=174"), not the outer div (e.g: "block_174").
Perfect thats what i need, thank you!
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Design of block/colum

Post by clinkadink »

No probs, glad it worked ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest