CSS class width and height problem - Forum

Forum Navigation
You need to log in to create posts and topics.

CSS class width and height problem

hi,

why the below css class does not work in the (project>properties>styles).

.myClass{
background-color:blue;
width:100px;
height:100px;
}

Hi @asmat,

That's because you have inline styles (the ones you set on the Properties panel) that take priority over the class.
Just use this code instead, to give priority to the class:

.myClass{
background-color:blue!important;
width:100px!important;
height:100px!important;
}
asmat has reacted to this post.
asmat

great luishp!