With Dashboard 1.0 it was possible to resize a group with css by using the following code:
'''
my_group_name{
width:12px;
height : 23px;
'''
Under Dashboard 2.0 the same has not efffect
What is wrong please .
With Dashboard 1.0 it was possible to resize a group with css by using the following code:
'''
my_group_name{
width:12px;
height : 23px;
'''
Under Dashboard 2.0 the same has not efffect
What is wrong please .
For starters, I imagine that should be
#my_group_name {
width:12px;
height : 23px;
}
The leading #
indicates an HTML ID. Or maybe it started with a .
indicating a class name.
But use your browser's dev tools to find the group element and check whether it has an id and/or a class name.
Thanks Julian,
I has already test it like this.
Do you have a short example for me?It will be appreciate.
Envoyé à partir de Outlook pour Android
I don't really use either Dashboard as I'm the author of UIBUILDER which I personally find easier to use.
However, from my test D2, I tried to do it - I did get part way but things don't seem to work as I'd expect them to so I'm rather lost.
I configured a group like this:
Then added a ui template node like this
But it came out looking like this - which is not at all what I expected:
And that's because it seems to have applied the CSS in the wrong place:
On the highlighted line instead of the next one down.
But even if I manually move it, the other issue is that not all styling will work anyway because some of the framework styling overwrites it. I ended up with this:
Because much of the class style was ignored but some wasn't:
So that's as far as I've time to go I'm afraid. Clearly though, converting from D1 to D2 may not be as easy as simply copying the styles over.
Update: OK, so maybe not "the wrong place". But rather that there is an extra wrapping DIV that seems unnecessary to me.
If you take the height
out of the CSS, then it does more of what you expect. If you try to set the height, only the wrapping div's height is alterered and not the content.
Either way, the width is ignored so you can't use this method to change the size. I kind of expected that though because you are using a CSS grid layout and the grid should have control of the element sizing.
By the way, this is why I don't use frameworks. They are a sledghammer to create a simple (to use, not simple behind the scenes) UI. BUT, if you want to then customise things, you often have to fight the framework, it no longer helps but rather hinders.
Trying to mix a complex framework with lots of customisation is, in my view, not a brilliant outcome.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.