Skip to content

Is it possible to nest elements in a label? #84

Answered by amnweb
holty07 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is how it looks for me.

Recording.2024-12-17.124126.mp4

css

.traffic-widget {
    max-width: 100px;
    min-width: 100px;
    padding: 0;
    border: 1px solid #fff;
}

I added a border just for testing, we can also set the maximum number of characters directly in the widget if needed, but since we can do the same with CSS, I don't know if it makes sense to change the widget.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@holty07
Comment options

@amnweb
Comment options

@amnweb
Comment options

Answer selected by holty07
@holty07
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants