prevent users from selecting text => give the elemnt class of "noselect":
.noselect{-webkit-touch-callout:none;/* iOS Safari */-webkit-user-select:none;/* Safari */-khtml-user-select:none;/* Konqueror HTML */-moz-user-select:none;/* Old versions of Firefox */-ms-user-select:none;/* Internet Explorer/Edge */user-select:none;/* Non-prefixed version, currently supported by Chrome, Opera and Firefox */}
Elements beside each other on desktop, stacked on phone without meia queries
flex: 0 1 <baseWidth>;
.parent{display:flex;flex-wrap:wrap;justify-content:center;}.element{flex:11150px;/* Stretching: */flex:01150px;/* No stretching: *//* choose only one of this 2 rules */}
the max is percentage, so it will change with the screen width
.parent{display:grid;grid-template-columns:minmax(150px,25%)1fr;/* minmax(min sidebar, percentage of width when we are over min width) prerecentage of width for the main view */}