NO BUG: Button width on classes

Bricks Version: 1.6.2
Browser: Firefox
OS: macOS
URL: (I am working on this project, so i wont keep the bug)

When i add a button and apply the styling to a class"max-width: 122" and "width: 100%.
The width doesn’t work. its not stretching to the 122. This only applies to styling to the class. When i add it to the id, there is no problem. But i want to use the class ofcourse.

Ps: button styling is set to none.

Thanks in advance.

Can you share link to the page? Seems like the buttons are wrapped in a container. If this container does not have an explicit width the percentage width for the button won’t work. That’s just how CSS works.

You are right. I will delete this post.

edit: I can’t delete it.

edit: but why did it work on ID level then?

Hey,
Thanks so much for your report!

I can’t reproduce the problem, so a link would be really helpful (basically if it has anything to do with CSS).

i think this had to do with lack off css knowledge.

Good, so it’s not a bug :smiley:

1 Like