JSFiddle - React, Tailwind, and code Playground
by knowonline
HTML
<p>Данная структура сайта будет при любом размере экрана (т.е. элемент не будет переноситься на следующую «строчку»)</p>
<div class="wrapper">
<aside></aside>
<div class="main"><div class="content"></div></div>
</div>
<!-- Пример сайта know-online.com -->
CSS
.wrapper {
display: flex;
}
aside {
background: #3eb6e8;
flex: 150px;
max-width: 150px;
height: 150px;
}
.main {
flex: 500px;
max-width: 500px;
height: 150px;
padding-left: 10px;
}
.content {
background: #3eb6e8;
width: 100%;
height: 100%;
}
body {
font-family: verdana;
font-size: 14px;
}