Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

auto width label

Helo!

I trying to find out if it's possible to set a auto on the width of a label. So that the label is not longer than the text on it.

The label i'm using and talkin' about gets different values from the db so i can't just change the margin of it.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

auto width label

Hello Nicklas,

Could you please provide us with a screenshot of how the labels are displayed now?

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

auto width label

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

auto width label

Cellgrid and label

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

auto width label

Hello Nicklas,

How they have to look like?

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

auto width label

When i get for example "Josh" from the db, i want it to look like this:

Image

When i get "George" from the db, i want it to be like this:

Image

When i get "Katy" from the db, i want it to look like this:

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

auto width label

Nicklas,

Please create a class for label and add a property codedisplay: inline-block;/code
Then add codewidth: (fixed value) px/em.../code or codewidth: 100%/code

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

auto width label

It worked allmost as i wanted it to be. I just changed the codewidth: 100%;/code to codewidth: auto;/code

Thank you!

Jeanvia
Posts: 0
Joined: Tue May 03, 2016 4:02 am

auto width label

Hi Nicklas. How do you managed to solved it? I have tried Evgene method but it is not working.

Return to “Issues”