In this article we will see how to set different border size to the label, by default there is no border set to the label although we can add border to the label with the help of setting border using style sheet but that border is uniform and have same size for all the four sides.
Below is the representation of normal bordered label vs the label with different border sizes.
"border : solid black;"
"border-width : 10px 1px 10px 1px;"
border-widthis used to set the thickness first element refer to the thickness of upper side, second element refer to the right side, third element refer to the bottom side and fourth element refer to the left side.
Below is the implementation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course