Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixed width content in semantic ui

Tags:

semantic-ui

Is there a 'correct' way of creating fixed width content in Semantic-UI?

I have a canvas element on the page which must remain a specific size, however when using their grid system it seems to always scale no matter what setup I try.

like image 322
1dayitwillmake Avatar asked Aug 05 '26 18:08

1dayitwillmake


1 Answers

If I understand you correctly, I think that's not possible with Semantic UI grids. But using min-width and min-height might help you.

CSS

.fixed-width {
    width: 300px;
    height:300px;
    min-width: 300px;
    min-height:200px;
    border:1px solid #000000;
}

Have a look at this jsfiddle snippet

like image 79
Vinoth Kumar Avatar answered Aug 08 '26 16:08

Vinoth Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!